I've tried the following:
chrome.browserAction.onClicked.addListener(function(tab)
{
chrome.tabs.create({
url: "about:newtab"
});
});
Unfortunately, I can not open the new tab page about:newtab
with tabs.create()
. It throws a security error:
Security Error: Content at moz-extension://5cdd4429-f725-49c4-bdc1-547e1acc085b/ may not load or link to about:newtab.
How am I suppose to open about:newtab
from a Firefox WebExtension?
about:newtab
? You might need to request permissions in the manifest.json – Dialecticurl
parameter, it will probably openabout:newtab
. I'll ask some webext folk what perms you'll need forchrome://
. – Dialecticchrome.tabs.create();
– Dialectic