Add URL.createObjectURL and URL.revokeObjectURL
See original GitHub issueHi, jsdom
already supports the URL
constructor, but not these 2 static methods, they are supported in most modern browsers.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:101
- Comments:34 (5 by maintainers)
Top Results From Across the Web
URL.revokeObjectURL() - Web APIs | MDN
The URL.revokeObjectURL() static method releases an existing object URL which was previously created by calling URL.createObjectURL().
Read more >CreateObjectURL and RevokeObjectURL (Explained by ...
In this video we will learn how to use CreateObjectURL and RevokeObjectURL to cache resources locally after loading them with the fetch url...
Read more >HTML DOM revokeObjectURL() method - GeeksforGeeks
The URL revokeObjectURL() method releases an existing object URL which was created by using URL createObjectURL(). This method is called ...
Read more >When is it safe to call URL.revokeObjectURL? - Stack Overflow
createObjectURL creates a URL that represents a file or a blob. Because the URL is just a string the browser has no way...
Read more >Using URL.createObjectURL() - LinkedIn
Syntax from MDN: window.URL.revokeObjectURL(objectURL);. Calling the revokeObjectURL() static function also lets the browser know that this file ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@fredvollmer if using jest with jsdom and you want to noop this function you can add this code to
setupTest.js
(or an equivalent setup script)https://mobile.twitter.com/slicknet/status/782274190451671040