Search code examples
firefoxfirefox-addonfirefox-addon-sdk

redirect new tab to a url using firefox addon-sdk


I am developing a restartless firefox extension using firefox addon-sdk.I want whenever a newtab is opened it should load the desired url.In overlay extension it is done using setting the pref branch browser.newtab.url to that url.Can i set the pref 'browser.newtab.url' in addon-sdk?


Solution

  • Can i set the pref 'browser.newtab.url' in addon-sdk?

    Yes, you can. Take a look to preferences/service module.