Hi,
I am developing a WebExtension right now, more specifically a hybrid add-on (SDK based + WebExtension). But I have a few questions.
-
In SDK based add-ons I was able to create new about:pages. For example the settings of my add-on New Tab Override are accessible via about:newtaboverride. Is something similar possible with WebExtensions? Because “moz-extension://ecd773ac-2a57-ce4a-bf3e-eb3c90ac16c8/html/options.html” is a really annonying URL.
-
Why I can’t override the new tab page with all about:-pages? Let’s say I have the following code:
browser.tabs.query({active : true}, function (tab) {
browser.tabs.update(tab.id, {url : newTabUrl})
});
It works for websites, it works for about:blank and it works for about:home, but about:newtab (the default) and about:sync-tabs generate an error:
Error: Illegal URL: about:sync-tabs
I really want the option to use about:sync-tabs as new tab page.
- Is there a way to read the user’s homepage? I don’t want to change it, only read it.
Thank you.