Note: See revokeObjectURL() to understand usage.
revokeObjectURL(objectURL)objectURLSee revokeObjectURL().
None (undefined).
SecurityError DomExceptionThrown if access was not granted.
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.