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

Trishul Goel trishul.goel at gmail.com
Mon Nov 13 04:55:07 UTC 2017


Hi Marat,

May be this will of help:

https://developer.mozilla.org/en-US/Add-ons/WebExtensions/manifest.json/chrome_settings_overrides

On 13-Nov-2017 9:57 AM, "Marat Tanalin" <mtanalin at yandex.ru> wrote:

> 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.
> _______________________________________________
> Dev-addons mailing list
> Dev-addons at mozilla.org
> https://mail.mozilla.org/listinfo/dev-addons
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/dev-addons/attachments/20171113/1776b4b1/attachment.html>


More information about the Dev-addons mailing list