gif.js
gif.js copied to clipboard
Chrome failing to open blob in new window/tab
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.
Were u able to solve this?
try to convert the Blob object to base64 : )
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.
If you're using AdBlock, it can close tab with blob url ;(
https://stackoverflow.com/questions/43283454/open-blob-objecturl-in-chrome/51101272#51101272
@evitolins Have you able to resolve it? I am facing same issue and not able to open blob(pdf) in browser.
Many thanks gromsterus! I had the same problem and it was Adblock !!!!!
I had the same problem, and cause is the Adblock (facepalm)
If you're using AdBlock, it can close tab with blob url ;(
your my life saver
I had the same problem, and cause is the Adblock
I'll have to verify but I do have uBlock running. If confirmed, I'll close the ticket. Thanks everyone!
If you're using AdBlock, it can close tab with blob url ;(
had same issue after closing adblock, its resovled!
I had the same problem, and cause is the Adblock
Thanks!