It looks like browser.permissions.request
/chrome.permissions.request
api isn't fully functional
In chromium browser, open the console for any extension and try this to request permissions:
chrome.permissions.request(
{
origins: ['https://orionfeedback.org/'],
},
(response) => console.log(response)
);
You will get a popup asking for permission, and true
or false
is logged depending on your answer
On Orion, we don't get the popup at all
In FF, you get an error in the console saying user input is needed, in Orion you get nothing (the js is different:
browser.permissions
.request({
origins: ['https://twitter.com/'],
})
.then((response) => console.log(response));
)
I guess this is a WIP for extensions support?