diff options
author | CYBAI <cyb.ai.815@gmail.com> | 2018-11-04 22:42:55 +0800 |
---|---|---|
committer | CYBAI <cyb.ai.815@gmail.com> | 2018-11-11 13:42:12 +0800 |
commit | 72ffbb7a27f3aa48e78f99bcea0f743dfa17fb6f (patch) | |
tree | 407ced54d70c569e3eab2c0d18ceb4995761cfca /components/script/dom/webidls | |
parent | 19b4f35de1ec593ed0ddf11dc0e41ef8f191d496 (diff) | |
download | servo-72ffbb7a27f3aa48e78f99bcea0f743dfa17fb6f.tar.gz servo-72ffbb7a27f3aa48e78f99bcea0f743dfa17fb6f.zip |
Update webidl of ServiceWorkerRegistration
Diffstat (limited to 'components/script/dom/webidls')
-rw-r--r-- | components/script/dom/webidls/ServiceWorkerRegistration.webidl | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/components/script/dom/webidls/ServiceWorkerRegistration.webidl b/components/script/dom/webidls/ServiceWorkerRegistration.webidl index 27c27d7cc41..f8ea37337c5 100644 --- a/components/script/dom/webidls/ServiceWorkerRegistration.webidl +++ b/components/script/dom/webidls/ServiceWorkerRegistration.webidl @@ -2,14 +2,16 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// https://w3c.github.io/ServiceWorker/#service-worker-registration-obj -[Pref="dom.serviceworker.enabled", Exposed=(Window,Worker)] +// https://w3c.github.io/ServiceWorker/#serviceworkerregistration-interface +[Pref="dom.serviceworker.enabled", SecureContext, Exposed=(Window,Worker)] interface ServiceWorkerRegistration : EventTarget { - [Unforgeable] readonly attribute ServiceWorker? installing; - [Unforgeable] readonly attribute ServiceWorker? waiting; - [Unforgeable] readonly attribute ServiceWorker? active; + readonly attribute ServiceWorker? installing; + readonly attribute ServiceWorker? waiting; + readonly attribute ServiceWorker? active; + // [SameObject] readonly attribute NavigationPreloadManager navigationPreload; readonly attribute USVString scope; + readonly attribute ServiceWorkerUpdateViaCache updateViaCache; // [NewObject] Promise<void> update(); // [NewObject] Promise<boolean> unregister(); @@ -17,3 +19,9 @@ interface ServiceWorkerRegistration : EventTarget { // event // attribute EventHandler onupdatefound; }; + +enum ServiceWorkerUpdateViaCache { + "imports", + "all", + "none" +}; |