From 13c1a671f11cea6af816190c037563fc2cb8acd5 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 8 Mar 2019 02:26:19 +0000 Subject: [PATCH] Building Spec: 3b3197431df710b2d60a69cdb94be6a63cc64f6d --- docs/index.html | 388 +++++++++++++++++++++++++++--------------------- 1 file changed, 222 insertions(+), 166 deletions(-) diff --git a/docs/index.html b/docs/index.html index f9b454a0..128a99e7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1472,7 +1472,7 @@

Service Workers Nightly

-

Editor’s Draft,

+

Editor’s Draft,

This version: @@ -1547,7 +1547,8 @@

Table of Contents

  • 3.1.1 scriptURL
  • 3.1.2 state
  • 3.1.3 postMessage(message, transfer) -
  • 3.1.4 Event handler +
  • 3.1.4 postMessage(message, options) +
  • 3.1.5 Event handler
  • 3.2 ServiceWorkerRegistration @@ -1603,11 +1604,12 @@

    Table of Contents

  • 4.2.3 id
  • 4.2.4 type
  • 4.2.5 postMessage(message, transfer) -
  • 4.2.6 visibilityState -
  • 4.2.7 focused -
  • 4.2.8 ancestorOrigins -
  • 4.2.9 focus() -
  • 4.2.10 navigate(url) +
  • 4.2.6 postMessage(message, options) +
  • 4.2.7 visibilityState +
  • 4.2.8 focused +
  • 4.2.9 ancestorOrigins +
  • 4.2.10 focus() +
  • 4.2.11 navigate(url)
  • 4.3 Clients @@ -1905,7 +1907,8 @@

    interface ServiceWorker : EventTarget { readonly attribute USVString scriptURL; readonly attribute ServiceWorkerState state; - void postMessage(any message, optional sequence<object> transfer = []); + void postMessage(any message, sequence<object> transfer); + void postMessage(any message, optional PostMessageOptions options); // event attribute EventHandler onstatechange; @@ -1940,6 +1943,16 @@

    3.1.3. postMessage(message, transfer)

    The postMessage(message, transfer) method must run these steps:

    +
      +
    1. +

      Let options be «[ "transfer" → transfer ]».

      +
    2. +

      Invoke postMessage(message, options) with message and options as the arguments.

      +
    + +
    +

    3.1.4. postMessage(message, options)

    +

    The postMessage(message, options) method must run these steps:

    1. If the state attribute value of the context object is "redundant", throw an "InvalidStateError" DOMException.

      @@ -1950,7 +1963,7 @@

      <
    2. Let incumbentSettings be the incumbent settings object, and incumbentGlobal its global object.

    3. -

      Let serializeWithTransferResult be StructuredSerializeWithTransfer(message, transfer). Rethrow any exceptions.

      +

      Let serializeWithTransferResult be StructuredSerializeWithTransfer(message, options.transfer). Rethrow any exceptions.

    4. Queue a task on the DOM manipulation task source to run the following steps:

        @@ -1985,7 +1998,7 @@

        <

    -

    3.1.4. Event handler

    +

    3.1.5. Event handler

    The following is the event handler (and its corresponding event handler event type) that must be supported, as event handler IDL attributes, by all objects implementing ServiceWorker interface:

    @@ -2539,7 +2552,8 @@

    FrameType frameType; readonly attribute DOMString id; readonly attribute ClientType type; - void postMessage(any message, optional sequence<object> transfer = []); + void postMessage(any message, sequence<object> transfer); + void postMessage(any message, optional PostMessageOptions options); }; [Exposed=ServiceWorker] @@ -2602,7 +2616,17 @@

    4.2.5. postMessage(message, transfer)

    -

    The postMessage(message, transfer) method must run these steps:

    +

    The postMessage(message, transfer) method must run these steps:

    +
      +
    1. +

      Let options be «[ "transfer" → transfer ]».

      +
    2. +

      Invoke postMessage(message, options) with message and options as the arguments.

      +
    + +
    +

    4.2.6. postMessage(message, options)

    +

    The postMessage(message, options) method must run these steps:

    1. Let sourceSettings be the context object’s relevant settings object.

      @@ -2611,7 +2635,7 @@

      If destination is null, throw an "InvalidStateError" DOMException.

    2. -

      Let serializeWithTransferResult be StructuredSerializeWithTransfer(message, transfer). Rethrow any exceptions.

      +

      Let serializeWithTransferResult be StructuredSerializeWithTransfer(message, options.transfer). Rethrow any exceptions.

    3. Add a task that runs the following steps to destination’s client message queue:

        @@ -2632,19 +2656,19 @@

    -

    4.2.6. visibilityState

    +

    4.2.7. visibilityState

    The visibilityState attribute must return the context object’s visibility state.

    -

    4.2.7. focused

    +

    4.2.8. focused

    The focused attribute must return the context object’s focus state.

    -

    4.2.8. ancestorOrigins

    +

    4.2.9. ancestorOrigins

    The ancestorOrigins attribute must return the context object’s associated ancestor origins array.

    -

    4.2.9. focus()

    +

    4.2.10. focus()

    The focus() method must run these steps:

    1. @@ -2682,7 +2706,7 @@

      -

      4.2.10. navigate(url)

      +

      4.2.11. navigate(url)

      The navigate(url) method must run these steps:

      1. @@ -6338,7 +6362,7 @@

        enum-value for ClientType, in §4.3
      2. enum-value for ServiceWorkerUpdateViaCache, in §3.2 -
      3. ancestorOrigins, in §4.2.8 +
      4. ancestorOrigins, in §4.2.9
      5. ancestor origins array, in §4.2
      6. "auxiliary", in §4.2
      7. bad import script response, in §Unnumbered section @@ -6405,8 +6429,8 @@

        Finish Job, in §Unnumbered section
      8. Fire a functional event, in §Unnumbered section
      9. Fire Functional Event, in §Unnumbered section -
      10. focus(), in §4.2.9 -
      11. focused, in §4.2.7 +
      12. focus(), in §4.2.10 +
      13. focused, in §4.2.8
      14. focus state, in §4.2
      15. force bypass cache flag, in §Unnumbered section
      16. force bypass cache for importscripts flag, in §4.1 @@ -6497,7 +6521,7 @@

        messageerror, in §4.7
      17. MultiCacheQueryOptions, in §5.5
      18. name to cache map, in §5.1 -
      19. navigate(url), in §4.2.10 +
      20. navigate(url), in §4.2.11
      21. navigationPreload, in §3.2.4
      22. navigation preload enabled flag, in §2.2
      23. navigation preload header value, in §2.2 @@ -6532,7 +6556,7 @@

        attribute for ServiceWorkerContainer, in §3.4.7
      24. attribute for ServiceWorkerGlobalScope, in §4.1.4 -
      25. onstatechange, in §3.1.4 +
      26. onstatechange, in §3.1.5
      27. onupdatefound, in §3.2.9
      28. open(cacheName), in §5.5.3
      29. openWindow(url), in §4.3.3 @@ -6551,7 +6575,13 @@

        attribute for ExtendableMessageEvent, in §4.6.5
      30. dict-member for ExtendableMessageEventInit, in §4.6 -
      31. postMessage(message), in §4.2.5 +
      32. postMessage(message), in §4.2.6 +
      33. + postMessage(message, options) +
      34. postMessage(message, transfer) + @@ -7863,7 +7900,7 @@

        https://html.spec.whatwg.org/multipage/interaction.html#focusing-stepsReferenced in: @@ -7872,11 +7909,11 @@

        2.3. Service Worker Client (2) (3)
      35. 2.4. Selection and Use -
      36. 3.1.3. postMessage(message, transfer) +
      37. 3.1.4. postMessage(message, options)
      38. 3.2.7. update()
      39. 3.4. ServiceWorkerContainer
      40. 4.2. Client -
      41. 4.2.5. postMessage(message, transfer) +
      42. 4.2.6. postMessage(message, options)
      43. 4.3.2. matchAll(options)
      44. 5.4.4. addAll(requests)
      45. 6.3.2. importScripts(urls) @@ -7888,8 +7925,8 @@

        https://html.spec.whatwg.org/multipage/interaction.html#has-focus-stepsReferenced in: