diff --git a/dom.bs b/dom.bs index 02e664d7e..d02674039 100644 --- a/dom.bs +++ b/dom.bs @@ -1065,6 +1065,15 @@ seen from the definition above, an event listener is a more broad concept method, when invoked, must run these steps:
If the context object's global object is a {{ServiceWorkerGlobalScope}} object and its
+ associated service worker's script resource's has ever been evaluated flag is
+ set, throw a TypeError
. [[!SW]]
+
+
To optimize storing the event types allowed for the service worker and + to avoid non-deterministic changes to the event listeners, invocation of the method is allowed + only during the very first evaluation of the service worker script. +
If callback is null, terminate these steps.
Let capture and passive be the result of flattening @@ -1082,6 +1091,10 @@ method, when invoked, must run these steps: method, when invoked, must, run these steps
If the context object's global object is a {{ServiceWorkerGlobalScope}} object and
+ its associated service worker's script resource's has ever been evaluated flag
+ is set, throw a TypeError
. [[!SW]]
+
Let capture and passive be the result of flattening options.