Firefox Tomorrow

web api instance method

StorageAccessHandle: revokeObjectURL() method

View on MDN ↗

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

Syntax

revokeObjectURL(objectURL)

Parameters

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

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also