From 09775c2b2be441d6e87a66c2ef09b95c5ef375af Mon Sep 17 00:00:00 2001 From: John Delaney Date: Tue, 1 Sep 2020 14:36:07 -0400 Subject: [PATCH 1/5] Allow user agent to unload nested browsing contexts --- source | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/source b/source index 38973031a28..23dce8454fe 100644 --- a/source +++ b/source @@ -77385,6 +77385,24 @@ console.assert(iframeWindow.frameElement === null); +
User agent removal of nested browsing contexts
+ +

For a given browsing context container container, + the user agent can unload container's nested browsing context + browsingContext for any reason by running the following steps:

+ +
    +
  1. Let error be a network error corresponding to the reason for + unload.

  2. +
  3. Let navigationParams be a new navigation params whose + browsing context is + browsingContext, response is + error.

  4. +
  5. Run process a navigate response with + navigateParams and browsingContext.

  6. +
+ +

Security

@@ -123345,6 +123363,7 @@ INSERT INTERFACES HERE John Bussjaeger, John Carpenter, John Daggett, + John Delaney, John Fallows, John Foliot, John Harding, From 12cdfdf064d5a82862c74f6fb4df9520cffaebcb Mon Sep 17 00:00:00 2001 From: John Delaney Date: Tue, 1 Sep 2020 14:36:07 -0400 Subject: [PATCH 2/5] Allow user agent to unload nested browsing contexts --- source | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source b/source index 23dce8454fe..bc8cc5beb13 100644 --- a/source +++ b/source @@ -77394,12 +77394,14 @@ console.assert(iframeWindow.frameElement === null);
  1. Let error be a network error corresponding to the reason for unload.

  2. -
  3. Let navigationParams be a new navigation params whose - browsing context is + +

  4. Let navigationParams be a new navigation params whose browsing context is browsingContext, response is error.

  5. -
  6. Run process a navigate response with - navigateParams and browsingContext.

  7. + +
  8. Run process a navigate response with navigateParams and + browsingContext.

From e1bc160fb0762cee53f10e649ac680ecdf9edf0a Mon Sep 17 00:00:00 2001 From: John Delaney Date: Tue, 1 Sep 2020 14:50:57 -0400 Subject: [PATCH 3/5] Remove whitespace --- source | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source b/source index bc8cc5beb13..23790e69665 100644 --- a/source +++ b/source @@ -77399,7 +77399,7 @@ console.assert(iframeWindow.frameElement === null); data-x="navigation-params-browsing-context">browsing context is browsingContext, response is error.

- +
  • Run process a navigate response with navigateParams and browsingContext.

  • From 723e7c2f33fc5d1beef128cb28e4ecd5de8ef853 Mon Sep 17 00:00:00 2001 From: John Delaney Date: Tue, 1 Sep 2020 15:36:50 -0400 Subject: [PATCH 4/5] Use top-level navigate steps for unloading --- source | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/source b/source index 23790e69665..4ca43098ea0 100644 --- a/source +++ b/source @@ -77392,16 +77392,10 @@ console.assert(iframeWindow.frameElement === null); browsingContext for any reason by running the following steps:

      -
    1. Let error be a network error corresponding to the reason for +

    2. Let resource be a network error corresponding to the reason for unload.

    3. -
    4. Let navigationParams be a new navigation params whose browsing context is - browsingContext, response is - error.

    5. - -
    6. Run process a navigate response with navigateParams and - browsingContext.

    7. +
    8. Navigate browsingContext to resource, with historyHandling set to "replace", and source browsing context set to browsingContext.

    From 62a97dfa210288042dc706efad668bb93260eab6 Mon Sep 17 00:00:00 2001 From: John Delaney Date: Tue, 1 Sep 2020 15:38:31 -0400 Subject: [PATCH 5/5] Fix linting error --- source | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source b/source index 4ca43098ea0..6aa85052bb0 100644 --- a/source +++ b/source @@ -77395,7 +77395,9 @@ console.assert(iframeWindow.frameElement === null);
  • Let resource be a network error corresponding to the reason for unload.

  • -
  • Navigate browsingContext to resource, with historyHandling set to "replace", and source browsing context set to browsingContext.

  • +
  • Navigate browsingContext to resource, with historyHandling set to "replace", + and source browsing context set to browsingContext.