From b8f313fef024d73a9123234f7b43ffeddaab2c74 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Thu, 15 Aug 2024 15:29:32 +0900 Subject: [PATCH] Add "same origin with its ancestors" See discussion in https://github.com/w3c/webappsec-credential-management/pull/253. --- source | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/source b/source index 0102bbd865b..107d39a887b 100644 --- a/source +++ b/source @@ -96471,11 +96471,6 @@ interface NotRestoredReasons {
  • Return navigables.

  • -

    These descendant-collecting algorithms are described as looking at the DOM tree - of descendant Document objects. In reality, this is often not feasible since the DOM - tree can be in another process from the caller of the algorithm. Instead, implementations - generally replicate the appropriate trees across processes.

    -

    The document-tree child navigables of a Document document are given by these steps:

    @@ -96505,6 +96500,35 @@ interface NotRestoredReasons {
  • Return navigables.

  • +

    These descendant-collecting algorithms are described as looking at the DOM tree + of descendant Document objects. In reality, this is often not feasible since the DOM + tree can be in another process from the caller of the algorithm. Instead, implementations + generally replicate the appropriate trees across processes.

    + +

    A Document document is same origin with its + ancestors if the following algorithm returns true:

    + +
      +
    1. Let origin be document's origin.

    2. + +
    3. +

      For each ancestorNavigable of + document's ancestor navigables:

      + +
        +
      1. Let ancestorOrigin be ancestorNavigable's document's origin.

      2. + +
      3. If ancestorOrigin is not same origin with origin, + then return false.

      4. +
      +
    4. + +
    5. Return true.

    6. +
    +
    Navigable destruction