Migrating from SDK to WebExtensions; Multiple listed versions possible?

Andrew McKay amckay at mozilla.com
Thu Jun 1 19:26:43 UTC 2017


On 1 June 2017 at 02:40, Paul Kamer <paul at start.me> wrote:
> Hi Jorge,
>
> That's just what we wanted to hear, thanks for the quick response!
> We have 2 more questions that I hope you are able to answer as well.
>
> Our extension essentially is a replacement for the new tab page. After
> installing it, when a user opens a new tab, 'https://start.me' is opened.
> However we'd like to make this optional; Either start.me should open, or the
> default new tab page (about:newtab).
>
> Unfortunately, about:newtab is a "privileged page", so the extension is not
> allowed to open it (an Illegal URL error is thrown). Do you know if there is
> any way we can work around this problem?

If you call tabs.create without a URL it opens whatever the user has
assigned to about:newtab.

> I did a lot of searching lately, and checked out various other extensions
> that have been ported to WebExtensions, but couldnt find a solution. I found
> this bugreport which precisely describes this problem:
> https://bugzilla.mozilla.org/show_bug.cgi?id=1335102
> This one is also related:
> https://bugzilla.mozilla.org/show_bug.cgi?id=1269456
>
>
> The second question we have has to do with focussing &
> selecting/highlighting the URL in the address bar. When a user opens a new
> tab, they are redirected automatically to https://start.me. However, we'd
> like the full address in the address bar to be selected/highlighted, so that
> the user can immediately type in another URL.
> Would you know of a way to achieve this? I did quite a bit of searching on
> this too, but wasn't able to find a solution. Several extensions that
> currently do this have announced that they won't be porting their extension,
> because of the limitations that come with WebExtensions, like:
> https://addons.mozilla.org/en-us/firefox/addon/url-focus/?src=search
> https://addons.mozilla.org/en-US/firefox/addon/classicthemerestorer/
> I hope there is some sort of solution for this.

I don't think there's a solution for that at the moment.

> Thanks in advance,
> Paul
>
>
>
>
> On Wed, May 31, 2017 at 8:58 AM, Jorge Villalobos <jorge at mozilla.com> wrote:
>>
>> As long as the WebExtensions version has a strict_min_version of 54, you
>> should get what you want. Users on versions older than 54 will stay on
>> the SDK version until they update to Firefox 54 or newer.
>>
>> However, the AMO listing page will only show the latest version of the
>> add-on, and you won't be able to update the SDK branch once you upload
>> the WebExtensions version.
>>
>> Jorge
>>
>> On 5/29/17 2:54 PM, Paul Kamer wrote:
>> > Hello,
>> >
>> > We are migrating our extension
>> > (https://addons.mozilla.org/en-GB/firefox/addon/startme/) to
>> > WebExtensions. We'd like to avoid having to create a new extension and
>> > lose all the reviews/ratings of the current SDK-based version.
>> >
>> > So the question we have is, is it possible to have multiple listed
>> > versions? We'd like to keep the old SDK-based version available for old
>> > FireFox versions, and make the new WebExtensions-based one available
>> > from FireFox 54 onwards.
>> >
>> > Is this possible? Most likely we won't release any new versions of the
>> > SDK-based extension, but we'd like to keep it available for a few months
>> > more.
>> >
>> > Thanks in advance,
>> >
>> > Paul Kamer
>> > start.me <http://start.me>
>> >
>> >
>> > _______________________________________________
>> > Webextensions-support mailing list
>> > Webextensions-support at mozilla.org
>> > https://mail.mozilla.org/listinfo/webextensions-support
>> >
>
>
>
> _______________________________________________
> Webextensions-support mailing list
> Webextensions-support at mozilla.org
> https://mail.mozilla.org/listinfo/webextensions-support
>


More information about the Webextensions-support mailing list