Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome failing to open blob in new window/tab #71

Open
evitolins opened this issue Mar 7, 2017 · 13 comments
Open

Chrome failing to open blob in new window/tab #71

evitolins opened this issue Mar 7, 2017 · 13 comments

Comments

@evitolins
Copy link

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.

@mvivekc
Copy link

mvivekc commented Aug 9, 2017

Were u able to solve this?

@mscststs
Copy link

try to convert the Blob object to base64 : )

@1j01
Copy link

1j01 commented 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.

@gromsterus
Copy link

If you're using AdBlock, it can close tab with blob url ;(

@tursumbekov
Copy link

https://stackoverflow.com/questions/43283454/open-blob-objecturl-in-chrome/51101272#51101272

@ajay-verma-01
Copy link

@evitolins
Have you able to resolve it?
I am facing same issue and not able to open blob(pdf) in browser.

@ghost
Copy link

ghost commented Nov 30, 2018

Many thanks gromsterus!
I had the same problem and it was Adblock !!!!!

@oTranQuangTrung
Copy link

oTranQuangTrung commented Dec 3, 2018

I had the same problem, and cause is the Adblock (facepalm)

@minhoyooDEV
Copy link

If you're using AdBlock, it can close tab with blob url ;(

your my life saver

@LennonCecere
Copy link

I had the same problem, and cause is the Adblock

@evitolins
Copy link
Author

I'll have to verify but I do have uBlock running. If confirmed, I'll close the ticket. Thanks everyone!

@iammohsinar
Copy link

If you're using AdBlock, it can close tab with blob url ;(

had same issue after closing adblock, its resovled!

@sharansp
Copy link

I had the same problem, and cause is the Adblock

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests