mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
implement related sw interface and register method
This commit is contained in:
parent
0594d58bc8
commit
15a2064c0d
33 changed files with 1285 additions and 217 deletions
|
@ -0,0 +1,20 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* 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://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-registration-obj
|
||||
//[Exposed=(Window,Worker)]
|
||||
[Pref="dom.serviceworker.enabled"]
|
||||
interface ServiceWorkerRegistration : EventTarget {
|
||||
[Unforgeable] readonly attribute ServiceWorker? installing;
|
||||
[Unforgeable] readonly attribute ServiceWorker? waiting;
|
||||
[Unforgeable] readonly attribute ServiceWorker? active;
|
||||
|
||||
readonly attribute USVString scope;
|
||||
|
||||
// [NewObject] Promise<void> update();
|
||||
// [NewObject] Promise<boolean> unregister();
|
||||
|
||||
// event
|
||||
// attribute EventHandler onupdatefound;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue