Index: modules/serviceworkers/ServiceWorkerGlobalScope.idl |
diff --git a/modules/serviceworkers/ServiceWorkerGlobalScope.idl b/modules/serviceworkers/ServiceWorkerGlobalScope.idl |
index be99abc1108d52ca20ba539f58e9bf87b8e048a4..10d9a9b052911823427667cb81c3b67cd9c19375 100644 |
--- a/modules/serviceworkers/ServiceWorkerGlobalScope.idl |
+++ b/modules/serviceworkers/ServiceWorkerGlobalScope.idl |
@@ -37,15 +37,16 @@ |
readonly attribute ServiceWorkerClients clients; |
[CallWith=ExecutionContext, Unforgeable] readonly attribute ScalarValueString scope; |
- // FIXME: Rename this once it's ready for testing. |
- [CallWith=ExecutionContext, Unforgeable, ImplementedAs=caches] readonly attribute CacheStorage nativeCaches; |
+ [CallWith=ExecutionContext, Unforgeable, RuntimeEnabled=ServiceWorkerOnFetch] readonly attribute CacheStorage caches; |
[CallWith=ScriptState] Promise fetch(DOMString request, optional Dictionary requestInitDict); |
[CallWith=ScriptState] Promise fetch(Request request, optional Dictionary requestInitDict); |
+ [RaisesException] void close(); |
+ |
attribute EventHandler onactivate; |
- attribute EventHandler onfetch; |
+ [RuntimeEnabled=ServiceWorkerOnFetch] attribute EventHandler onfetch; |
attribute EventHandler oninstall; |
attribute EventHandler onmessage; |
- attribute EventHandler onsync; |
+ [RuntimeEnabled=BackgroundSync] attribute EventHandler onsync; |
}; |