StorageAccessHandle: revokeObjectURL() property

Note: See revokeObjectURL() to understand usage.

Syntax

js
handle.revokeObjectURL(objectURL)

Parameters

Return value

None (undefined).

Exceptions

SecurityError DomException

Thrown if access was not granted.

See revokeObjectURL()

Examples

js
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

Specification
Extending Storage Access API (SAA) to non-cookie storage
# ref-for-dom-storageaccesshandle-revokeobjecturl

Browser compatibility

BCD tables only load in the browser

See also