revokeObjectURL static method

void revokeObjectURL(
  1. String url
)

@AvailableInWorkers("window_and_worker_except_service")

The revokeObjectURL() static method of the URL interface releases an existing object URL which was previously created by calling URL.createObjectURL_static.

Call this method when you've finished using an object URL to let the browser know not to keep the reference to the file any longer.

Note: This method is not available in Service Workers, due to issues with the Blob interface's life cycle and the potential for leaks.

Implementation

external static void revokeObjectURL(String url);