Opening browser's home page works in Dev. Edition but doesn't in Beta

Marat Tanalin mtanalin at
Mon Nov 13 04:27:24 UTC 2017

Hello. Loading browser's home (start) page with code like this:

    browser.browserSettings.homepageOverride.get({}).then(result => {
        browser.tabs.update({url: result.value});

works in Firefox Developer Edition, but apparently does not in Beta where it leads to these errors in console:

    settingsMap.get(...) is undefined  ExtensionPreferencesManager.jsm:358
    	getLevelOfControl resource://gre/modules/ExtensionPreferencesManager.jsm:358:28
    	InterpretGeneratorResume self-hosted:1281:8
    	next self-hosted:1188:9
    	get chrome://extensions/content/ext-browserSettings.js:27:17
    	next self-hosted:1188:9
    	get self-hosted:952:17
    	call/result< resource://gre/modules/ExtensionParent.jsm:739:57
    	withPendingBrowser resource://gre/modules/ExtensionParent.jsm:407:26
    	InterpretGeneratorResume self-hosted:1281:8
    	next self-hosted:1188:9
    	call resource://gre/modules/ExtensionParent.jsm:738:20
    	InterpretGeneratorResume self-hosted:1281:8
    	next self-hosted:1188:9
    Error: An unexpected error occurred

Is this Dev/Beta difference a bug or intended behavior described in detail somewhere?

Is there a different legit API to open browser's home page in WebExtensions-API-powered extensions? Thanks.

More information about the Dev-addons mailing list