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