From 16041a93d3c7e1c5d22e1fdfcb9d51acee269763 Mon Sep 17 00:00:00 2001 From: Shivani Sharma Date: Thu, 3 Oct 2019 12:59:44 -0400 Subject: [PATCH 01/37] Added top level origin definition --- source | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/source b/source index ee06cbd918f..7a948d3171a 100644 --- a/source +++ b/source @@ -81217,6 +81217,26 @@ interface BarProp { +

Top level origin

+ +

The top level origin of a resource request is computed as follows: + +

    +
  1. If the resource request is for + navigation + of a + + top level browsing context, then return the origin of the request itself.

  2. + +
  3. If the resource request is for navigation of a + + child browsing context, then return the origin of the context's top level browsing context. +

  4. + +
  5. Return the origin of the top level browsing context of the request.

  6. +
+ +

Relaxing the same-origin restriction

From 62eb0c613fd944a19644e13921ee86e05b6e1a6d Mon Sep 17 00:00:00 2001 From: Shivani Sharma Date: Thu, 3 Oct 2019 13:32:40 -0400 Subject: [PATCH 02/37] Change link for navigation --- source | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source b/source index 7a948d3171a..c8a5b627f43 100644 --- a/source +++ b/source @@ -81223,8 +81223,8 @@ interface BarProp {
  1. If the resource request is for - navigation - of a + + navigation of a top level browsing context, then return the origin of the request itself.

  2. From b4981d05fd63ae445fcb582966fdf1482cbb22af Mon Sep 17 00:00:00 2001 From: Shivani Sharma Date: Thu, 3 Oct 2019 13:46:00 -0400 Subject: [PATCH 03/37] Fixed parse error --- source | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source b/source index c8a5b627f43..44d44fbfa76 100644 --- a/source +++ b/source @@ -81219,7 +81219,7 @@ interface BarProp {

    Top level origin

    -

    The top level origin of a resource request is computed as follows: +

    The top level origin of a resource request is computed as follows:

    1. If the resource request is for @@ -81236,8 +81236,6 @@ interface BarProp {

    2. Return the origin of the top level browsing context of the request.

    -

    -

    Relaxing the same-origin restriction

    From f4841598c9dbe756baa5d43dedb2038b1209073e Mon Sep 17 00:00:00 2001 From: Shivani Sharma Date: Thu, 10 Oct 2019 12:53:58 -0400 Subject: [PATCH 04/37] Adding top level origin in the navigation section --- source | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/source b/source index 44d44fbfa76..7cbd1b27ec5 100644 --- a/source +++ b/source @@ -78367,6 +78367,19 @@ dictionary DragEventInit : MouseEventInit {
  3. Return url's origin.

+

To determine the top level origin, + given browsing context browsingContext:

+ +
    +
  1. If the browsingContext is a + top-level browsing context, then return the result of determining the origin + .

  2. + +
  3. If the browsingContext is a child browsing context, then return the result + of determining the origin of the browsingContext's top-level browsing context + .

  4. +
+

To create a new browsing context, given null or a Document object creator and browsing context group group:

@@ -81217,25 +81230,6 @@ interface BarProp { -

Top level origin

- -

The top level origin of a resource request is computed as follows:

- -
    -
  1. If the resource request is for - - navigation of a - - top level browsing context, then return the origin of the request itself.

  2. - -
  3. If the resource request is for navigation of a - - child browsing context, then return the origin of the context's top level browsing context. -

  4. - -
  5. Return the origin of the top level browsing context of the request.

  6. -
-

Relaxing the same-origin restriction

From e7f6f3e8c8c792780b5ba18e8f369e0fc7a2525c Mon Sep 17 00:00:00 2001 From: Shivani Sharma Date: Thu, 10 Oct 2019 13:05:56 -0400 Subject: [PATCH 05/37] reverted newline change --- source | 1 + 1 file changed, 1 insertion(+) diff --git a/source b/source index 7cbd1b27ec5..e8868d36a26 100644 --- a/source +++ b/source @@ -81230,6 +81230,7 @@ interface BarProp { +

Relaxing the same-origin restriction

From da502cf860a45b65219262c3fca8526ef052db92 Mon Sep 17 00:00:00 2001 From: Shivani Sharma Date: Thu, 10 Oct 2019 13:12:28 -0400 Subject: [PATCH 06/37] Removing trailing whitespace --- source | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source b/source index e8868d36a26..9166b442021 100644 --- a/source +++ b/source @@ -78371,9 +78371,8 @@ dictionary DragEventInit : MouseEventInit { given browsing context browsingContext:

    -
  1. If the browsingContext is a - top-level browsing context, then return the result of determining the origin - .

  2. +
  3. If the browsingContext is a top-level browsing context, then return the + result of determining the origin .

  4. If the browsingContext is a child browsing context, then return the result of determining the origin of the browsingContext's top-level browsing context From 3b5fa11a296aa786717eea667966d9ac0a474a53 Mon Sep 17 00:00:00 2001 From: Shivani Sharma Date: Thu, 24 Oct 2019 14:09:46 -0400 Subject: [PATCH 07/37] Adding top level origin to environment settings --- source | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/source b/source index 9166b442021..5747eb51550 100644 --- a/source +++ b/source @@ -78367,18 +78367,6 @@ dictionary DragEventInit : MouseEventInit {

  5. Return url's origin.

-

To determine the top level origin, - given browsing context browsingContext:

- -
    -
  1. If the browsingContext is a top-level browsing context, then return the - result of determining the origin .

  2. - -
  3. If the browsingContext is a child browsing context, then return the result - of determining the origin of the browsingContext's top-level browsing context - .

  4. -
-

To create a new browsing context, given null or a Document object creator and browsing context group group:

@@ -78426,8 +78414,19 @@ dictionary DragEventInit : MouseEventInit { +
  • Let top-level origin be the result of determining the origin given + browsingContext: +

      +
    • If browsingContext is a top-level browsing context, then return + origin.

    • + +
    • If browsingContext is a child browsing context, then return the + result of determining the origin of the top-level browsing context of + browsingContext.

    • +
    +
  • Set up a window environment settings object with realm execution - context, and let settingsObject be the result.

  • + context, top-level origin and let settingsObject be the result.

  • Let document be a new Document, marked as an HTML document in quirks mode, whose ApplicationCache : EventTarget { +

    A top-level origin
    + +
    + +

    A top-level origin used in security checks.

    + +
    +
    An HTTPS state

    An HTTPS state value representing the security properties of the network From 52e2d54a3992f986c3c61ddf44d673d489a724c1 Mon Sep 17 00:00:00 2001 From: Shivani Sharma Date: Fri, 25 Oct 2019 14:38:51 -0400 Subject: [PATCH 08/37] Added top-level origin to settings object definition --- source | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/source b/source index 5747eb51550..7cee20444e8 100644 --- a/source +++ b/source @@ -78414,8 +78414,8 @@ dictionary DragEventInit : MouseEventInit {

  • -
  • Let top-level origin be the result of determining the origin given - browsingContext: +

  • Let top-level origin be the result of + determining the top-level origin, given browsingContext:

    • If browsingContext is a top-level browsing context, then return origin.

    • @@ -80636,6 +80636,14 @@ interface BarProp { +
      The top-level origin
      +
      + +

      Return the result of determining the top-level origin of window's associated Document.

      + +
      +
      The HTTPS state
      @@ -88301,7 +88309,7 @@ interface ApplicationCache : EventTarget {
      -

      A top-level origin used in security checks.

      +

      A top-level origin used in security checks.

      From f83487dc53d03022c3ab561b65c0fbad85681ba3 Mon Sep 17 00:00:00 2001 From: Shivani Sharma Date: Tue, 19 Nov 2019 12:54:02 -0500 Subject: [PATCH 09/37] Feedback --- source | 43 +++++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/source b/source index 7cee20444e8..4706748dc17 100644 --- a/source +++ b/source @@ -78367,6 +78367,18 @@ dictionary DragEventInit : MouseEventInit {
    • Return url's origin.

    • +

      To determine the top-level origin, given + browsing context browsingContext:

      + +
        +
      1. If browsingContext is a top-level browsing context, then return + the result of determining the origin.

      2. + +
      3. If browsingContext is a child browsing context, then return the + result of determining the origin of the top-level browsing context of + browsingContext.

      4. +
      +

      To create a new browsing context, given null or a Document object creator and browsing context group group:

      @@ -78414,19 +78426,8 @@ dictionary DragEventInit : MouseEventInit {
  • -
  • Let top-level origin be the result of - determining the top-level origin, given browsingContext: -

      -
    • If browsingContext is a top-level browsing context, then return - origin.

    • - -
    • If browsingContext is a child browsing context, then return the - result of determining the origin of the top-level browsing context of - browsingContext.

    • -
    -
  • Set up a window environment settings object with realm execution - context, top-level origin and let settingsObject be the result.

  • + context and let settingsObject be the result.

  • Let document be a new Document, marked as an HTML document in quirks mode, whose BarProp {

    Script settings for Window objects

    When the user agent is required to set up a window environment settings object, - given a JavaScript execution context execution context and an optional - environment reserved environment, it must run the following steps:

    + given a JavaScript execution context execution context, an optional + environment reserved environment and an optional top-level + origin top-level origin, it must run the following steps:

    1. Let realm be the value of execution context's Realm @@ -80639,8 +80641,8 @@ interface BarProp {

      The top-level origin
      -

      Return the result of determining the top-level origin of window's associated Document.

      +

      Return the the top-level origin of window's + associated Document.

      @@ -84134,8 +84136,12 @@ interface Location { // but see also top-level origin +
      The top-level origin

      Return the the top-level origin of window's @@ -88310,8 +88310,7 @@ interface ApplicationCache : EventTarget {

      -
      A top-level origin
      +
      A top-level origin
      From 890c4d2b79d373e1cddbeaf75871718d61cbd66c Mon Sep 17 00:00:00 2001 From: Shivani Sharma Date: Tue, 19 Nov 2019 14:30:43 -0500 Subject: [PATCH 11/37] return the var top-level origin --- source | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source b/source index 4a31b7995f9..64260f93dc2 100644 --- a/source +++ b/source @@ -80641,8 +80641,7 @@ interface BarProp {
      The top-level origin
      -

      Return the the top-level origin of window's - associated Document.

      +

      Return top-level origin

      From 3bceaf64faed3fb8f247ec0ca3e1b36d4a3aeada Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Wed, 20 Nov 2019 14:01:40 -0500 Subject: [PATCH 12/37] Fix some formatting nits --- source | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/source b/source index 64260f93dc2..18795279c39 100644 --- a/source +++ b/source @@ -78372,7 +78372,7 @@ dictionary DragEventInit : MouseEventInit {
      1. If browsingContext is a top-level browsing context, then return - the result of determining the origin.

      2. + the result of determining the origin of browsingContext.

      3. If browsingContext is a child browsing context, then return the result of determining the origin of the top-level browsing context of @@ -78427,7 +78427,7 @@ dictionary DragEventInit : MouseEventInit {

      4. Set up a window environment settings object with realm execution - context and let settingsObject be the result.

      5. + context, and let settingsObject be the result.

      6. Let document be a new Document, marked as an HTML document in quirks mode, whose BarProp {

        The top-level origin
        -

        Return top-level origin +

        Return top-level origin.

        @@ -84135,12 +84135,12 @@ interface Location { // but see also
        HTML document in quirks mode, whose BarProp {

        Script settings for Window objects

        When the user agent is required to set up a window environment settings object, - given a JavaScript execution context execution context, an optional - environment reserved environment and an optional top-level - origin top-level origin, it must run the following steps:

        + given a JavaScript execution context execution context, a + top-level origin top-level origin and an optional + environment reserved environment, it must run the following steps:

        1. Let realm be the value of execution context's Realm @@ -84139,8 +84143,8 @@ interface Location { // but see also For shared and service workers this is still undefined and + is being worked on since such workers could be associated with multiple top + level browsing contexts.

          + + + +
          The HTTPS state
          From 78fc264b0530c4c930382696727ee23b3cb40500 Mon Sep 17 00:00:00 2001 From: Shivani Sharma Date: Tue, 3 Dec 2019 14:00:46 -0500 Subject: [PATCH 14/37] fixed parse error --- source | 1 - 1 file changed, 1 deletion(-) diff --git a/source b/source index 69655a86a59..232e30a9010 100644 --- a/source +++ b/source @@ -100716,7 +100716,6 @@ interface SharedWorkerGlobalScope : WorkerGlobalScope {
          -
          The HTTPS state
          From fbf9e590b00e68b5ad8fab67d4480288dd6462d2 Mon Sep 17 00:00:00 2001 From: Shivani Sharma Date: Tue, 3 Dec 2019 14:24:55 -0500 Subject: [PATCH 15/37] format nits --- source | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source b/source index 232e30a9010..c0e12d08ff7 100644 --- a/source +++ b/source @@ -84143,7 +84143,7 @@ interface Location { // but see also For shared and service workers this is still undefined and - is being worked on since such workers could be associated with multiple top + is being worked on, since such workers could be associated with multiple top level browsing contexts.

          From 2c35783563edc38e0fa615bf44090f31a5926ab8 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Wed, 4 Dec 2019 13:59:41 -0500 Subject: [PATCH 16/37] Typographical and grammar fixes --- source | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/source b/source index c0e12d08ff7..fe92a59d1b5 100644 --- a/source +++ b/source @@ -78429,9 +78429,9 @@ dictionary DragEventInit : MouseEventInit {
        2. Let top-level origin be the result of determining the top-level origin.

        3. -
        4. Set up a window environment settings object with realm execution - context, top-level origin and let settingsObject be the result. -

        5. +
        6. Let settingsObject be the result of setting up a window environment settings object given realm + execution context and top-level origin.

        7. Let document be a new Document, marked as an HTML document in quirks mode, whose BarProp {

          When the user agent is required to set up a window environment settings object, given a JavaScript execution context execution context, a - top-level origin top-level origin and an optional + top-level origin top-level origin, and an optional environment reserved environment, it must run the following steps:

            @@ -84143,8 +84143,8 @@ interface Location { // but see also For shared and service workers this is still undefined and - is being worked on, since such workers could be associated with multiple top - level browsing contexts.

            +

            Return outside settings's top-level origin for a dedicated + worker.

            + +

            For shared and service workers this is still undefined and is being worked on, + since such workers could be associated with multiple top-level browsing contexts.

            From d4649744129b40adfb4e8e07f82785b429a02bd0 Mon Sep 17 00:00:00 2001 From: Shivani Sharma Date: Tue, 17 Dec 2019 15:11:40 -0500 Subject: [PATCH 17/37] feedback --- source | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source b/source index fe92a59d1b5..fffcf535450 100644 --- a/source +++ b/source @@ -78427,7 +78427,7 @@ dictionary DragEventInit : MouseEventInit {
          1. Let top-level origin be the result of determining the top-level - origin.

          2. + origin for browsingContext.

          3. Let settingsObject be the result of setting up a window environment settings object given realm @@ -84140,7 +84140,7 @@ interface Location { // but see also origin.

          -

          To determine the top-level origin, given - browsing context browsingContext:

          - -
            -
          1. If browsingContext is a top-level browsing context, then return - the result of determining the origin of browsingContext.

          2. - -
          3. If browsingContext is a child browsing context, then return the - result of determining the origin of the top-level browsing context of - browsingContext.

          4. -
          -

          To create a new browsing context, given null or a Document object creator and browsing context group group:

          @@ -78426,12 +78414,9 @@ dictionary DragEventInit : MouseEventInit {
        8. -
        9. Let top-level origin be the result of determining the top-level - origin for browsingContext.

        10. -
        11. Let settingsObject be the result of setting up a window environment settings object given realm - execution context and top-level origin.

        12. + execution context.

        13. Let document be a new Document, marked as an HTML document in quirks mode, whose BarProp {

          Script settings for Window objects

          When the user agent is required to set up a window environment settings object, - given a JavaScript execution context execution context, a - top-level origin top-level origin, and an optional + given a JavaScript execution context execution context, and an optional environment reserved environment, it must run the following steps:

            @@ -80645,7 +80629,16 @@ interface BarProp {
            The top-level origin
            -

            Return top-level origin.

            +

            To determine the top-level origin, given + responsible browsing context browsingContext:

            +
              +
            1. If browsingContext is a top-level browsing context, then return + the result of determining the origin of browsingContext.

            2. +
            3. If browsingContext is a child browsing context, then return the + result of determining the origin of the top-level browsing context of + browsingContext.

            4. +
            +
            @@ -84139,12 +84132,8 @@ interface Location { // but see also
            For shared and service workers this is still undefined and is being worked on, since such workers could be associated with multiple determine the top-level origin, given - responsible browsing context browsingContext:

            +

            Let responsible browsing context be browsingContext. To + determine the top-level origin, given + browsingContext:

            1. If browsingContext is a top-level browsing context, then return the result of determining the origin of browsingContext.

            2. @@ -80639,7 +80640,6 @@ interface BarProp { browsingContext.

            -
            The HTTPS state
            @@ -88306,8 +88306,8 @@ interface ApplicationCache : EventTarget {
            -

            The origin of the top-level browsing context at the time - this settings object was retrieved.

            +

            The origin of the top-level browsing context associated with + responsible browsing context.

            From 50ebf054312d95eba3869a3ad19dfbe2a7cf223d Mon Sep 17 00:00:00 2001 From: Shivani Sharma Date: Tue, 14 Jan 2020 14:12:46 -0500 Subject: [PATCH 20/37] feedback --- source | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/source b/source index e79bba07902..0d32a656754 100644 --- a/source +++ b/source @@ -80546,7 +80546,7 @@ interface BarProp {

            Script settings for Window objects

            When the user agent is required to set up a window environment settings object, - given a JavaScript execution context execution context, and an optional + given a JavaScript execution context execution context and an optional environment reserved environment, it must run the following steps:

              @@ -80629,15 +80629,18 @@ interface BarProp {
              The top-level origin
              -

              Let responsible browsing context be browsingContext. To +

              Let responsible browsing context be browsingContext. To determine the top-level origin, given browsingContext:

              +
                -
              1. If browsingContext is a top-level browsing context, then return - the result of determining the origin of browsingContext.

              2. -
              3. If browsingContext is a child browsing context, then return the - result of determining the origin of the top-level browsing context of - browsingContext.

              4. + +
              5. If browsingContext is a top-level browsing context, then return + the result of determining the origin of browsingContext.

              6. + +
              7. If browsingContext is a child browsing context, then return the + result of determining the origin of the top-level browsing context of + browsingContext.

              @@ -84133,7 +84136,7 @@ interface Location { // but see also
              For shared and service workers this is still undefined and is being worked on, since such workers could be associated with multiple top-level browsing contexts.

              + context">top-level browsing contexts and the responsible browsing context + is just the first browsing context that spawned the worker, not any others which can access + it.

              From d2398580b773c3a8d090f4421882269bd690908f Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Tue, 14 Jan 2020 16:21:00 -0500 Subject: [PATCH 21/37] Small tweaks --- source | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/source b/source index 0d32a656754..bc5da0c2459 100644 --- a/source +++ b/source @@ -80629,18 +80629,19 @@ interface BarProp {
              The top-level origin
              -

              Let responsible browsing context be browsingContext. To - determine the top-level origin, given - browsingContext:

              +

              Return the result of determining the top-level origin given the + responsible browsing context.

              -
                - -
              1. If browsingContext is a top-level browsing context, then return - the result of determining the origin of browsingContext.

              2. +

                To determine the top-level origin, + given a browsing context browsingContext:

                -
              3. If browsingContext is a child browsing context, then return the - result of determining the origin of the top-level browsing context of +

                  +
                1. If browsingContext is a top-level browsing context, then + return the result of determining the origin of browsingContext.

                2. + +
                3. Return the result of determining the origin of the top-level + browsing context of browsingContext.

              @@ -100706,8 +100707,8 @@ interface SharedWorkerGlobalScope : WorkerGlobalScope {

              For shared and service workers this is still undefined and is being worked on, since such workers could be associated with multiple top-level browsing contexts and the responsible browsing context - is just the first browsing context that spawned the worker, not any others which can access - it.

              + is just the first browsing context that spawned the worker, discounting any others which can + access the worker.

              From 7f63f1ec83606fbdf2b3a6df3f60eadb6b3f3d25 Mon Sep 17 00:00:00 2001 From: shivanigithub Date: Thu, 23 Jan 2020 14:49:00 -0500 Subject: [PATCH 22/37] Return null if discarded --- source | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source b/source index bc5da0c2459..959eea64653 100644 --- a/source +++ b/source @@ -80636,12 +80636,12 @@ interface BarProp { given a browsing context browsingContext:

                -
              1. If browsingContext is a top-level browsing context, then - return the result of determining the origin of - browsingContext.

              2. -
              3. Return the result of determining the origin of the top-level - browsing context of browsingContext.

              4. +
              5. If browsingContext is already + discarded, then return null. + +

              6. Return the result of determining the origin of the + top-level browsing context of browsingContext.

              From 5915bb0b84f8e25bfb58a9994ca3efcea17669ec Mon Sep 17 00:00:00 2001 From: shivanigithub Date: Thu, 23 Jan 2020 15:52:30 -0500 Subject: [PATCH 23/37] feedback --- source | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source b/source index 959eea64653..098cc88b4ee 100644 --- a/source +++ b/source @@ -80638,7 +80638,7 @@ interface BarProp {
              1. If browsingContext is already - discarded, then return null. + discarded, then return null.

              2. Return the result of determining the origin of the top-level browsing context of browsingContext.

              3. @@ -88311,7 +88311,8 @@ interface ApplicationCache : EventTarget {

                The origin of the top-level browsing context associated with the - responsible browsing context.

                + responsible browsing context or null if the + responsible browsing context is discarded.

                From 318b1f1fccb6849d4a93408b047035f0ce1dd287 Mon Sep 17 00:00:00 2001 From: shivanigithub Date: Wed, 29 Jan 2020 16:54:18 -0500 Subject: [PATCH 24/37] Revert "feedback" This reverts commit 5915bb0b84f8e25bfb58a9994ca3efcea17669ec. --- source | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source b/source index 098cc88b4ee..959eea64653 100644 --- a/source +++ b/source @@ -80638,7 +80638,7 @@ interface BarProp {
                1. If browsingContext is already - discarded, then return null. + discarded, then return null.

                2. Return the result of determining the origin of the top-level browsing context of browsingContext.

                3. @@ -88311,8 +88311,7 @@ interface ApplicationCache : EventTarget {

                  The origin of the top-level browsing context associated with the - responsible browsing context or null if the - responsible browsing context is discarded.

                  + responsible browsing context.

                  From 9d4d89886f9e559648cc317e26efeade9433129b Mon Sep 17 00:00:00 2001 From: shivanigithub Date: Wed, 29 Jan 2020 16:54:34 -0500 Subject: [PATCH 25/37] Revert "Return null if discarded" This reverts commit 7f63f1ec83606fbdf2b3a6df3f60eadb6b3f3d25. --- source | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source b/source index 959eea64653..bc5da0c2459 100644 --- a/source +++ b/source @@ -80636,12 +80636,12 @@ interface BarProp { given a browsing context browsingContext:

                    +
                  1. If browsingContext is a top-level browsing context, then + return the result of determining the origin of + browsingContext.

                  2. -
                  3. If browsingContext is already - discarded, then return null. - -

                  4. Return the result of determining the origin of the - top-level browsing context of browsingContext.

                  5. +
                  6. Return the result of determining the origin of the top-level + browsing context of browsingContext.

                  From 1a2238864bb951f808d018d735d1d5bbb64972f1 Mon Sep 17 00:00:00 2001 From: shivanigithub Date: Wed, 29 Jan 2020 16:54:50 -0500 Subject: [PATCH 26/37] Revert "Small tweaks" This reverts commit d2398580b773c3a8d090f4421882269bd690908f. --- source | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/source b/source index bc5da0c2459..0d32a656754 100644 --- a/source +++ b/source @@ -80629,19 +80629,18 @@ interface BarProp {
                  The top-level origin
                  -

                  Return the result of determining the top-level origin given the - responsible browsing context.

                  - -

                  To determine the top-level origin, - given a browsing context browsingContext:

                  +

                  Let responsible browsing context be browsingContext. To + determine the top-level origin, given + browsingContext:

                    -
                  1. If browsingContext is a top-level browsing context, then - return the result of determining the origin of - browsingContext.

                  2. -
                  3. Return the result of determining the origin of the top-level - browsing context of browsingContext.

                  4. +
                  5. If browsingContext is a top-level browsing context, then return + the result of determining the origin of browsingContext.

                  6. + +
                  7. If browsingContext is a child browsing context, then return the + result of determining the origin of the top-level browsing context of + browsingContext.

                  @@ -100707,8 +100706,8 @@ interface SharedWorkerGlobalScope : WorkerGlobalScope {

                  For shared and service workers this is still undefined and is being worked on, since such workers could be associated with multiple top-level browsing contexts and the responsible browsing context - is just the first browsing context that spawned the worker, discounting any others which can - access the worker.

                  + is just the first browsing context that spawned the worker, not any others which can access + it.

                  From ab45aff0dfac9769838033a749871b5bc9f27858 Mon Sep 17 00:00:00 2001 From: shivanigithub Date: Wed, 29 Jan 2020 16:55:05 -0500 Subject: [PATCH 27/37] Revert "feedback" This reverts commit 50ebf054312d95eba3869a3ad19dfbe2a7cf223d. --- source | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/source b/source index 0d32a656754..e79bba07902 100644 --- a/source +++ b/source @@ -80546,7 +80546,7 @@ interface BarProp {

                  Script settings for Window objects

                  When the user agent is required to set up a window environment settings object, - given a JavaScript execution context execution context and an optional + given a JavaScript execution context execution context, and an optional environment reserved environment, it must run the following steps:

                    @@ -80629,18 +80629,15 @@ interface BarProp {
                    The top-level origin
                    -

                    Let responsible browsing context be browsingContext. To +

                    Let responsible browsing context be browsingContext. To determine the top-level origin, given browsingContext:

                    -
                      - -
                    1. If browsingContext is a top-level browsing context, then return - the result of determining the origin of browsingContext.

                    2. - -
                    3. If browsingContext is a child browsing context, then return the - result of determining the origin of the top-level browsing context of - browsingContext.

                    4. +
                    5. If browsingContext is a top-level browsing context, then return + the result of determining the origin of browsingContext.

                    6. +
                    7. If browsingContext is a child browsing context, then return the + result of determining the origin of the top-level browsing context of + browsingContext.

                    @@ -84136,7 +84133,7 @@ interface Location { // but see also
                    For shared and service workers this is still undefined and is being worked on, since such workers could be associated with multiple top-level browsing contexts and the responsible browsing context - is just the first browsing context that spawned the worker, not any others which can access - it.

                    + context">top-level browsing contexts.

                    From fcb7d6a96a8b3ef5803c3ba0405a3214f8c041cf Mon Sep 17 00:00:00 2001 From: shivanigithub Date: Wed, 29 Jan 2020 16:55:23 -0500 Subject: [PATCH 28/37] Revert "Lazy computation of top-level origin" This reverts commit e135536953c3061a09525fa7690419abaf6196bc. --- source | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source b/source index e79bba07902..9257093b67a 100644 --- a/source +++ b/source @@ -80629,9 +80629,8 @@ interface BarProp {
                    The top-level origin
                    -

                    Let responsible browsing context be browsingContext. To - determine the top-level origin, given - browsingContext:

                    +

                    To determine the top-level origin, given + responsible browsing context browsingContext:

                    1. If browsingContext is a top-level browsing context, then return the result of determining the origin of browsingContext.

                    2. @@ -80640,6 +80639,7 @@ interface BarProp { browsingContext.

                    +
                    The HTTPS state
                    @@ -88306,8 +88306,8 @@ interface ApplicationCache : EventTarget {
                    -

                    The origin of the top-level browsing context associated with - responsible browsing context.

                    +

                    The origin of the top-level browsing context at the time + this settings object was retrieved.

                    From 1451bcffb8e7556c259b57978fdfa99de7080d28 Mon Sep 17 00:00:00 2001 From: shivanigithub Date: Wed, 29 Jan 2020 16:55:38 -0500 Subject: [PATCH 29/37] Revert "Lazy computation of top-level origin" This reverts commit aa0e97fcf69117b1633e075b68bcba7d42bb85e1. --- source | 43 +++++++++++++++++++++++++++---------------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/source b/source index 9257093b67a..fffcf535450 100644 --- a/source +++ b/source @@ -78367,6 +78367,18 @@ dictionary DragEventInit : MouseEventInit {
                  1. Return url's origin.

                  +

                  To determine the top-level origin, given + browsing context browsingContext:

                  + +
                    +
                  1. If browsingContext is a top-level browsing context, then return + the result of determining the origin of browsingContext.

                  2. + +
                  3. If browsingContext is a child browsing context, then return the + result of determining the origin of the top-level browsing context of + browsingContext.

                  4. +
                  +

                  To create a new browsing context, given null or a Document object creator and browsing context group group:

                  @@ -78414,9 +78426,12 @@ dictionary DragEventInit : MouseEventInit { +
                4. Let top-level origin be the result of determining the top-level + origin for browsingContext.

                5. +
                6. Let settingsObject be the result of setting up a window environment settings object given realm - execution context.

                7. + execution context and top-level origin.

                8. Let document be a new Document, marked as an HTML document in quirks mode, whose BarProp {

                  Script settings for Window objects

                  When the user agent is required to set up a window environment settings object, - given a JavaScript execution context execution context, and an optional + given a JavaScript execution context execution context, a + top-level origin top-level origin, and an optional environment reserved environment, it must run the following steps:

                    @@ -80629,16 +80645,7 @@ interface BarProp {
                    The top-level origin
                    -

                    To determine the top-level origin, given - responsible browsing context browsingContext:

                    -
                      -
                    1. If browsingContext is a top-level browsing context, then return - the result of determining the origin of browsingContext.

                    2. -
                    3. If browsingContext is a child browsing context, then return the - result of determining the origin of the top-level browsing context of - browsingContext.

                    4. -
                    - +

                    Return top-level origin.

                    @@ -84132,8 +84139,12 @@ interface Location { // but see also
                    For shared and service workers this is still undefined and is being worked on, since such workers could be associated with multiple create a new browsing context, given - null or a Document object creator and browsing context group - group:

                    + null or a Document object creator, browsing context group + group and an optional intendedToplevelBrowsingContext:

                    @@ -78514,10 +78513,13 @@ dictionary DragEventInit : MouseEventInit { given an element element:

                      -
                    1. Let browsingContext be the result of creating a new browsing - context with element's node document and element's +

                    2. Let topLevelBrowsingContext be element's node document's browsing context's - top-level browsing context's group.

                    3. + top-level browsing context.

                      + +
                    4. Let browsingContext be the result of creating a new browsing + context with topLevelBrowsingContext's group + and topLevelBrowsingContext.

                    5. Set element's nested browsing context to browsingContext.

                    6. From a2b7b8f66d36fc48bf6a89d2ae9045dee53e88ec Mon Sep 17 00:00:00 2001 From: shivanigithub Date: Thu, 13 Feb 2020 05:07:27 -0500 Subject: [PATCH 31/37] removing determining the top-level origin --- source | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/source b/source index cee56877dec..fc743855793 100644 --- a/source +++ b/source @@ -78367,17 +78367,6 @@ dictionary DragEventInit : MouseEventInit {
                    7. Return url's origin.

                    -

                    To determine the top-level origin, given - browsing context browsingContext:

                    - -
                      -
                    1. Let topLevelBrowsingContext be intendedTopLevelBrowsingContext if - present, else browsingContext.

                    2. - -
                    3. Return the result of determining the origin of the - topLevelBrowsingContext.

                    4. -
                    -

                    To create a new browsing context, given null or a Document object creator, browsing context group group and an optional intendedToplevelBrowsingContext:

                    @@ -78425,8 +78414,13 @@ dictionary DragEventInit : MouseEventInit { -
                  1. Let top-level origin be the result of determining the top-level - origin for browsingContext.

                  2. +
                      +
                    1. Let topLevelBrowsingContext be intendedTopLevelBrowsingContext if + present, else browsingContext.

                    2. + +
                    3. Let top-level origin be the result of determining the origin of + the topLevelBrowsingContext.

                    4. +
                  3. Let settingsObject be the result of setting up a window environment settings object given realm @@ -84141,8 +84135,8 @@ interface Location { // but see also setting up a window environment settings object given realm From 2a849635551753953ffe7b9086df60efd1c5b329 Mon Sep 17 00:00:00 2001 From: shivanigithub Date: Thu, 13 Feb 2020 08:11:01 -0500 Subject: [PATCH 33/37] parse error fix --- source | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source b/source index 182d9021f20..a8a9471e6f7 100644 --- a/source +++ b/source @@ -78418,11 +78418,11 @@ dictionary DragEventInit : MouseEventInit {

                    To determine the top-level origin:

                      -
                    • Let topLevelBrowsingContext be intendedTopLevelBrowsingContext if - present, else browsingContext.

                    • +
                    • Set topLevelBrowsingContext to intendedTopLevelBrowsingContext if + present, and browsingContext otherwise.

                    • Let top-level origin be the result of determining the origin of - the topLevelBrowsingContext.

                    • + the topLevelBrowsingContext.

                  4. From ba3f160566df7b00e83b73de734fb7cc7294885e Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Tue, 18 Feb 2020 16:50:04 -0500 Subject: [PATCH 34/37] Nits --- source | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/source b/source index a8a9471e6f7..e0b2ff938c8 100644 --- a/source +++ b/source @@ -78369,7 +78369,7 @@ dictionary DragEventInit : MouseEventInit {

                    To create a new browsing context, given null or a Document object creator, browsing context group - group and an optional intendedToplevelBrowsingContext:

                    + group and an optional intendedTopLevelBrowsingContext:

                    @@ -78414,21 +78414,15 @@ dictionary DragEventInit : MouseEventInit { -
                  5. -

                    To determine the top-level origin:

                    - -
                      -
                    • Set topLevelBrowsingContext to intendedTopLevelBrowsingContext if - present, and browsingContext otherwise.

                    • +
                    • Let topLevelBrowsingContext be intendedTopLevelBrowsingContext if it + was given, or browsingContext otherwise.

                    • -
                    • Let top-level origin be the result of determining the origin of - the topLevelBrowsingContext.

                    • -
                    -
                  6. +
                  7. Let topLevelOrigin be the result of determining the origin of + topLevelBrowsingContext.

                  8. Let settingsObject be the result of setting up a window environment settings object given realm - execution context and top-level origin.

                  9. + execution context and topLevelOrigin.

                  10. Let document be a new Document, marked as an HTML document in quirks mode, whose Date: Sat, 7 Mar 2020 21:55:27 -0500 Subject: [PATCH 35/37] feedback --- source | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/source b/source index e0b2ff938c8..dd036a478b1 100644 --- a/source +++ b/source @@ -78369,7 +78369,7 @@ dictionary DragEventInit : MouseEventInit {

                    To create a new browsing context, given null or a Document object creator, browsing context group - group and an optional intendedTopLevelBrowsingContext:

                    + group, and an optional intendedTopLevelOrigin:

                    @@ -78414,11 +78414,8 @@ dictionary DragEventInit : MouseEventInit {
                  11. -
                  12. Let topLevelBrowsingContext be intendedTopLevelBrowsingContext if it - was given, or browsingContext otherwise.

                  13. - -
                  14. Let topLevelOrigin be the result of determining the origin of - topLevelBrowsingContext.

                  15. +
                  16. Let topLevelOrigin be intendedTopLevelOrigin, if present, otherwise + let topLevelOrigin be origin.

                  17. Let settingsObject be the result of setting up a window environment settings object given realm @@ -78505,13 +78502,14 @@ dictionary DragEventInit : MouseEventInit { given an element element:

                      -
                    1. Let topLevelBrowsingContext be element's +

                    2. Let topLevelOrigin be element's node document's browsing context's - top-level browsing context.

                    3. + top-level browsing context's active document's origin. +

                    4. Let browsingContext be the result of creating a new browsing context with topLevelBrowsingContext's group - and topLevelBrowsingContext.

                    5. + and topLevelOrigin.

                    6. Set element's nested browsing context to browsingContext.

                    7. @@ -84133,11 +84131,13 @@ interface Location { // but see also
                      browsing context's - top-level browsing context's active document's origin. -

                      + top-level browsing context.

                      + +
                    8. Let topLevelOrigin be topLevelBrowsingContext's + active document's origin.

                    9. Let browsingContext be the result of creating a new browsing context with topLevelBrowsingContext's group From 7fe83d12ff216a69438cec0068ea8591a12bcec8 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Wed, 11 Mar 2020 16:55:08 -0400 Subject: [PATCH 37/37] Export "obtaining an agent cluster key" too --- source | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source b/source index b08b85d3e4a..dc5bb1a859f 100644 --- a/source +++ b/source @@ -90707,7 +90707,7 @@ import "https://example.com/foo/../module2.mjs";

                      1. Let clusterKey be the result of obtaining an agent cluster key given + data-x="obtain-agent-cluster-key" data-export="">obtaining an agent cluster key given origin.

                      2. Let agentCluster be the result of