From 1eb054b9173442d4f23242ea258534238a4cda9b Mon Sep 17 00:00:00 2001
From: Mike West
Date: Fri, 10 Jan 2020 09:12:14 +0100
Subject: [PATCH 1/5] Set requests' user activation flag during navigation.
In order to support Fetch Metadata's `Sec-Fetch-User` header, this patch
sets navigation requests' user activation flag if the navigation is
triggered while the source browsing context has transient activation.
---
source | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/source b/source
index 947d022212a..f1455e2f91b 100644
--- a/source
+++ b/source
@@ -2838,6 +2838,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
parser metadata
reload-navigation flag
history-navigation flag
+ user activation flag
@@ -84457,6 +84458,10 @@ interface Location { // but see also id.
+ If sourceBrowsingContext's WindowProxy
's [[Window]] value has
+ transient activation, then set request's user activation flag.
+
If browsingContext's container is non-null
and has a browsing context scope origin, then set request's origin to that browsing context scope
From 0744a6eebdd07f4b193e2542e55c1952dd2366f0 Mon Sep 17 00:00:00 2001
From: Mike West
Date: Fri, 10 Jan 2020 09:23:09 +0100
Subject: [PATCH 2/5] fixup typo
---
source | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source b/source
index f1455e2f91b..bace4762869 100644
--- a/source
+++ b/source
@@ -84458,7 +84458,7 @@ interface Location { // but see also id.
- If sourceBrowsingContext's WindowProxy
's [[Window]] value has
+ If sourceBrowsingContext's WindowProxy
's [[Window]] value has
transient activation, then set request's user activation flag.
From 92e1a24aef326dea185b9b945005e7b70a224cde Mon Sep 17 00:00:00 2001
From: Mike West
Date: Tue, 11 Feb 2020 07:34:38 +0100
Subject: [PATCH 3/5] fixup hyphen
---
source | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/source b/source
index 2d7cc15cd29..c38a3bec843 100644
--- a/source
+++ b/source
@@ -2748,7 +2748,8 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
parser metadata
reload-navigation flag
history-navigation flag
- user activation flag
+ user-activation flag
@@ -84405,7 +84406,7 @@ interface Location { // but see also user activation flag.
+ data-x="concept-request-user-activation-flag">user-activation flag.
If browsingContext's container is non-null
and has a browsing context scope origin, then set request's
Date: Tue, 2 Mar 2021 16:10:50 +0100
Subject: [PATCH 4/5] fixup user activation
---
source | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/source b/source
index db1e3fd23df..dd303e920d8 100644
--- a/source
+++ b/source
@@ -2542,8 +2542,8 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
parser metadata
reload-navigation flag
history-navigation flag
- user-activation flag
+ user activation
@@ -84752,7 +84752,7 @@ interface Location { // but see also user-activation to true.
+ data-x="concept-request-user-activation">user activation to true.
If browsingContext's container is non-null:
From ce6cf034da94130d77455c94f45d7b649ec9f31e Mon Sep 17 00:00:00 2001
From: Anne van Kesteren
Date: Thu, 4 Mar 2021 09:22:23 +0100
Subject: [PATCH 5/5] nits
---
source | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/source b/source
index dd303e920d8..721180fd7c4 100644
--- a/source
+++ b/source
@@ -2542,8 +2542,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
parser metadata
reload-navigation flag
history-navigation flag
- user activation
+ user-activation
@@ -84752,7 +84751,7 @@ interface Location { // but see also user activation to true.
+ data-x="concept-request-user-activation">user-activation to true.
If browsingContext's container is non-null: