Skip to content

Commit c97d7f9

Browse files
committed
Address review feedback
1 parent bb24aca commit c97d7f9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

index.bs

Lines changed: 6 additions & 5 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 lt="resolve a blob URL|resolving the blob URL">resolve a blob URL</dfn> given a [=URL=] |url|:
1573+
To <dfn export id=blob-url-resolve>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,14 +1630,15 @@ 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 |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=].
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 |entry| be |url record|'s [=blob URL entry=].
1636+
1. Let |blobStorageKey| be the result of [=obtaining a storage key for non-storage purposes=] with |entry|'s [=blob URL entry/environment=].
16361637
1. Let |currentStorageKey| be the result of [=obtaining a storage key for non-storage purposes=] with the [=current settings object=].
16371638
1. If |blobStorageKey| is not [=storage key/equal=] to |currentStorageKey|, return.
16381639
1. [=Remove an entry from the Blob URL Store=] for |url|.
16391640

1640-
Note: This means that rather than throwing some kind of error, attempting to revoke a URL that isn't registered will silently fail.
1641+
Note: This means that rather than throwing some kind of error, attempting to revoke a URL that isn't registered or that was registered from an environment with a different storage key will silently fail.
16411642
User agents might display a message on the error console if this happens.
16421643

16431644
Note: Attempts to dereference |url| after it has been revoked will result in a [=network error=].

0 commit comments

Comments
 (0)