MDN self-hosted library · e01.org

StorageAccessHandle: revokeObjectURL() method

Storage Access API

Storage Access API

[!NOTE] See revokeObjectURL() to understand usage.

Syntax

revokeObjectURL(objectURL)

Parameters

  • objectURL
  • : See revokeObjectURL().

Return value

None (undefined).

Exceptions

  • SecurityError DomException
  • : Thrown if access was not granted.

See revokeObjectURL()

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