Storage Access API
[!NOTE] See URL.revokeObjectURL_static to understand usage.
Syntax
revokeObjectURL(objectURL)
Parameters
objectURL- : See URL.revokeObjectURL_static.
Return value
None (undefined).
Exceptions
SecurityErrorDomException- : Thrown if access was not granted.
See URL.revokeObjectURL_static
Examples
document.requestStorageAccess({ revokeObjectURL: true }).then(
(handle) => {
console.log("revokeObjectURL access granted");
handle.revokeObjectURL(blob_url);
},
() => {
console.log("revokeObjectURL access denied");
},
);
[!NOTE] See Using the Storage Access API for a more complete example.
Specifications
Browser compatibility
See also
- Document.requestStorageAccess()
- Using the Storage Access API
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
