Index: modules/serviceworkers/ServiceWorker.idl |
diff --git a/modules/serviceworkers/ServiceWorker.idl b/modules/serviceworkers/ServiceWorker.idl |
index 69171dfaceb455b1bc960b005fa7ef41bcefe4f6..ec8d558f06bcec0e792c73bd95640bb80c897d17 100644 |
--- a/modules/serviceworkers/ServiceWorker.idl |
+++ b/modules/serviceworkers/ServiceWorker.idl |
@@ -47,6 +47,8 @@ enum ServiceWorkerState { |
// FIXME: Should inherit this from Worker. |
[Custom, RaisesException] void postMessage(SerializedScriptValue message, optional sequence<Transferable> transfer); |
+ [RaisesException] void terminate(); |
+ |
readonly attribute ScalarValueString scriptURL; |
readonly attribute ServiceWorkerState state; |