Index: modules/serviceworkers/ServiceWorkerGlobalScope.idl |
diff --git a/modules/serviceworkers/ServiceWorkerGlobalScope.idl b/modules/serviceworkers/ServiceWorkerGlobalScope.idl |
index 3db592745d72a1a2e517c36087f6d19977ecaa38..07d2dbfde12dae6981f050f3a5d05b78b40df4d4 100644 |
--- a/modules/serviceworkers/ServiceWorkerGlobalScope.idl |
+++ b/modules/serviceworkers/ServiceWorkerGlobalScope.idl |
@@ -27,12 +27,23 @@ |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+ |
+// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#service-worker-global-scope-interface |
[ |
- GlobalContext=ServiceWorkerGlobalScope, |
+ Exposed=ServiceWorker, |
+ Global=Worker&ServiceWorker, |
RuntimeEnabled=ServiceWorker, |
] interface ServiceWorkerGlobalScope : WorkerGlobalScope { |
- attribute EventHandler oninstall; |
+ |
+ readonly attribute ServiceWorkerClients clients; |
+ [CallWith=ExecutionContext, Unforgeable] readonly attribute ScalarValueString scope; |
+ |
+ [CallWith=ScriptState] Promise fetch(ScalarValueString request); |
+ [CallWith=ScriptState] Promise fetch(Request request); |
+ |
attribute EventHandler onactivate; |
attribute EventHandler onfetch; |
+ attribute EventHandler oninstall; |
+ attribute EventHandler onmessage; |
+ attribute EventHandler onsync; |
}; |
- |