Skip to content

Commit b988256

Browse files
authored
Partition Blob URL revocation
1 parent f6247a2 commit b988256

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.bs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,7 @@ run the following steps:
15701570
## Dereferencing Model for blob URLs ## {#requestResponseModel}
15711571

15721572
<div algorithm="resolveURL">
1573-
To <dfn export id=blob-url-resolve>resolve a blob URL</dfn> given a [=URL=] |url|:
1573+
To <dfn export id=blob-url-resolve lt="resolve a blob URL|resolving the blob URL">resolve a blob URL</dfn> given a [=URL=] |url|:
15741574

15751575
1. [=Assert=]: |url|'s [=url/scheme=] is "`blob`".
15761576
1. Let |store| be the user agent's [=blob URL store=].
@@ -1630,11 +1630,11 @@ return the result of [=adding an entry to the blob URL store=] for |obj|.
16301630
<div algorithm="revokeObjectURL">
16311631
The <dfn method for=URL id="dfn-revokeObjectURL">revokeObjectURL(|url|)</dfn> static method must run these steps:
16321632

1633-
1. Let |url record| be the result of [=URL parser|parsing=] |url|.
1634-
1. If |url record|'s [=url/scheme=] is not "`blob`", return.
1635-
1. Let |origin| be the [=url/origin=] of |url record|.
1636-
1. Let |settings| be the [=current settings object=].
1637-
1. If |origin| is not [=same origin=] with |settings|'s [=environment settings object/origin=], return.
1633+
1. 1. Let |entry| be the result of [=resolving the blob URL=] |url|.
1634+
1. If |entry| is failure, return.
1635+
1. Let |blobStorageKey| be the result of [=obtaining a storage key for non-storage purposes=] with |entry|'s [=environment settings object=].
1636+
1. Let |currentStorageKey| be the result of [=obtaining a storage key for non-storage purposes=] with the [=current settings object=].
1637+
1. If |blobStorageKey| is not [=storage key/equal=] to |currentStorageKey|, return.
16381638
1. [=Remove an entry from the Blob URL Store=] for |url|.
16391639

16401640
Note: This means that rather than throwing some kind of error, attempting to revoke a URL that isn't registered will silently fail.

0 commit comments

Comments
 (0)