I'm working on an enterprise extension where we make a screenshot of every page the user visits. For that we use the
chrome.tabs.captureVisibleTab() function which used to work fine with mv2 but doesn't seem to work with mv3.
When i try to capture an tab (for example
web.com)i get the following exception:
Unchecked runtime.lastError: Either the '<all_urls>' or 'activeTab' permission is required.
I have the following permissions in my manifest file:
"permissions": ["cookies","activeTab","tabCapture", "tabs", "storage", ],
When I try to use the <all_urls> permission I get the error message below:
Permission ‘<all_urls>’ is unknown or URL pattern is malformed.
When I click on the extensions action-button, the screenshots strangely seem to go well.
Has something changed or am I doing something wrong?