GNOME Bugzilla – Bug 105153
Focus on opening new tab
Last modified: 2010-05-28 05:09:40 UTC
When a new tab is opened the focus should be given to the location bar
Created attachment 14103 [details] [review] Patch
Tried to copy the mozilla behaviour: new tabs do not open homepage, but a blank page without about:blank. btw, my mail now is xan@masilla.org, not @dimensis.com, will create a new account soon :)
I think we should focus the location only when opening a new window/tab, when you open an url with context menu you probably want the page to be focused. A way to implement that is to activate the location only when the HOMEPAGE flag is set I think. Another thing. The _activate function cause the url to be highlighted. A lot of people use x selection and that behavior would be really annoying, so I bet they would start bugging ;) I dont really care myself but ... it's probaly worth to add a select flag to that function. About the about:blank thing I think it would be better to handle it in a separate bug/patch. The code you modified is only about VIEW_SOURCE I think, it's to copy the page without refetching it. Isnt the functionality you are trying to implement already available ? Prefs dialog->On new page->Show blank page ? I bet I'm missing something here. Thanks to be looking into this.
*** Bug 106477 has been marked as a duplicate of this bug. ***
fixed in cvs
I can still see this. Pressing Control+T opens up a new tab, but the location bar is not focused.
yeah this has been regressed in some way. I suspect mozilla focus changes :/
Aaaaaargh they broke it. They are stealing the focus when the page loads. Sucks sucks sucks.
Removing from tracker. 0.6 is not realistic :/
Is it possible to fix this anytime soon? I just switched from Galeon to Epiphany, and I use tabs very often... Typing letters when focus is on document instead of location bar has nice side effects... ;) - Toni ps. I can't seem to change the version in Bugzilla, could you update it to 0.7?
Do you mean it works with galeon ? Last time I tried it did not.
Hmm... my Galeon seems not to work with Mozilla 1.4 from Rawhide. Some packaging bug perhaps... Can't verify at the moment, but will do later. Anyway, I tested with Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030611 , and it works like charm.
The focus thing works fine with the following combination also: galeon-1.2.7-3 mozilla-1.2.1-27
Just tested galeon with my mozilla cvs and it doesnt work. Btw it worked until mozilla 1.4a. >Anyway, I tested with Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) >Gecko/20030611 , and it works like charm. Have you compiled epiphany with the same version ? Are you absolutely sure galeon is running that version and not some other on your hd ?
I'm running Rawhide's Epiphany, I did not compile it myself. Same with Mozilla and Galeon.
Make sure to use a galeon 1.3 version to test ... previous versions use gtk1, and the focus code is different. The code is very similar and they behave the same for me, it's very likely you are using a gtk1 galeon or a too old mozilla ... (it worked until mozilla 1.4a). We need to report this bug to mozilla ... but I'd need to track it before.
The current behaviour overrides the current X selection. Marco's comments above suggest this should not be the case. I had a bug on this http://bugs.debian.org/197227 From: Anand Kumria <wildfire@progsoc.org> Package: epiphany-browser Version: 0.7.0-1 Severity: normal Hi there, Creating a new tab in epiphany-browser destroys the current X selection and resets it to be the default URL. This is less than useful if you, say, copy a URL, attempt to open a tab within epiphany-browser and discover you've got to reselect (if possible) the URL and try agin.
This bug is about something different. The X selection issue is disappearead because we are no more cloning url. (cvs)
So this appear to be a gtkmozembed bug (or feature lack). http://bugzilla.mozilla.org/show_bug.cgi?id=210373
Ok I did the best was possible, now it's all up to mozilla guys
*** Bug 117832 has been marked as a duplicate of this bug. ***
*** Bug 117875 has been marked as a duplicate of this bug. ***
*** Bug 118109 has been marked as a duplicate of this bug. ***
*** Bug 118999 has been marked as a duplicate of this bug. ***
*** Bug 120852 has been marked as a duplicate of this bug. ***
*** Bug 120853 has been marked as a duplicate of this bug. ***
Added to CC
*** Bug 121496 has been marked as a duplicate of this bug. ***
Anything happened on this front?
*** Bug 122371 has been marked as a duplicate of this bug. ***
*** Bug 124109 has been marked as a duplicate of this bug. ***
I assume a fix for this bug will also stop the behaviour that one (background) tab might steal focus from the active tab? In most cases, you then can't retrieve focus just by clicking somewhere in the document, but you have to switch tab and back in order to retrieve focus.
My patch fix that too, yeah
> My patch fix that too, yeah Which patch ? I'm running Epiphany-1.0.3 with Mozilla-1.4.1 and the problem is not fixed. However, if I use Epiphany 0.8 with Mozilla-1.4.1, the problem is not there. So it's not a bug in Mozilla but a bug in Epiphany.
*** Bug 125247 has been marked as a duplicate of this bug. ***
*** Bug 124782 has been marked as a duplicate of this bug. ***
*** Bug 125482 has been marked as a duplicate of this bug. ***
The problem occurs in GNOME2.4 too so keyword set to GNOMEVER2.4
Still here in 1.1.0.
That's not surprising, since it's a mozilla bug.
*** Bug 128846 has been marked as a duplicate of this bug. ***
*** Bug 125170 has been marked as a duplicate of this bug. ***
*** Bug 129012 has been marked as a duplicate of this bug. ***
before loading the homepage, the we set the focus to the location bar but the location bar loses focus because we are loading "about:blank" page when there is no homepage and the loaded page is grabbing the focus. can we skip loading this 'blank' page. if we do this, the focus remains in the location bar.
If we dont load a blank page we will have several problems because the embed widget isnt initialized. Also it's not a complete solution to the problem because the focus should stay in location bar also for normal homepages. I think clahey has a mozilla patch to solve most of the focus problems with mozilla, though I'm not sure if it will be accepted upstream.
*** Bug 136274 has been marked as a duplicate of this bug. ***
*** Bug 137924 has been marked as a duplicate of this bug. ***
*** Bug 137999 has been marked as a duplicate of this bug. ***
Comment on attachment 14103 [details] [review] Patch Marking obsolete attachments in open bugs.
*** Bug 139829 has been marked as a duplicate of this bug. ***
*** Bug 140327 has been marked as a duplicate of this bug. ***
*** Bug 140521 has been marked as a duplicate of this bug. ***
*** Bug 142162 has been marked as a duplicate of this bug. ***
*** Bug 142887 has been marked as a duplicate of this bug. ***
*** Bug 143596 has been marked as a duplicate of this bug. ***
*** Bug 144056 has been marked as a duplicate of this bug. ***
For me main problem is, that I am loosing focus of my active tab sometimes when something is loading in the background. I suppose on some javascript pages? I think this is a BIG security problem!!! Imagine if you type something like a password in the wrong tab! I could imagine pages using this bug. Im am using Epiphany 1.2.6 now ... still the same problem, since(?) Thilo
*** Bug 145348 has been marked as a duplicate of this bug. ***
*** Bug 145736 has been marked as a duplicate of this bug. ***
*** Bug 148766 has been marked as a duplicate of this bug. ***
*** Bug 152927 has been marked as a duplicate of this bug. ***
*** Bug 154669 has been marked as a duplicate of this bug. ***
Mass reassigning of Epiphany bugs to epiphany-maint@b.g.o
*** Bug 155817 has been marked as a duplicate of this bug. ***
For me, this is one of the two epiphany bugs that I encounter most. (The other is focus in a textarea being stolen if a page in another tab refreshes.)
*** Bug 159082 has been marked as a duplicate of this bug. ***
*** Bug 159448 has been marked as a duplicate of this bug. ***
*** Bug 165135 has been marked as a duplicate of this bug. ***
*** Bug 165192 has been marked as a duplicate of this bug. ***
*** Bug 151943 has been marked as a duplicate of this bug. ***
*** Bug 171832 has been marked as a duplicate of this bug. ***
Is this fixed yet? I have the same issue / enhancement request.
Is there any chance to get it fixed? Please, please, please. It's extremely annoying and non productive to perform tabbed browsing and constantly press Ctrl+L anter each Ctrl+T. Perhaps, it's a mozilla (gecko?) bug, but FireFox works perfectly under the same conditions. I do not want to switch to FireFox... :(
this is not only a new tab but also a new window.
*** Bug 301952 has been marked as a duplicate of this bug. ***
*** Bug 149443 has been marked as a duplicate of this bug. ***
*** Bug 303726 has been marked as a duplicate of this bug. ***
More than two years has passed, and such a major usability bug has not been fixed. No offence, but where are the great Gnome Usability Guidelines at work here? Epiphany is really nice and fast browser, but - c'mon, two years with such bug open?
Are we waiting for it to be fixed in Mozilla? They are sure taking their time. Couldn't we make some kind of workaround? Obviously it'd be best if GtkMozEmbed were fixed, but nobody wants to wait for that to happen.
*** Bug 306458 has been marked as a duplicate of this bug. ***
*** Bug 306141 has been marked as a duplicate of this bug. ***
It works as it should in Firefox, which suggests that this is possible now, if not before. As an extensive tab user, this is a must for Epiphany to be a viable alternative. It also seems a bit too much like playing the "blame game" with such a bug open for two years. If it is the Mozilla team's fault, they've been made aware of the problem and they flat out refuse to fix it (which seems very unlikely), then it can't be that big of a deal for experienced hackers from here to come up with a patch? Did anyone take a good look at it? Is a bug properly filed on their side?
mozilla has a fix on: https://bugzilla.mozilla.org/show_bug.cgi?id=226708
*** Bug 311427 has been marked as a duplicate of this bug. ***
*** Bug 311681 has been marked as a duplicate of this bug. ***
This is fixed in cvs for gnome 2.12.
*** Bug 312958 has been marked as a duplicate of this bug. ***
Created attachment 50646 [details] [review] backport of fix to gnome-2-10 branch
Created attachment 50856 [details] [review] backport to gnome-2-8
*** Bug 318685 has been marked as a duplicate of this bug. ***
Soo, how is this fixed? I'm using Epiphany 1.9.99 with “gecko-1.8” and Ctrl+T still results in the address bar NOT being focused. It would have been great if the one who closed this bug actually pointed out when and how it was fixed? Was it deemed, NOT A BUG/it's a feature? All I can find is that it's fixed in cvs for gnome 2.12 and I'm on 2.14 and it still doesn't work.
You must have an empty homepage set for it to work. If the new tab loads a page, that page will steal focus.
*** Bug 334739 has been marked as a duplicate of this bug. ***
Correction to comment #92: the page will not steal focus, but it will be given focus on purpose.
*** Bug 343165 has been marked as a duplicate of this bug. ***
*** Bug 346277 has been marked as a duplicate of this bug. ***
Using 2.14.2.1 when CTRL-T to new tab, focus does not head to the URL. As of my understanding in usability, based on about 20 people inquiry, focus should go to URL. From what i've read the final decision is not do implement it ?
Pedro: the address bar does get focus when you create a new tab, but only when you do not have a homepage defined. If a a page is loaded in the new tab, then the priority is given to the page (so that, in the case of a search field, you can start typing right away). Alternative solution: Use Ctrl+L to focus addres bar; Type a new address in the address bar and then press Ctrl+Enter to open it in a new tab. Please send any further comments to the mailing list.
*** Bug 350174 has been marked as a duplicate of this bug. ***
*** Bug 350287 has been marked as a duplicate of this bug. ***
*** Bug 354734 has been marked as a duplicate of this bug. ***
A little extension can be made for this maybe.
*** Bug 356661 has been marked as a duplicate of this bug. ***
Why does New Tab load the Home Page anyway? That behavior makes no sense to me. The Home Page should be where the browser starts up, NOT where new tabs should start up. If all new tabs were blank, this bug could be closed, and many people would be happy. If that is not possible, how about offereing a New Blank Tab button, different from the current New (Home Page) Tab button? Just a suggestion. I'm trying to switch to epiphany 2.14.3 from Firefox, and this was a major irritant. So far, I'm working around it by having a blank home page, but that is not a great long-term solution.
*** Bug 365137 has been marked as a duplicate of this bug. ***
*** Bug 392750 has been marked as a duplicate of this bug. ***
*** Bug 408329 has been marked as a duplicate of this bug. ***
*** Bug 432176 has been marked as a duplicate of this bug. ***
*** Bug 435093 has been marked as a duplicate of this bug. ***
*** Bug 450687 has been marked as a duplicate of this bug. ***
*** Bug 451960 has been marked as a duplicate of this bug. ***
*** Bug 455763 has been marked as a duplicate of this bug. ***
*** Bug 481621 has been marked as a duplicate of this bug. ***
*** Bug 526381 has been marked as a duplicate of this bug. ***
*** Bug 532214 has been marked as a duplicate of this bug. ***
*** Bug 536919 has been marked as a duplicate of this bug. ***
*** Bug 539158 has been marked as a duplicate of this bug. ***
Bug in launchpad: https://bugs.edge.launchpad.net/epiphany-browser/+bug/6277
*** Bug 552646 has been marked as a duplicate of this bug. ***
*** Bug 563545 has been marked as a duplicate of this bug. ***
*** Bug 591374 has been marked as a duplicate of this bug. ***
I ended up switching to galeon, which "does the right thing" as far as new tabs. Hitting Ctrl-T gives you a blank tab, with the focus in the URL bar. Love it.
(In reply to comment #122) > I ended up switching to galeon, which "does the right thing" as far as new > tabs. Good for you. > Hitting Ctrl-T gives you a blank tab, with the focus in the URL bar. Love > it. You know what? Epiphany does the exact same thing if you have no homepage set.
(In reply to comment #123) > > Hitting Ctrl-T gives you a blank tab, with the focus in the URL bar. Love > > it. > > You know what? Epiphany does the exact same thing if you have no homepage set. > Your reply sounds a bit defensive, so I apologize if it sounded like I was bashing epiphany or trying to pull users away from your project. You have made a very conscious design choice that ties the homepage feature to the new tab feature. For people who agree with that choice, it's fine. However, a lot of people (~70) have reported this as a bug, and since you have no intention of changing it in epiphany, I thought I would document an alternative solution for them. Free software is about choice and transparency. I hope epiphany continues to be successful.
*** Bug 596465 has been marked as a duplicate of this bug. ***
*** Bug 600328 has been marked as a duplicate of this bug. ***
If I may add my two cents to the discussion on this 7 year old bug (!), I think giving the focus to the page when it's loaded perfectly makes sense. However, I would advocate for opening a blank page (instead of the home page) when opening a new tab. The reason being that my usual workflow when I want to visit a new page is to hit Ctrl+T to open a new tab, and expect to be able to type in the new location right away, without having to hit Ctrl+L. Hitting Ctrl+L first to focus the address bar, then replacing the current URL, and then hitting Ctrl+Enter doesn't feel natural at all to me. This is of course subject to debate, but it seems quite a lot of users have pretty much the same workflow. On the other hand it would be interesting to know how "normal" users operate (I suspect people who comment on bug reports are somewhat power users). Epiphany's current behaviour is not "a major irritant" to me, more like an annoying glitch which I have to remember to work around (using Ctrl+L) all the time. I really think the "new tab" and the "home page" concepts shouldn't be so tightly linked, they really are two different things IMHO. If opening a new tab wouldn't load any page (thus not stealing the focus from the address bar), users would still be only one shortcut (Alt+Home) away from loading the home page. That's a trade-off worth considering, isn't it? Again, please take it for what it is, a rather fresh point of view on an old discussion, I may be missing important usability considerations that led to chose the current behaviour.
This is no longer a problem since by now most people bothered by this bug have switched to either Firefox or Chromium...
(In reply to comment #128) > This is no longer a problem since by now most people bothered by this bug have > switched to either Firefox or Chromium... This is no longer an issue because Epiphany doesn't use the Mozilla engine any more. Keep the trolling to a minimum...
*** Bug 619820 has been marked as a duplicate of this bug. ***
(In reply to comment #129) > This is no longer an issue because Epiphany doesn't use the Mozilla engine any > more. Keep the trolling to a minimum... For those of you who have not tried the latest epiphany (such as 2.28.0), this problem as written is indeed no longer a problem, although not really because it was "fixed". Ctrl-T still brings up the Home page, rather than a blank tab. The focus is still in the Home page content area, not in the URL bar. The reason this is no longer a bug is because in epiphany now, the URL bar is always hidden unless/until you hit Ctrl-L to bring it up. Since the URL bar is hidden by default, it makes sense that the focus would no longer go there, and therefore having the focus in the page contents is the logical behavior. Although the tone of the "troll" was harsh, in his/her defense there was nothing in this thread that would indicate that newer versions of epiphany had actually resolved this problem. I have no idea when this new behavior was added to epiphany, but would assume (based on comments here) that it must have been between 9/09 and 2/10. A comment in this thread, by one of the developers, explaining why this bug is now really "resolved" would have been helpful. As for my original motivation in participating in this thread: Opening a new tab with an arbitrary URL still requires at least one extra action (either Ctrl-T, Ctrl-L, type URL *OR* Ctrl-L, type URL, Ctrl-Enter, Ctrl-PgDn). I couldn't find a bug reported for that concern, but since I am no longer an active epiphany user I didn't feel it was my place to create one.