зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1867680 - update StorageEvent url to be a USVString as per spec; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D208070
This commit is contained in:
Родитель
f49d06383e
Коммит
1bcd0b462e
|
@ -28,7 +28,7 @@ const kTests = [
|
|||
|
||||
{ createEventArg: "storageEvent",
|
||||
type: "ddd", bubbles: false, cancelable: false,
|
||||
key: 'key', oldValue: 'a', newValue: 'b', url: null, storageArea: null },
|
||||
key: 'key', oldValue: 'a', newValue: 'b', url: '', storageArea: null },
|
||||
|
||||
{ createEventArg: "StorageEvent",
|
||||
type: "eee", bubbles: true, cancelable: true,
|
||||
|
@ -36,7 +36,7 @@ const kTests = [
|
|||
|
||||
{ createEventArg: "storageevent",
|
||||
type: "fff", bubbles: false, cancelable: true,
|
||||
key: null, oldValue: null, newValue: null, url: null, storageArea: null },
|
||||
key: null, oldValue: null, newValue: null, url: '', storageArea: null },
|
||||
];
|
||||
|
||||
for (var i = 0; i < kTests.length; i++) {
|
||||
|
|
|
@ -18,17 +18,16 @@ interface StorageEvent : Event
|
|||
readonly attribute DOMString? key;
|
||||
readonly attribute DOMString? oldValue;
|
||||
readonly attribute DOMString? newValue;
|
||||
readonly attribute DOMString? url;
|
||||
readonly attribute USVString url;
|
||||
readonly attribute Storage? storageArea;
|
||||
|
||||
// Bug 1016053 - This is not spec compliant.
|
||||
undefined initStorageEvent(DOMString type,
|
||||
optional boolean canBubble = false,
|
||||
optional boolean cancelable = false,
|
||||
optional DOMString? key = null,
|
||||
optional DOMString? oldValue = null,
|
||||
optional DOMString? newValue = null,
|
||||
optional DOMString? url = null,
|
||||
optional USVString url = "",
|
||||
optional Storage? storageArea = null);
|
||||
};
|
||||
|
||||
|
@ -37,6 +36,6 @@ dictionary StorageEventInit : EventInit
|
|||
DOMString? key = null;
|
||||
DOMString? oldValue = null;
|
||||
DOMString? newValue = null;
|
||||
DOMString url = "";
|
||||
USVString url = "";
|
||||
Storage? storageArea = null;
|
||||
};
|
||||
|
|
|
@ -10,9 +10,6 @@
|
|||
[area : unpaired surrogate codepoint should be replaced with U+FFFD]
|
||||
expected: FAIL
|
||||
|
||||
[storage event : unpaired surrogate codepoint should be replaced with U+FFFD]
|
||||
expected: FAIL
|
||||
|
||||
[UnregisterProtocolHandler URL: unpaired surrogate codepoint should not make any exceptions.]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,11 +1,3 @@
|
|||
[event_initstorageevent.window.html]
|
||||
expected:
|
||||
if (os == "android") and fission: [OK, TIMEOUT]
|
||||
[initStorageEvent with 1 argument]
|
||||
expected: FAIL
|
||||
|
||||
[initStorageEvent with 8 null arguments]
|
||||
expected: FAIL
|
||||
|
||||
[initStorageEvent with 8 undefined arguments]
|
||||
expected: FAIL
|
||||
|
|
Загрузка…
Ссылка в новой задаче