Skip to content

Commit 45e648d

Browse files
committed
Revert "Remove referer thing for now"
This reverts commit e610888.
1 parent e610888 commit 45e648d

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

css-values-4/Overview.bs

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,18 +1006,27 @@ URL processing model</h4>
10061006

10071007
3. Let |documentBase| be |environmentSettings|'s [=API base URL=].
10081008

1009-
4. Let |handleResourceFetchDone| be to do nothing.
1009+
4. Let |base| be |sheet|'s <a spec=cssom>stylesheet base URL</a>. [[CSSOM]]
10101010

1011-
5. Let |parsedUrl| be the result of the [=URL parser=] steps with |url| and |base|.
1011+
5. Let |referrer| be |documentBase|.
1012+
1013+
6. Let |handleResourceFetchDone| be to do nothing.
1014+
1015+
7. If |base| is null, set |base| to |documentBase|.
1016+
1017+
8. Let |parsedUrl| be the result of the [=URL parser=] steps with |url| and |base|.
10121018
If the algorithm returns an error, return.
10131019

1014-
6. Let |req| be a new [=/request=] whose [=request/url=] is |parsedUrl|, whose
1020+
9. If |corsMode| is "cors", set |referrer| to |sheet|'s
1021+
<a spec=cssom>location</a>. [[CSSOM]]
1022+
1023+
10. Let |req| be a new [=/request=] whose [=request/url=] is |parsedUrl|, whose
10151024
[=request/destination=] is |destination|, [=request/mode=] is |corsMode|,
10161025
[=request/origin=] is |environmentSettings|'s [=environment settings object/origin=],
10171026
[=request/credentials mode=] is "same-origin", [=request/use-url-credentials flag=] is
1018-
set, and whose [=request/referrer=] is |documentBase|.
1027+
set, and whose [=request/referrer=] is |referrer|.
10191028

1020-
7. [=/Fetch=] |req|, with |taskDestination| set to |global|, and |processResponseEndOfBody|
1029+
11. [=/Fetch=] |req|, with |taskDestination| set to |global|, and |processResponseEndOfBody|
10211030
set to the following steps given [=/response=] |res| and Null, failure or byte stream
10221031
|byteStream|:
10231032
1. If |sheet|'s <a spec=cssom>origin-clean flag</a> is set,

0 commit comments

Comments
 (0)