gif.js icon indicating copy to clipboard operation
gif.js copied to clipboard

Chrome failing to open blob in new window/tab

Open evitolins opened this issue 7 years ago • 13 comments

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.

evitolins avatar Mar 07 '17 17:03 evitolins

Were u able to solve this?

mvivekc avatar Aug 09 '17 18:08 mvivekc

try to convert the Blob object to base64 : )

mscststs avatar Dec 19 '17 04:12 mscststs

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.

1j01 avatar Dec 19 '17 05:12 1j01

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

gromsterus avatar Feb 21 '18 09:02 gromsterus

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

tursumbekov avatar Jun 29 '18 12:06 tursumbekov

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

ajay-verma-01 avatar Oct 09 '18 17:10 ajay-verma-01

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

ghost avatar Nov 30 '18 12:11 ghost

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

oTranQuangTrung avatar Dec 03 '18 12:12 oTranQuangTrung

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

your my life saver

minhoyooDEV avatar Jan 05 '19 08:01 minhoyooDEV

I had the same problem, and cause is the Adblock

LennonCecere avatar Feb 26 '19 14:02 LennonCecere

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

evitolins avatar Mar 07 '19 01:03 evitolins

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

had same issue after closing adblock, its resovled!

iammohsinar avatar Nov 02 '19 16:11 iammohsinar

I had the same problem, and cause is the Adblock

Thanks!

sharansp avatar Mar 28 '20 15:03 sharansp