question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Chrome failing to open blob in new window/tab

See original GitHub issue

It seems a recent release of Chrome (Version 56.0.2924.87 (64-bit)) is blocking the ability to open a new window with the blob.

window.open(URL.createObjectURL(blob));

This doesn’t seem to be gif.js specific, but probably good to explore other options, or at least note it in the documentation.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:8
  • Comments:13

github_iconTop GitHub Comments

99reactions
gromsteruscommented, Feb 21, 2018

If you’re using AdBlock, it can close tab with blob url 😭

8reactions
1j01commented, Dec 19, 2017

You can create a link with document.createElement("a"), setAttribute("target", "_blank") and call click() on it during a gesture event like another click (but it can be on a button for instance). You can setAttribute("download", "animation.gif") to suggest a filename, or just setAttribute("download", "") to mark it as a download.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Chrome can not open blob in new tab - Stack Overflow
The cause may be AdBlock. There is a discussion at StackOverflow here: Open blob objectURL in Chrome. To disable AdBlock, click the AdBlock ......
Read more >
1626573 - Opening blob links in new tabs doesn't work (doesn ...
Bug 1626573 - P1 - BrowsingContext transmits BlobURL before loading an URI if ... 2a. right click the "open the array URL" and...
Read more >
Fix file download errors - Google Chrome Help
Make sure that your Internet connection is working normally. If your Internet connection is unstable, learn how to fix connection errors. Chrome will ......
Read more >
892133 - downloading a blob url with chrome ... - Monorail
Steps to reproduce the problem: 1. install the attached extension. ... What is the expected behavior? 1. the extension background page adds a...
Read more >
on click of link open pdf in new window using angular - You.com
Strict. Open links in a new tab ... Open pdf file in new tab in Angular ... PDF url validation in chrome headless...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found