| Index: modules/serviceworkers/ServiceWorkerContainer.idl
|
| diff --git a/modules/serviceworkers/ServiceWorkerContainer.idl b/modules/serviceworkers/ServiceWorkerContainer.idl
|
| index 9f8a3f6bd2c2f430ec0c72eb95e73818edaa12f6..df0017e97537f3b82ab063eb6a9d32af1e7bb571 100644
|
| --- a/modules/serviceworkers/ServiceWorkerContainer.idl
|
| +++ b/modules/serviceworkers/ServiceWorkerContainer.idl
|
| @@ -30,15 +30,16 @@
|
|
|
| // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#service-worker-container-interface
|
| [
|
| - RuntimeEnabled=ServiceWorker
|
| + RuntimeEnabled=ServiceWorker,
|
| + WillBeGarbageCollected
|
| ] interface ServiceWorkerContainer {
|
| - [Unforgeable] readonly attribute ServiceWorker active;
|
| - [Unforgeable] readonly attribute ServiceWorker controller;
|
| - [Unforgeable] readonly attribute ServiceWorker installing;
|
| - [Unforgeable] readonly attribute ServiceWorker waiting;
|
| + [Unforgeable] readonly attribute ServiceWorker? installing;
|
| + [Unforgeable] readonly attribute ServiceWorker? waiting;
|
| + [Unforgeable] readonly attribute ServiceWorker? active;
|
| + [Unforgeable] readonly attribute ServiceWorker? controller;
|
|
|
| [CallWith=ScriptState] readonly attribute Promise ready;
|
|
|
| [CallWith=ScriptState, ImplementedAs=registerServiceWorker] Promise register(ScalarValueString url, optional Dictionary options);
|
| - [CallWith=ScriptState, ImplementedAs=unregisterServiceWorker] Promise unregister(ScalarValueString scope);
|
| + [CallWith=ScriptState, ImplementedAs=unregisterServiceWorker] Promise unregister(optional ScalarValueString scope = "/");
|
| };
|
|
|