URL.createObjectURL() is no longer available in service workers

Published: | Categories: DOM


The URL.createObjectURL and URL.revokeObjectURL static methods are now hidden from the service worker context, according to the latest Service Workers spec, due to blob URLs’ lifecycle issues. These are still available in dedicated workers and shared workers as well as on window.