From 18ca10633ffbcbe2a95dd1d42dfb04c798cc5700 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Philip=20J=C3=A4genstedt?=
Date: Wed, 3 Oct 2018 22:47:37 +0200
Subject: [PATCH] Add initStorageEvent()
Tests: https://github.com/web-platform-tests/wpt/pull/13368
Fixes https://github.com/whatwg/html/issues/1054.
---
source | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/source b/source
index 38faf31d6e4..b989d1c4683 100644
--- a/source
+++ b/source
@@ -93990,7 +93990,7 @@ typedef (WindowProxy or MessagePort or ServiceWo
value it was initialized to. It represents, in cross-document messaging and
channel messaging, the MessagePort
array being sent.
-
+
The initMessageEvent()
method must initialize the event in a manner analogous to the similarly-named initEvent()
method.
@@ -99158,6 +99158,8 @@ interface StorageEvent : Event {
readonly attribute DOMString? newValue;
readonly attribute USVString url;
readonly attribute Storage? storageArea;
+
+ void initStorageEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false, optional DOMString? key = null, optional DOMString? oldValue = null, optional DOMString? newValue = null, optional USVString url = "", optional Storage? storageArea = null);
};
dictionary StorageEventInit : EventInit {
@@ -99211,6 +99213,11 @@ dictionary StorageEventInit : EventInit {
data-x="dom-StorageEvent-storageArea">storageArea attributes must return the values
they were initialized to.
+
+ The initStorageEvent()
+ method must initialize the event in a manner analogous to the similarly-named initEvent()
method.
+