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 -

command line - Use qwinsta in PowerShell ISE -

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