From 810bb7ea80f7bf8eb5fe4fea3520191c880d26e9 Mon Sep 17 00:00:00 2001
From: Yutaka Hirano Let coep be the result of obtaining a cross-origin embedder policy from response.
If coep's value is " Let coep be the result of obtaining a cross-origin embedder policy from response.require-corp
", then set policy's BarProp {
from response and
+ reservedEnvironment.
If coep's value is " To obtain an embedder policy from a response response:BarProp {
Let policy be a new embedder policy.
If environment is a non-secure context, then return + policy.
Let parsedItem be the result of getting a structured field value
with `Cross-Origin-Embedder-Policy
` and "item
" from
response's header list.
To check a navigation response's adherence to its embedder policy given a response response and a browsing context - target:
+ data-x="concept-response">response response, a browsing context + target, and an environment environment:If target is not a child browsing context, then return true.
Let responsePolicy be the result of obtaining an embedder policy from response.
Let parentPolicy be target's container document's Location { // but see also Blocked", then set failure to true.
-Otherwise, if the result of reserved environment is non-null and + the result of checking a navigation response's adherence to its embedder policy given - response and browsingContext is false, then set failure to - true.
+ response, browsingContext and navigationParams's reserved environment is false, then set + failure to true.Otherwise, if the result of checking a navigation response's adherence to @@ -85152,7 +85162,11 @@ interface Location { // but see also embedder policy to the result of obtaining an embedder policy from navigationParams's response.
unsafe-none
"
+ otherwise.
Initialize a Otherwise, set worker global scope's embedder policy to the result of
obtaining an embedder policy from
- response.Document
's CSP list given
document, navigationParams's SharedWorkerGlobalScope : WorkerGlobalScope {
If worker global scope's