From bb780318e7208b4a2ddf9e835c713b5cfd71f922 Mon Sep 17 00:00:00 2001
From: Dominic Farolino The fallback base URL of a If document is an Return browsingContext and document. To determine the origin, given a URL
url, a sandboxing flag set sandboxFlags, an
origin-or-null sourceOrigin, and an origin-or-null
@@ -94865,6 +94867,11 @@ interface BeforeUnloadEvent : Event {
data-x="document-state-nav-target-name">navigable target name is cleared. A base URL, which is a URL or null,
+ initially null. Nested histories, a list
of nested histories, initially an empty
list. Let initiatorOriginSnapshot be sourceDocument's origin. Let initiatorBaseURLSnapshot be sourceDocument's document base
+ URL. If sourceDocument's node navigable is not allowed by
sandboxing to navigate navigable given and sourceSnapshotParams,
@@ -95988,10 +95998,21 @@ location.href = '#foo';
the document state is finalized. If url is If url is Set documentState's origin to
+ documentState's initiator
+ origin. Set documentState's base URL
+ to initiatorBaseURLSnapshot. Otherwise, if url is To create navigation params from a srcdoc resource given a session history
entry entry, a navigable navigable, a target
snapshot params targetSnapshotParams, a navigation ID-or-null
From 36031822681ddfc1dd2bd7b13e96186d49a4e5a6 Mon Sep 17 00:00:00 2001
From: Dominic Farolino The fallback base URL of a If document is an Let sandboxFlags be the result of determining the creation sandboxing
flags given browsingContext and embedder. Let origin be the result of determining the
- origin given Let permissionsPolicy be the result of creating a permissions policy
@@ -94279,11 +94275,9 @@ interface BeforeUnloadEvent : Event {
Return browsingContext and document. To determine the origin, given a URL
- url, a sandboxing flag set sandboxFlags, an
- origin-or-null sourceOrigin, and an origin-or-null
- containerOrigin:Document
object document is the
URL record obtained by running these steps:
+ // TODO(domfarolino): Change this to no longer need to care about container origin.
iframe
srcdoc
document, then return document's
@@ -94278,6 +94279,7 @@ interface BeforeUnloadEvent : Event {
about:blank
, then set documentState's origin to documentState's initiator origin.about:blank
, then:
+
+ about:srcdoc
, then set
documentState's origin to
@@ -97677,6 +97698,7 @@ location.href = '#foo';
Document
object document is the
URL record obtained by running these steps:
iframe
srcdoc
document, then return document's
@@ -94110,13 +94110,9 @@ interface BeforeUnloadEvent : Event {
about:blank
, sandboxFlags, creatorOrigin,
- and null.about:blank
, sandboxFlags, and
+ creatorOrigin.
If sandboxFlags has its sandboxed origin browsing
@@ -94297,14 +94291,14 @@ interface BeforeUnloadEvent : Event {
If url is Assert: containerOrigin is non-null. Assert: initiatorOrigin is non-null. Return containerOrigin. Return initiatorOrigin.about:srcdoc
, then:
-
If url matches about:blank
and
- sourceOrigin is non-null, then return sourceOrigin.
Return url's origin.
Set documentState's base URL to initiatorBaseURLSnapshot.
Otherwise, if url is about:srcdoc
, then set
documentState's origin to
@@ -96053,8 +96047,8 @@ location.href = '#foo';
Let responseOrigin be the result of determining the origin given response's URL, - finalSandboxFlags, documentState's initiator origin, and null.
Let coop be a new cross-origin opener policy.
To create navigation params from a srcdoc resource given a session history entry entry, a navigable navigable, a target snapshot params targetSnapshotParams, a navigation ID-or-null @@ -97728,8 +97721,8 @@ location.href = '#foo';
Let responseOrigin be the result of determining the origin given response's URL, targetSnapshotParams's sandboxing - flags, null, and entry's document - state's origin.
Let coop be a new cross-origin opener policy.
Set responseOrigin to the result of determining the origin given response's URL, - finalSandboxFlags, entry's document - state's initiator origin, and - null.
If navigable is a top-level traversable, then:
From a30d972fa6f3870aa55652ed88b59e8f0c4fe1d3 Mon Sep 17 00:00:00 2001 From: Dominic FarolinoEach Document
has a navigation
id, which is a navigation ID or null, initially null.
Each Document
has a about base
+ URL, which is a URL or null, initially null.
This is only populated for "about:
"-schemed
+ Document
s, and gets populated from the document state's upon creation.
DocumentOrShadowRoot
interfaceDOM defines the base URL, which is a URL or null,
- initially null.
A about base URL, which is a + URL or null, initially null.
+ + domfarolino +This.
Nested histories, a list
From e71fda2323d7a5c8a6b57722e8e5a328170ef66c Mon Sep 17 00:00:00 2001
From: Dominic Farolino The fallback base URL of a If document is an If document's URL's scheme is " Assert: document's about base URL is non-null. If document's URL is
- Return document's about base
+ URL. Each Each Each This is only populated for " An initial URL, a URL or
null, initially null. A creator base URL, null or an algorithm that returns a URL,
initially null. Set creatorOrigin to creator's origin. Set browsingContext's creator base URL to an algorithm which
returns creator's base URL.Document
object document is the
URL record obtained by running these steps:
-
iframe
srcdoc
document, then return document's
- container document's document base
- URL.about
", then:
+
about:blank
, and document's browsing
- context's creator base URL is non-null, then return that creator base
- URL.Document
has a navigation
id, which is a navigation ID or null, initially null.Document
has a about base
+ Document
has an about base
URL, which is a URL or null, initially null.about:
"-schemed
- Document
s, and gets populated from the document state's upon creation.Document
s.The
@@ -94021,6 +94013,7 @@ interface BeforeUnloadEvent : Event {
DocumentOrShadowRoot
interface
A about base URL, which is a +
An about base URL, which is a URL or null, initially null.
- domfarolino -This.
+This will be populated only for "about:
"-schemed
+ Document
s and will be the fallback base URL for those
+ Document
s. It is a snapshot of the initiator Document
's document
+ base URL.
Nested histories, a list @@ -96011,19 +96007,24 @@ location.href = '#foo'; documentState's initiator origin.
Set documentState's base URL - to initiatorBaseURLSnapshot.
Set documentState's about base + URL to initiatorBaseURLSnapshot.
Otherwise, if url is about:srcdoc
, then set
- documentState's origin to
- navigable's parent's active document's origin.
Otherwise, if url is about:srcdoc
, then:
Set documentState's origin to + navigable's parent's active document's origin.
Set documentState's about base + URL to initiatorBaseURLSnapshot.
Let historyEntry be a new session history entry, with its URL set to url and its
Date: Wed, 28 Jun 2023 15:25:22 -0400
Subject: [PATCH 05/16] More
---
source | 40 +++++++++++++++++++++++++++++++++++++---
1 file changed, 37 insertions(+), 3 deletions(-)
diff --git a/source b/source
index 77e17f1b102..caccf563344 100644
--- a/source
+++ b/source
@@ -93352,6 +93352,10 @@ interface BeforeUnloadEvent : Event {
Let creatorOrigin be null.
+Let creatorBaseURL be null.
If creator is non-null, then:
@@ -94097,9 +94103,8 @@ interface BeforeUnloadEvent : Event {Set creatorOrigin to creator's origin.
Set browsingContext's creator base URL to an algorithm which - returns creator's base URL.
Set creatorBaseURL to creator's document base + URL.
Set browsingContext's virtual browsing context group ID to @@ -94185,6 +94190,9 @@ interface BeforeUnloadEvent : Event {
about:blank
NavigationTimingType
used for creating the navigation timing entry for the new Document
Once a navigation params struct is created, this standard does not @@ -96123,6 +96134,9 @@ location.href = '#foo';
navigate
"navigate
"loading
"An initial URL, a URL or null, initially null.
A creator base URL, null or an algorithm that returns a URL, - initially null.
A virtual browsing context group ID
integer, initially 0. This is used by cross-origin
opener policy reporting, to keep track of the browsing context group switches that would
From feac40d474d9c89e8bde5da02fd581138765a60b Mon Sep 17 00:00:00 2001
From: Dominic Farolino Let origin be the result of determining the
origin given about:blank
, sandboxFlags, and
- creatorOrigin.
Let permissionsPolicy be the result of creating a permissions policy @@ -94282,8 +94282,9 @@ interface BeforeUnloadEvent : Event {
To determine the origin, given a URL - url, a sandboxing flag set sandboxFlags, and an - origin-or-null initiatorOrigin:
+ url, a sandboxing flag set sandboxFlags, an + origin-or-null sourceOrigin, and an origin-or-null + containerOrigin:If sandboxFlags has its sandboxed origin browsing
@@ -94297,14 +94298,14 @@ interface BeforeUnloadEvent : Event {
If url is Assert: initiatorOrigin is non-null. Assert: containerOrigin is non-null. Return initiatorOrigin. Return containerOrigin.about:srcdoc
, then:
-
If url matches about:blank
and
- initiatorOrigin is non-null, then return initiatorOrigin.
Return url's origin.
Let responseOrigin be the result of determining the origin given response's URL, - finalSandboxFlags, and documentState's initiator origin.
Let coop be a new cross-origin opener policy.
Let responseOrigin be the result of determining the origin given response's URL, targetSnapshotParams's sandboxing - flags, and entry's document state's - origin.
Let coop be a new cross-origin opener policy.
Set responseOrigin to the result of determining the origin given response's URL, - finalSandboxFlags, entry's and document - state's initiator origin.
If navigable is a top-level traversable, then:
From 802156457eb6aedd5f7f02c3bf354ac7e035d428 Mon Sep 17 00:00:00 2001 From: Dominic FarolinoLet origin be the result of determining the
- origin given about:blank
, sandboxFlags, and
- creatorOrigin, and null.
about:blank
, sandboxFlags, creatorOrigin,
+ and null.
Let permissionsPolicy be the result of creating a permissions policy
From 69dc60d3c01e988f70f748ae64af6193a6fca1f5 Mon Sep 17 00:00:00 2001
From: Dominic Farolino If document's URL's scheme is " If document is an Assert: document's
If document's URL is
+ Return document's URL. a URL or null This is used to populate the resulting Once a navigation params struct is created, this standard does not
From b780dd43169c72e91248e423c1196ae8b4f5ee4f Mon Sep 17 00:00:00 2001
From: Dominic Farolino
about
", then:iframe
+ srcdoc
document, then:
about:blank
and document's about base URL is non-null, then return
+ document's about base URL.Document
Document
's about base URL.
If url is about:blank
, then:
If url is about:blank
or about:srcdoc
, then:
Set documentState's origin to @@ -96034,20 +96034,6 @@ location.href = '#foo';
Otherwise, if url is about:srcdoc
, then:
Set documentState's origin to - navigable's parent's active document's origin.
Set documentState's about base - URL to initiatorBaseURLSnapshot.
Let historyEntry be a new session history entry, with its URL set to url and its document state set to
From 1a6ea059c63e35be533b84448684e2cf3aada388 Mon Sep 17 00:00:00 2001
From: Dominic Farolino navigate
"
Document
a URL or null
- -This is used to populate the resulting Document
's about base URL.
Document
's about base URLOnce a navigation params struct is created, this standard does not @@ -96026,8 +96022,7 @@ location.href = '#foo';
Set documentState's origin to - documentState's initiator - origin.
Set documentState's about base URL to initiatorBaseURLSnapshot.
Document
Document
's about base URLa URL or null used to populate the new Document
's about base URL
This is only populated for "about:
"-schemed
+ Document
s that will be created by these navigation params.
Once a navigation params struct is created, this standard does not @@ -96128,7 +96133,8 @@ location.href = '#foo';
navigate
"Document
a URL or null used to populate the new Document
's about base URL
This is only populated for "about:
"-schemed
- Document
s that will be created by these navigation params.
Document
's about base URLOnce a navigation params struct is created, this standard does not