May 22, 2022, 11:09:23 AMMay 22
to Chromium Extensions, hrg...@gmail.com, wOxxOm, Robbi
I've been banging my head since this morning.
It would seem that
<all_urls> allows you to capture ONLY the ACTIVE tab without necessarily having to click on the browseAction.
I tried via tab.update to divert the focus to another tab and then to take the photo and it works ONLY if the page schema is NOT chrome://
the activeTab permission, on the other hand, it also works on pages
with a chrome:// schema as long as the "activeTab" grant is given to the
tab by clicking on the browserAction.
After the tab has acquired that grant, captureVisibleTab can be used through a simple button.
Behavior, in my opinion, very strange.
I develop a small extension for testing purpouse.
Clicking the browserAction the first time, a page extension opens with same buttons
whereas the following clicks (on browserAction) activate the tabs.captureVisibleTab on current tab.
In manifest file there is already <all_urls> permission.
comment this permission and add "activeTab" to perform all combination tests