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

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -