Index: modules/serviceworkers/ServiceWorkerGlobalScope.idl |
diff --git a/modules/serviceworkers/ServiceWorker.idl b/modules/serviceworkers/ServiceWorkerGlobalScope.idl |
similarity index 88% |
copy from modules/serviceworkers/ServiceWorker.idl |
copy to modules/serviceworkers/ServiceWorkerGlobalScope.idl |
index b58eb9005dc907d0e3b48c26e6d07c517ee0f85e..3db592745d72a1a2e517c36087f6d19977ecaa38 100644 |
--- a/modules/serviceworkers/ServiceWorker.idl |
+++ b/modules/serviceworkers/ServiceWorkerGlobalScope.idl |
@@ -28,7 +28,11 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
[ |
+ GlobalContext=ServiceWorkerGlobalScope, |
RuntimeEnabled=ServiceWorker, |
- NoInterfaceObject |
-] interface ServiceWorker { |
+] interface ServiceWorkerGlobalScope : WorkerGlobalScope { |
+ attribute EventHandler oninstall; |
+ attribute EventHandler onactivate; |
+ attribute EventHandler onfetch; |
}; |
+ |