Webextension project : open new tab from urlbar, bookmark and search engine

Andrew Swan aswan at mozilla.com
Thu Nov 16 23:11:17 UTC 2017


A request to add an API for this is being tracked at:
https://bugzil.la/1393349


On Thu, Nov 16, 2017 at 5:30 AM, lolo jaja <lololajoie at hotmail.com> wrote:

> Hi
>
>
>
> I used to use the Tab Mix Plus extension but Firefox 57 doesn’t allow
> legacy extension anymore.
>
>
>
> I’d like a simple thing :
>
> When I use the urlbar, bookmark or search engine I’d like to open it in a
> new tab, not in the current one.
>
>
>
> I browsed the JavaScript APIs
> <https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API>
> but I can’t find anything.
>
> I see webNavigation.onBeforeNavigate
> <https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webNavigation/onBeforeNavigate>
> or webNavigation.onTabReplaced
> <https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webNavigation/onTabReplaced>
> but if I don’t have the url.
> webNavigation.onBeforeNavigate
> <https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webNavigation/onBeforeNavigate>
> has the url but it’s fired for all links and it’s not what I want.
>
>
>
> I must be searching in a wrong way.
>
>
>
> Does anyone have any idea ?
>
>
>
> Thx
>
> _______________________________________________
> 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/20171116/c0101097/attachment-0001.html>


More information about the Dev-addons mailing list