My addon has a index.html
which can be opened in a tab as URL
moz-extension://<id of my ext>/index.html
On Firefox , I successfully got opened
moz-extension://<id of my ext>/index.html
tabs by :
chrome.tabs.query(
{
url:chrome.runtime.getURL('index.html'),
currentWindow: true
}, callbackfunc);
without any special permission.
But on Chrome, I need ‘tabs’ permission to get them.
Without ‘tabs’ permission, chrome.tabs.query({}, r=>console.log(r))
returns tabs without URL. Even those tabs from my extension.
‘tabs’ permission is too wide. I don’t think users will be comfortable with that.
Is there any way to get them withou ‘tabs’ permission?