Skip to content

Commit 2939e93

Browse files
committed
Update obtain-a-blob-object to handle top-level self-fetch
Bypasses blob URL partitioning for fetches that are a top-level self-fetch. For more info, see: #210
1 parent 77b2086 commit 2939e93

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

index.bs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@ for a given asynchronous <a>read method</a> in this specification:
13201320

13211321
Web Workers allow for the use of synchronous {{File}} or {{Blob}} read APIs,
13221322
since such reads on threads do not block the main thread.
1323-
This section defines a synchronous API, which can be used within Workers [[Web Workers]].
1323+
This section defines a synchronous API, which can be used within Workers [[Workers]].
13241324
Workers can avail of both the asynchronous API (the {{FileReader}} object)
13251325
*and* the synchronous API (the {{FileReaderSync}} object).
13261326

@@ -1526,11 +1526,13 @@ an [=empty host=], and a [=url/path=] consisting of one element itself also a [=
15261526

15271527
<div algorithm="obtainBlobObject">
15281528
To <dfn export id=blob-url-obtain-object>obtain a blob object</dfn> given a [=blob URL entry=]
1529-
|blobUrlEntry| and an [=environment settings object=] or the string "`navigation`" |environment|,
1530-
perform the following steps. They return an [=blob URL entry/object=].
1529+
|blobUrlEntry| and an [=environment settings object=], the string "`navigation`", or the string
1530+
"`top-level-self-fetch`" |environment|, perform the following steps. They return an [=blob URL entry/object=].
15311531

15321532
1. Let |isAuthorized| be true.
1533-
1. If |environment| is not the string "`navigation`", then set |isAuthorized| to the result of [=checking for same-partition blob URL usage=] with |blobUrlEntry| and |environment|.
1533+
1. If |environment| is not the string "`navigation`" and not the string "`top-level-self-fetch`",
1534+
then set |isAuthorized| to the result of [=checking for same-partition blob URL usage=] with
1535+
|blobUrlEntry| and |environment|.
15341536
1. If |isAuthorized| is false, then return failure.
15351537
1. Return |blobUrlEntry|'s [=blob URL entry/object=].
15361538

0 commit comments

Comments
 (0)