browser.tabs.update with URL places focus in URL bar rather than loaded content
Categories
(WebExtensions :: General, enhancement, P5)
Tracking
(firefox57 wontfix)
Tracking | Status | |
---|---|---|
firefox57 | --- | wontfix |
People
(Reporter: bugzilla, Unassigned)
References
Details
(Whiteboard: [design-decision-needed])
Reporter | ||
Comment 1•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 3•7 years ago
|
||
Updated•7 years ago
|
Reporter | ||
Comment 6•6 years ago
|
||
Updated•6 years ago
|
Comment 7•4 years ago
|
||
This bug pretty much stops me from using any extension that does anything with the new-tab.
I want to press ctrl+t
and type a url.
But every extension which replaces the new-tab breaks this workflow.
Hopefully my comment will trigger a fresh look at this and make someone go "yeah we can do this!"
Comment 8•4 years ago
|
||
I think you are talking about the new Firefox 80 Nightly bug that breaks focus in addressbar for new tab with extension: bug 1652293, bug 1651372.
Both marked as duplicate of bug 1596738 (even though it's not).
Comment 9•4 years ago
|
||
Solution is to use this Firefox add-on:
https://addons.mozilla.org/en-US/firefox/addon/new-tab-override/
Comment 10•4 years ago
|
||
Can confirm, new tab override does work, but it really sucks that dev team can't give support to an add on developer that has been around a pretty long time, for something like this, where the focus should not ever be automatically shifting to the address bar upon creation of a new tab ANYHOW, EVER.
It needs to be fixed.
Comment 11•4 years ago
|
||
(I am the developer of New Tab Override)
Please note that add-ons like New Tab Override can only implement ugly workarounds to offer a choice at all - and the focus to the addressbar is broken in bad ways for every add-on like this because it is not possible to select the whole URL so that people can immediately start typing. I advocated for a useful API for new tab add-ons for years but so far nothing happened in this area.
Comment 12•4 years ago
|
||
The new tab override add-on is slow:
https://addons.mozilla.org/en-US/firefox/addon/new-tab-override/
Currently there's a new tab preference in Firefox, but it's very limited as it only offers the following two choices:
Firefox Home (Default)
Blank
Please add an option to select a URL, in my case I would select https://www.google.com/ as my new tab. In addition please provide an option so the cursor will jump to the first form, in my example this would be the search box.
Thank you.
Comment 13•4 years ago
|
||
I just realized I had two new tab add-ons and that was the reason the new tab override add-on was slow. However it would still be great to have in the preferences the option so select a URL and also have an option to have the cursor go to the first form so that no add-on would be needed.
Reporter | ||
Comment 14•4 years ago
|
||
Please can everyone stop commenting on this ticket unless they are proposing an actual implementation that fulfils the original request?
As an add-on author that has been around the Mozilla ecosystem for 16 years I'm aware of other add-ons and how they try to solve the problem and I specifically decided not to go down that route. I stated this in comment #0.
The simple fact is that this type of add-on shouldn't even be necessary because being able to load your homepage in a new tab should be a feature baked into Firefox. That hasn't happened for over a decade, despite it being implemented in every popular tab browsing add-on, and I don't really understand why. Other browsers have this feature, it's not controversial.
Either way, in lieu of a native implementation, we need a better API to make this work properly.
Comment 16•4 years ago
|
||
In case you are collecting use cases for this
We are experimenting with extensions that add functionality to the urlbar results, a lot of these will work as plain url suggestions that visit a url when clicked on, this would be simple with browser.tabs.update
however we would need it to behave the same way as other url bar suggestions and focus the content
Updated•2 years ago
|
Description
•