javascript - Using chrome.downloads.acceptDanger from background page context -


invoking chrome.downloads.acceptdanger api method background page context causes error:

javascript execution context not visible (tab, window, popup bubble)

what doing wrong? how call api background page?

this an undocumented restriction.

apparently, acceptdanger works displaying dialog user, , dialog tied visible page.

which means background page cannot call method currently.

chrome extension samples call in context of popup.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -