Index: core/frame/WindowEventHandlers.idl |
diff --git a/core/frame/WindowEventHandlers.idl b/core/frame/WindowEventHandlers.idl |
index 95de525822a77f31104c7d6f7c9cd93e67ab7b4f..9b766723fabea50dce8202b94b0e5e4de4785cce 100644 |
--- a/core/frame/WindowEventHandlers.idl |
+++ b/core/frame/WindowEventHandlers.idl |
@@ -27,7 +27,7 @@ |
* OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-// http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#windoweventhandlers |
+// https://html.spec.whatwg.org/multipage/webappapis.html#windoweventhandlers |
[ |
ImplementedAs=DOMWindowEventHandlers, |
@@ -36,6 +36,7 @@ |
] interface WindowEventHandlers { |
//attribute EventHandler onafterprint; |
//attribute EventHandler onbeforeprint; |
+ // FIXME: onbeforeunload should be an OnBeforeUnloadEventHandler. |
attribute EventHandler onbeforeunload; |
attribute EventHandler onhashchange; |
attribute EventHandler onlanguagechange; |
@@ -47,4 +48,9 @@ |
attribute EventHandler onpopstate; |
attribute EventHandler onstorage; |
attribute EventHandler onunload; |
+ |
+ // Unhandled Promise Rejection Events |
+ // https://github.com/domenic/unhandled-rejections-browser-spec |
+ [RuntimeEnabled=PromiseRejectionEvent] attribute EventHandler onrejectionhandled; |
+ [RuntimeEnabled=PromiseRejectionEvent] attribute EventHandler onunhandledrejection; |
}; |