From 6d21701b44f9ac5252d816e4a00118cfd89d212b Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Thu, 1 Dec 2022 11:13:00 +0100 Subject: [PATCH] Collapse disowned into opener browsing context Tests: TODO. Fixes #5569. --- source | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/source b/source index 2bbc7e680d9..be006bb8378 100644 --- a/source +++ b/source @@ -84704,8 +84704,6 @@ dictionary WindowPostMessageOptions : StructuredSeri
  • If current is null, then return null.

  • -
  • If current's disowned is true, then return null.

  • -
  • If current's opener browsing context is null, then return null.

  • @@ -84718,7 +84716,7 @@ dictionary WindowPostMessageOptions : StructuredSeri
    1. If the given value is null and this's browsing context is non-null, then set this's browsing - context's disowned to true.

    2. + context's opener browsing context to null.

    3. If the given value is non-null, then return ? OrdinaryDefineOwnProperty(this, "opener", { @@ -84726,21 +84724,6 @@ dictionary WindowPostMessageOptions : StructuredSeri }).

    -
    -

    If a browsing context's disowned is true, its window.opener attribute is null. That prevents scripts in the - browsing context from changing any properties of its opener browsing - context's Window object (i.e., the Window object from which the - browsing context was created).

    - -

    Otherwise, if a browsing context's disowned is false, then scripts - in that browsing context can use window.opener to - change properties of its opener browsing context's Window object. For - example, a script running in the browsing context can change the value of window.opener.location, causing the opener browsing context to - navigate to a completely different document.

    -
    -

    The parent getter steps are:

    @@ -87907,8 +87890,6 @@ interface BeforeUnloadEvent : Event {
  • An opener origin at creation, an origin or null, initially null.

    -
  • A disowned boolean, initially false.

  • -
  • An is popup boolean, initially false.

    @@ -89870,7 +89851,7 @@ location.href = '#foo';
  • historyEntry's document's browsing context is not an auxiliary browsing - context whose disowned is false; and

  • + context
    whose opener browsing context is non-null; and

  • historyEntry's document's origin is not navigable's

  • targetEntry's document's browsing context is not an auxiliary browsing - context whose disowned is false; and

  • + context
    whose opener browsing context is non-null; and

  • targetEntry's document's origin is not oldOrigin