javascript - Open blob objectURL in Chrome -


i want open pdf in new tab in chrome browser (chrome 56.0.2924.87, ubuntu 14.04) using window.open(fileobjecturl) in javascript. creating blob base64 encoded data , create objecturl this:

const fileobjecturl = url.createobjecturl(fileblob);  

it works fine in latest firefox browser. in chrome can see new tab gets opened closed immediately. don't error in console etc. way works in chrome give base64 data directly window.open(filebase64data) function. don't complete data being set in url.

maybe safety issue chrome blocking opening of blobs?

the cause adblock extension (i had same problem).


Comments

Popular posts from this blog

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -