diff --git a/fetch.bs b/fetch.bs index 5e931c4b2..5a5caeb56 100644 --- a/fetch.bs +++ b/fetch.bs @@ -3841,6 +3841,46 @@ the request. request's origin to request's client's origin. +
If all of the following conditions are true: + +
request's URL's scheme is an + HTTP(S) scheme + +
request's mode is "same-origin
",
+ "cors
", or "no-cors
"
+
+
request's window is not null + +
request's method is `GET
`
+
+
request's unsafe-request flag is not set or + request's header list is empty +
then: + +
Assert: request's origin is same origin + with request's client's + origin. + +
Let onPreloadedResponseAvailable be an algorithm that runs the following + step in parallel given a response response: run + fetch finale given response and fetchParams. + +
Let foundPreloadedResource be the result of invoking + consume a preloaded resource for req's window, + given req's URL, req's destination, + req's mode, req's credentials mode, + req's integrity metadata, and + onPreloadedResponseAvailable. + +
If foundPreloadedResource is true, then return. +
If request's policy container is "client
", then: