Bug 1434913 - Make FetchEvent.clientId non-nullable r=mrbkap

Make FetchEvent.clientId non-nullable

Differential Revision: https://phabricator.services.mozilla.com/D2789

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Perry Jiang 2018-08-16 14:20:41 +00:00
parent f2c9b6dc47
commit 7e5a46ddbc
2 changed files with 2 additions and 5 deletions

View File

@ -12,7 +12,7 @@
Exposed=(ServiceWorker)]
interface FetchEvent : ExtendableEvent {
[SameObject] readonly attribute Request request;
readonly attribute DOMString? clientId;
readonly attribute DOMString clientId;
readonly attribute boolean isReload;
[Throws]
@ -21,6 +21,6 @@ interface FetchEvent : ExtendableEvent {
dictionary FetchEventInit : EventInit {
required Request request;
DOMString? clientId = null;
DOMString clientId = "";
boolean isReload = false;
};

View File

@ -2,9 +2,6 @@
[Service Worker responds to fetch event with the correct keepalive value]
expected: FAIL
[Service Worker responds to fetch event with an existing client id]
expected: FAIL
[Service Worker responds to fetch event with the correct isReloadNavigation value]
expected: FAIL