You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.bs
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1570,7 +1570,7 @@ run the following steps:
1570
1570
## Dereferencing Model for blob URLs ## {#requestResponseModel}
1571
1571
1572
1572
<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|:
1574
1574
1575
1575
1. [=Assert=]: |url|'s [=url/scheme=] is "`blob`".
1576
1576
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|.
1630
1630
<div algorithm="revokeObjectURL">
1631
1631
The <dfn method for=URL id="dfn-revokeObjectURL">revokeObjectURL(|url|)</dfn> static method must run these steps:
1632
1632
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=].
1636
1637
1. Let |currentStorageKey| be the result of [=obtaining a storage key for non-storage purposes=] with the [=current settings object=].
1637
1638
1. If |blobStorageKey| is not [=storage key/equal=] to |currentStorageKey|, return.
1638
1639
1. [=Remove an entry from the Blob URL Store=] for |url|.
1639
1640
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.
1641
1642
User agents might display a message on the error console if this happens.
1642
1643
1643
1644
Note: Attempts to dereference |url| after it has been revoked will result in a [=network error=].
0 commit comments