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

Andrew Swan aswan at mozilla.com
Mon Nov 13 17:42:19 UTC 2017


This is indeed a bug, I've filed it at https://bugzil.la/1416836
You can follow along there, the engineer who implemented that feature is
out today so there's unlikely to be much action until tomorrow at the
earliest.

-Andrew


On Sun, Nov 12, 2017 at 8:27 PM, 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/3eac8d33/attachment.html>


More information about the Dev-addons mailing list