diff --git a/source b/source index 5f8878827fa..ff29ae96776 100644 --- a/source +++ b/source @@ -77533,8 +77533,9 @@ console.assert(iframeWindow.frameElement === null);
If current's top-level browsing context's active
document's cross-origin opener policy's
- value is "same-origin
" or
- "same-origin-plus-COEP
", then:
same-origin
" or "same-origin-plus-COEP
", then:
Let currentDocument be current's active
@@ -79998,8 +79999,8 @@ interface BarProp {
A cross-origin opener policy value allows a document which is navigated to in a
top-level browsing context to force the creation of a new top-level browsing
- context, and a corresponding group. It consists of the
- following:
unsafe-none
"A value, which is a cross-origin opener policy value, initially "unsafe-none
".
A reporting endpoint, which is string or
- null
, initially null
.
A report only value, which is a cross-origin opener policy value, initially "unsafe-none
".
unsafe-none
".
A report only reporting endpoint,
- wich is a string or null
, initially null
.
To match cross-origin opener policy values, given a cross-origin opener policy value A, an origin - originA, a cross-origin opener policy value - B, and an origin originB:
+ originA, a cross-origin opener policy value B, and an + origin originB:If A is "unsafe-none
" and B
@@ -80107,47 +80108,46 @@ interface BarProp {
If response's HTTPS state
is "deprecated
", then return policy.
Let value be the result of Let parsedItem be the result of getting a structured header
given `Cross-Origin-Opener-Policy
` and
"item
" from response's header list.
If value is not failure and is not null, then:
+If parsedItem is neither failure nor null, then:
If value[0] is "same-origin
", then:
If parsedItem[0] is "same-origin
", then:
Let coep be the result of obtaining a cross-origin embedder - policy from response.
Let coep be the result of obtaining a cross-origin embedder policy from response.
If coep's value is
- " If coep's value is "require-corp
", then set policy require-corp
", then set policy's value to "same-origin-plus-COEP
".
Else, set policy value to " Else, set policy's value to "same-origin
".
If value bare item is " If parsedItem[0] is "same-origin-allow-popups
", then set
- policy value to "policy's value to "
same-origin-allow-popups
".
If value's parameters["report-to"] exists and it is a string, then set If parsedItem[1]["report-to
"] exists and it is a string, then set reporting endpoint to
- value's parameters["report-to"].
report-to
"].Let reportOnlyValue be the result of Set parsedItem to the result of getting a structured header
given `Cross-Origin-Opener-Policy-Report-Only
` and
@@ -80155,23 +80155,21 @@ interface BarProp {
data-x="concept-response-header-list">header list
If reportOnlyValue is not failure and is not null, then:
+If parsedItem is neither failure nor null, then:
If reportOnlyValue[0] is "same-origin
",
- then:
If parsedItem[0] is "same-origin
", then:
Let coep be the result of obtaining a cross-origin embedder - policy from response.
Let coep be the result of obtaining a cross-origin embedder policy from response.
If coep's value is
- "require-corp
" or coep's If coep's value is "require-corp
" or coep's report only value is "require-corp
", then set policy require-corp", then set policy's report only value to "same-origin-plus-COEP
".
Else, set policy report only
+ Else, set policy's report only
value to "same-origin
".
If reportOnlyValue bare item is " If parsedItem[0] is "same-origin-allow-popups
", then set
- policy report only value to
+ policy's report only value to
"same-origin-allow-popups
".
If reportOnlyValue's parameters["report-to"] exists and it is a string, then set If parsedItem[1]["report-to
"] exists and it is a string, then set report only reporting endpoint to
- reportOnlyValue's parameters["report-to"].
report-to
"].If the result of matching @@ -80219,14 +80217,14 @@ interface BarProp {
If all of the following are true:
-isInitialAboutBlank.
isInitialAboutBlank,
activeDocumentCOOPValue's value is
- "same-origin-allow-popups
".
same-origin-allow-popups
", andresponseCOOPValue is "unsafe-none
".
then return false.
@@ -80235,7 +80233,7 @@ interface BarProp {Return true.
To check if enforcing report only COOP
+ To check if enforcing report-only COOP
policies would require a browsing context group switch, given a boolean
isInitialAboutBlank, two origins
responseOrigin, activeDocumentNavigationOrigin, and two BarProp
Matching report only policies allows a website to specify the same report only - Cross-Origin-Opener-Policy on all its pages and not receive violation reports for navigations + cross-origin opener policy on all its pages and not receive violation reports for navigations between these pages.
@@ -80264,7 +80261,7 @@ interface BarProp { sandboxFlags, responseOrigin, activeDocumentNavigationOrigin, responseCOOP's value and activeDocumentCOOPReportOnly's report-only - value is true, return true. + value is true, then return true.If the result of checking if the navigation requires a @@ -80272,25 +80269,24 @@ interface BarProp { sandboxFlags, responseOrigin, activeDocumentNavigationOrigin, responseCOOP's report-only value and activeDocumentCOOPReportOnly's value is - true, return true.
Return false.
A cross-origin opener policy enforcement result is - a struct composed of:
+ a struct with the following items:A boolean needBrowsingContextGroupSwitch, - initially false.
A boolean needs a browsing context group + switch, initially false.
A boolean needBrowsingContextGroupSwitchReportOnly, - initially false.
A boolean sameOriginWithPreviousDocumentIncludingRedirects, - initally true.
A boolean same-origin with the previous + document including redirects, initally true.
To check if a response requires a
@@ -80306,8 +80302,8 @@ interface BarProp {
If activeDocumentNavigationOrigin is not same origin with
responseOrigin, set currentCOOPEnforcementResult's sameOriginWithPreviousDocumentIncludingRedirects to
- false.
Let activeDocumentCOOP be browsingContext's active document's cross-origin opener @@ -80324,33 +80320,34 @@ interface BarProp { the COOP values require a browsing context group switch given isInitialAboutBlank, activeDocumentCOOP's value, activeDocumentNavigationOrigin, - responseCOOP's value and + responseCOOP's value, and responseOrigin is true, set currentCOOPEnforcementResult's - needBrowsingContextGroupSwitch to true.
If the result of checking if enforcing report only COOP policies would require a browsing context group switch given isInitialAboutBlank, responseOrigin, activeDocumentNavigationOrigin, responseCOOP, and activeDocumentCOOP, is true, set currentCOOPEnforcementResult's needBrowsingContextGroupSwitchReportOnly - to true.
If browsingContext's browsing context group's browsing - context set's size is strictly greater than 1, then:
+ context set's size is greater than 1, then:Let previousDocumentURL be referrer.
If currentCOOPEnforcementResult's sameOriginIncludingRedirects is true, set - previousDocumentURL to currentDocumentURL.
If navigationCOOP's reporting endpoint is not If navigationCOOP's reporting
+ endpoint is not null and currentCOOPEnforcementResult's needs a browsing context group switch is true, queue a violation report for browsing context group switch
when navigating with navigationCOOP's reporting endpoint, navigationCOOP's
@@ -80359,11 +80356,11 @@ interface BarProp {
previousDocumentURL, and "null
and currentCOOPEnforcementResult's needBrowsingContextGroupSwitch is true, navigate-to-document
".
If navigationCOOP's report only reporting endpoint is not If coopEnforcementResult's needBrowsingContextGroupSwitchReportOnly
- is null
and currentCOOPEnforcementResult's needBrowsingContextGroupSwitchReportOnly,
- queue a violation report for browsing context group
- switch when navigating with navigationCOOP's report only reporting endpoint is not null and
+ currentCOOPEnforcementResult's would need a browsing context group switch due
+ to report-only, queue a violation report for
+ browsing context group switch when navigating with navigationCOOP's report only reporting endpoint,
navigationCOOP's report only
value, "reporting
", response's BarProp {
true
and browsingContext's browsing context
+ data-x="coop-enforcement-bcg-switch-report-only">would need a browsing context group switch due
+ to report-only is true and browsingContext's browsing context
group's browsing context set's size is
- strictly greater than 1, and activeDocumentCOOP's report only reporting endpoint is not null
, then:
If coopEnforcementResult's sameOriginIncludingRedirects is false and - source is not browsingContext, then break.
Let navigationURL be request's URL.
If coopEnforcementResult's sameOriginIncludingRedirects is true, set - navigationURL to response's URL + data-x="coop-enforcement-same-origin">same-origin with the previous document including + redirects is true, then set navigationURL to response's URL.
Queue a violation report for browsing context group switch when navigating with @@ -80420,27 +80418,28 @@ interface BarProp {
If coopEnforcementResult's needBrowsingContextGroupSwitch is false
, return browsingContext.
+ data-x="coop-enforcement-bcg-switch">needs a browsing context group switch is false, then
+ return browsingContext.
If browsingContext's browsing context group's browsing context
- set's size is strictly greater than 1, and
+ set's size is greater than 1, and
activeDocumentCOOP's reporting
- endpoint is not null
, then:
If coopEnforcementResult's sameOriginIncludingRedirects is false and - source is not browsingContext, then break.
Let navigationURL be request's URL.
If coopEnforcementResult's sameOriginIncludingRedirects is true, set - navigationURL to response's URL + data-x="coop-enforcement-same-origin">same-origin with the previous document including + redirects is true, then set navigationURL to response's URL.
Queue a violation report for browsing context group switch when navigating with @@ -80464,7 +80463,7 @@ interface BarProp {
If sandboxFlags is not empty, then:
Assert navigationCOOP's value is
- "unsafe-none
".
unsafe-none
".Set newBrowsingContext's sandboxing flag set to sandboxFlags.
To queue a violation report for browsing context group switch when navigating given a string endpoint, a cross-origin opener policy value @@ -80528,7 +80525,7 @@ interface BarProp {
Let parsedItem be the result of getting a structured header
- with `Cross-Origin-Embedder-Policy
` and "item
".
Cross-Origin-Embedder-Policy
` and "item
" from
+ response's header list.
If parsedItem is neither failure nor null and parsedItem[0] is " Set parsedItem to the result of getting a structured header
with `BarProp {
" from response's header list.Cross-Origin-Embedder-Policy-Report-Only
` and "item
".
If parsedItem is neither failure nor null and parsedItem[0] is "Location { // but see also cross-origin opener policy enforcement
result.
Let COOPEnforcementResult be a new Let coopEnforcementResult be a new cross-origin opener policy enforcement
result.
So for example a Let responseOrigin be null.
- Let COOPEnforcementResult be a Let coopEnforcementResult be a cross-origin opener policy enforcement result. Let finalSandboxFlags be an empty sandboxing flag set.
multipart/x-mixed-replace
"Set browsingContext to the result of the obtain a browsing context to use for a navigation response algorithm, given request, response, source, browsingContext, finalSandboxFlags, navigationCOOP, and - COOPEnforcementResult.
Let featurePolicy be the result of creating a feature policy from a @@ -83630,7 +83629,7 @@ new PaymentRequest(…); // Allowed to use source, browsingContext, request, response, finalSandboxFlags, finalResponseOrigin, incumbentNavigationOrigin, activeDocumentNavigationOrigin, environment, responseCOOP, and - COOPEnforcementResult the user agent must queue a task on the + coopEnforcementResult the user agent must queue a task on the networking task source to:
Create an HTML parser and associate it with the document. Each
@@ -83678,7 +83677,7 @@ new PaymentRequest(…); // Allowed to use
browsingContext, request, response, finalSandboxFlags,
finalResponseOrigin, incumbentNavigationOrigin,
activeDocumentNavigationOrigin, environment,responseCOOP, and
- COOPEnforcementResult user agents must follow the requirements defined in
+ coopEnforcementResult user agents must follow the requirements defined in
XML and Namespaces in XML, XML Media Types,
DOM, and other relevant specifications to create and initialize a Document
object
@@ -83686,7 +83685,7 @@ new PaymentRequest(…); // Allowed to use
source, browsingContext, finalSandboxFlags,
finalResponseOrigin incumbentNavigationOrigin,
activeDocumentNavigationOrigin, environment, responseCOOP. and
- COOPEnforcementResult. It must also create and a corresponding XML parser.
+ coopEnforcementResult. It must also create and a corresponding XML parser.
At the time of writing, the XML specification community had not actually yet @@ -83735,7 +83734,7 @@ new PaymentRequest(…); // Allowed to use browsingContext, request, response, finalSandboxFlags, finalResponseOrigin, incumbentNavigationOrigin, activeDocumentNavigationOrigin, environment,responseCOOP, and - COOPEnforcementResult the user agent must queue a task on the + coopEnforcementResult the user agent must queue a task on the networking task source to:
Create an HTML parser and associate it with the document. Act as if the tokenizer had emitted a start tag token with the tag name "pre" followed by a single @@ -83817,7 +83816,7 @@ new PaymentRequest(…); // Allowed to use browsingContext, request, response, finalSandboxFlags, finalResponseOrigin, incumbentNavigationOrigin, activeDocumentNavigationOrigin, environment, responseCOOP, - COOPEnforcementResult, the user agent should: + coopEnforcementResult, the user agent should:
Let document be the result of response, source, browsingContext, finalSandboxFlags, finalResponseOrigin, incumbentNavigationOrigin, activeDocumentNavigationOrigin, environment, responseCOOP, and - COOPEnforcementResult.
Append an html
element to document.
Let document be the result of response, source, browsingContext, finalSandboxFlags, finalResponseOrigin, incumbentNavigationOrigin, activeDocumentNavigationOrigin, environment, responseCOOP, and - COOPEnforcementResult.
Mark document as being a plugin document