From 3a82faf01db9311d9039936d61a7f7646f7cdbbf Mon Sep 17 00:00:00 2001 From: Benjamin VanderSloot Date: Mon, 3 Feb 2025 10:38:40 -0500 Subject: [PATCH 1/3] Pass a top-level navigation initiator origin to Fetch To un-logjam the cookie layering work, I've started whatwg/fetch#1807. That depends on this info to be piped into Fetch so we can actually specify in WHATWG what SameSite=Strict means. This patch plumbs that through on top-level navigatable fetches. This doesn't build because it relies upon the corresponding patch in Fetch. Let me know to land these. --- source | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source b/source index fb5fddc4ebf..2a7b7136e65 100644 --- a/source +++ b/source @@ -102636,6 +102636,11 @@ location.href = '#foo';
referrer policy
entry's document state's request referrer policy
+ +
navigation initiator origin
+
entry's document state's initiator origin if navigable is a top-level traversable, + null otherwise.
From 78a185be9fab507429a147ed44ec76dce924035e Mon Sep 17 00:00:00 2001 From: Benjamin VanderSloot Date: Tue, 4 Mar 2025 15:40:38 -0500 Subject: [PATCH 2/3] Add defintion link and refactor set to be conditional --- source | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/source b/source index 2a7b7136e65..58eb586db54 100644 --- a/source +++ b/source @@ -2688,6 +2688,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • user-activation
  • render-blocking
  • initiator type
  • +
  • referrer policy
  • add a range header
  • @@ -102636,14 +102637,17 @@ location.href = '#foo';
    referrer policy
    entry's document state's request referrer policy
    - -
    navigation initiator origin
    -
    entry's document state's initiator origin if navigable is a top-level traversable, - null otherwise.
    +
  • +

    If navigable is a top-level traversable, set request's + top-level navigation + initiator origin to entry's document + state's initiator origin +

    +
  • +
  • If documentResource is a POST resource, then:

    From 69959dd5d8501808a7c280ba71830a909e0ad3b2 Mon Sep 17 00:00:00 2001 From: Benjamin VanderSloot Date: Mon, 10 Mar 2025 09:56:50 -0400 Subject: [PATCH 3/3] Formatting? --- source | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/source b/source index 58eb586db54..49ecfb10bb2 100644 --- a/source +++ b/source @@ -2688,7 +2688,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • user-activation
  • render-blocking
  • initiator type
  • -
  • referrer policy
  • +
  • top-level navigation initiator origin
  • add a range header
  • @@ -102640,13 +102640,10 @@ location.href = '#foo'; -
  • -

    If navigable is a top-level traversable, set request's - top-level navigation - initiator origin to entry's document - state's initiator origin -

    -
  • +
  • If navigable is a top-level traversable, set request's + top-level navigation + initiator origin to entry's document + state's initiator origin

  • If documentResource is a POST resource, then: