diff --git a/dom.bs b/dom.bs index 02e664d7..d0267403 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:
    +
  1. +

    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. +

  2. If callback is null, terminate these steps.

  3. 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

      +
    1. 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]] +

    2. Let capture and passive be the result of flattening options.