Ctrl-Backspace should stop_at_punctuation

Bug #50254 reported by Jay Camp
20
Affects Status Importance Assigned to Milestone
Mozilla Firefox
Fix Released
Wishlist
firefox (Ubuntu)
Won't Fix
Low
Mozilla Bugs

Bug Description

Binary package hint: mozilla-firefox

In a typical GTK widget with a URL, pressing Ctrl-Backspace will erase up to the previous "/". This does not operate as expected in Firefox. Pressing Ctrl-Backspace in the URL field erases the entire URL.

To fix this, layout.word_select.stop_at_punctuation should be set to true in the default configuration. Firefox is then consistent with the rest of the desktop.

Tags: mt-confirm
Revision history for this message
In , Gilead-j (gilead-j) wrote :

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030125
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030125

Too much text is selected in source preview window when clicked on a word in
parentheses.

Eg.:
clicking on 'func' in class="func" selects entire phrase instead of just 'func'
clicking on '0000ff' in color="#0000ff" selects entire phrase instead of just
'0000ff' or '#0000ff'

Reproducible: Always

Steps to Reproduce:
1. Open page preview window or any page with text in parentheses
2. Click on text in parentheses

Actual Results:
Entire phrase is selected.

Expected Results:
Only text in parentheses should be selected.

Revision history for this message
In , Joshbirnbaum-mozil (joshbirnbaum-mozil) wrote :

->selection

Revision history for this message
In , Gilead-j (gilead-j) wrote :

Similarly, double-clicking on 'max_size' in (int max_size); selects
'max_size);' instead of just 'max_size' so it's problem not only with parentheses.

Revision history for this message
In , Vdvo (vdvo) wrote :

Unless I'm mistaken, this is working as designed. There is a hidden pref called
"layout.word_select.stop_at_punctuation" that is false by default (only?) on
Unix, allegedly in order to be consistent with normal Unix behaviour. If you
want word selection to stop at punctuation, set the pref to true. However, there
is also bug 193025 about this not working when you set that pref in your user
profile's prefs.js, so you currently need to change the default in <moz inst
dir>/defaults/pref/unix.js.

Resolving INVALID.

Revision history for this message
In , Gilead-j (gilead-j) wrote :

I'm sorry but being an Unix user I can't see such behavior anywhere. Just
verified it in bash, xedit, gedit, joe and vim - all of them behave exactly as I
suggested Mozilla should. So I disagree that this bug report is invalid.

I believe the preference you specified should be changed for Unix.

Adding ability to edit this in preferences window could accompany this change
but I personally don't think it's necessary.

Regards,
Max

Revision history for this message
In , Vdvo (vdvo) wrote :

See bug 98546 comment 18 and bug 98546 comment 104. You'd have to get some
positive feedback from other unix users to persuade Akkana. You have mine, but
I'm not a "native" Unix user. ;-)

Clarifying summary (was: Double-clicking on a word in parentheses selects too
much text), and confirming.

Revision history for this message
In , Rparenton (rparenton) wrote :

Created attachment 138526
Patch to remove the overriding of the default stop_at_punctuation=true on Unix/Linux

This should do the trick. However, as Vaclav Dvorak stated in comment #5,
persuading Akkana that this is the normal behavior on Unix/Linux is the key to
getting this checked in.

Revision history for this message
In , Vdvo (vdvo) wrote :

Comment on attachment 138526
Patch to remove the overriding of the default stop_at_punctuation=true on Unix/Linux

How about trying it in 1.7a and revert it back if too many Unix users start
complaining?

Revision history for this message
In , Akkana Peck (akkzilla) wrote :

Comment on attachment 138526
Patch to remove the overriding of the default stop_at_punctuation=true on Unix/Linux

A straw poll on #mozilla (very small sample size) had about 70% of users being
against it (with varying degrees of vehemence) and the rest being neutral;
nobody was strongly for it.

I still stand by that bug 98546 comment 104: if you post to mozilla-unix and a
significant number of people speak up and say they want it, and/or (preferably
and) you special-case the urlbar (which probably means overriding a click
handler in browser.js or somewhere like that), I'll check it in. A couple of
people saying they want it isn't enough to change urlbar functionality to
require three clicks instead of two.

Revision history for this message
In , Malcolm-smith (malcolm-smith) wrote :

I don't understand bug 98546 comment 18 ("Unix browsers typically don't stop at
punctuation (makes life difficult in the urlbar)") - when changing from Galeon
1.3 to Firefox 0.8 I found this a significant regression.

Editing actions done in the URL bar are different to actions carried out in
normal textboxes. Specifically, the url bar never contains spaces, so breaking
only on spaces while processing the ctrl-left/right keys is useless. Instead,
ctrl-left/right should stop at the common url delimiter characters (bug 98546
comment 30), allowing swift editing of the URL with the keyboard rather than
fiddly pinpointing of the mouse or character-at-a-time positioning with
left/right keys.

Life would be much easier in the url bar if this was the case.

I'm talking here only about the ctrl-left/right word-at-a-time navigation keys.
What gets selected on a double-click seems to me to be a separate and less
important issue.

Furthermore, apparently due to Bug 193025, I can't easily check to see if
changing the hidden pref makes life more comfortable.

Revision history for this message
In , Malcolm-smith (malcolm-smith) wrote :

(In reply to comment #9)

> Furthermore, apparently due to Bug 193025, I can't easily check to see if
> changing the hidden pref makes life more comfortable.

In Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040207 Firefox/0.8 ,
changing the pref to true with the about:config interface causes the left/right
keys, ctrl or not, to not move the caret at ALL in the url bar.

Revision history for this message
In , Jlquinn-us (jlquinn-us) wrote :

Setting layout.word_select.stop_at_punctuation to true makes the URL bar behave
reasonably. *PLEASE* make this the default on Unix, or at least Linux. Having
it set false makes editing URLS nearly impossible. What purpose does that
setting serve?

With it set true, double clicking still grabs the whole URL, so that ability
isn't lost.

Revision history for this message
In , Akkana Peck (akkzilla) wrote :

> With it set true, double clicking still grabs the whole URL, so that ability
> isn't lost.

For me, when I set that pref, doubleclicking in the urlbar stops at punctuation.
(I tried it with my normal profile in 1.7 RC 1, and with my debug build, mostly
default, in a current tree.) I wonder what's different about our setups? Can
you try it with a new profile, see if it's different, and maybe track down the
difference? If we could solve the urlbar doubleclick problem, I'd be much less
worried about making this change. Any comments from other testers?

Revision history for this message
In , Jlquinn-us (jlquinn-us) wrote :

(In reply to comment #12)
> > With it set true, double clicking still grabs the whole URL, so that ability
> > isn't lost.
>
> For me, when I set that pref, doubleclicking in the urlbar stops at punctuation.

Sorry about that. I mean triple-clicking. I wasn't trying to say it's broken.
 Rather, that it's still possible to select the whole url with the pref set to
true. Trying to convince the powers that be to change this :-)

Revision history for this message
In , Jo-hermans (jo-hermans) wrote :

*** Bug 249656 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Jlquinn-us (jlquinn-us) wrote :

What's the current status on this bug? Any chance of getting in before firefox 1.0?

Revision history for this message
In , Neilparis (neilparis) wrote :

*** Bug 245708 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Jlquinn-us (jlquinn-us) wrote :

It's a year later. Any thoughts on this?

Revision history for this message
In , 3-craig-7 (3-craig-7) wrote :
Download full text (3.4 KiB)

Can we please see some action on this? After discovering the workaround to this
problem (which has niggled me for well over five years on mozilla and earlier
incarnations of netscape), I sent out a notes to other software developers I
know who are based on linux and have had several responses back of the form
"Man, that has been bothering me for ages as well. Thanks heaps for that little
gem."

The justification given for the current functionality is that it should be
"consistent with normal Unix behaviour". I'd be surprised to learn if there was
any consistent standard for anything to do with graphic user interfaces between
unix environments. Further, my experience is that this is incorrect anyway.
Certainly my builds of gnome-terminal and xterm don't work like this. It's
certainly very un-unix-like to cripple keyboard functionality so that you have
to use the mouse for something.

Further, regardless of what the truth of this situation is or isn't, I'd suggest
that it's up to projects with huge userbases like mozilla to set the pace
through good design rather than to reimplement poor functionality just because
that's how other programs have done it in the past.

The current default is poor for people with keyboard-centric usage. People who
want to edit their URL bar without using the mouse currently have the following
experience:
(1) Press ctrl+L
-> URL bar highlights
(2) Press right
-> caret moves to end of the line
(3) Hold down backspace or shift+arrow for several seconds to highlight the bit
you want to highlight and then hope you let go at the right time.

When you tweak layout.word_select.stop_at_punctuation or use firefox in its
default configuration on mac or Windows, the behaviour is like this:
(1) Press ctrl+L
-> URL bar highlights
(2) Press right
-> caret moves to end of the line
(3) Press shift+ctrl+left to highlight the words you want to change
-> this is much quicker and more precise.

If you try this second process under the linux build of firefox, it highlights
back to the start of the line - an effect that can already be achieved with
ctrl+shift+home (or with the initial ctrl+l to highlight the location bar).

This is an annoying obstacle for users who use firefox to browse API docs all
day every day. They know what the class names are and want to be able to adjust
a path ending with /java/util/List.html to /java/lang/regex/Pattern.html, and
they don't want to have to lean on arrow keys every time they want to do it, or
reach across for the mouse and then play with the URL using that imprecise pointer.

The current default configuration is deficient. There are many users out there
who are annoyed by this and aren't aware that it can be fixed through
configuration. This in turn gives unix-on-the desktop a bad name because firefox
for Windows is perceived to be a better product than firefox for unix.

It may be that there needs to be a separate configuration set up for the URL bar
than from the rest of the application. My personal preference is for mouse
clicks to highlight words - you can always hold down the second click and then
drag the mosue to finish off the highlight and I've gotten used to that through
use of firefox...

Read more...

Revision history for this message
In , Uriber (uriber) wrote :

*** Bug 302277 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Elmar-ludwig (elmar-ludwig) wrote :

*** Bug 313723 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Jens Bannmann (bannmann) wrote :

*** Bug 176354 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Elmar-ludwig (elmar-ludwig) wrote :

*** Bug 315112 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Reed Loden (reed) wrote :

*** Bug 257922 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Elmar-ludwig (elmar-ludwig) wrote :

*** Bug 334630 has been marked as a duplicate of this bug. ***

Revision history for this message
Vassilis Pandis (pandisv) wrote :

This is minor, but I would like to see it as a defalut as well.

Changed in firefox:
status: Unconfirmed → Confirmed
Revision history for this message
Daniel Musketa (daniel-musketa) wrote :

Yes, that would be nice.

Revision history for this message
In , Uriber (uriber) wrote :

*** Bug 354721 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Alan Tam (at) wrote :

Created attachment 240604
(again) Patch to remove the overriding of the default stop_at_punctuation=true on Unix/Linux

Contrary to what comment #3 says, a lot of people do not think this as sane behavior, specifically comment #4, comment #7, comment #11 and the bulk of dupes. Comment #18 even states valid use cases demonstrating the meaningfulness for fixing this bug.

As a conclusion, unix users (at least the current generation) thinks that the current (deliberately chosen) behavior in unix is insane. I am now submitting the same patch for review again.

Revision history for this message
In , Uriber (uriber) wrote :

*** Bug 354858 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Simon-hetzer (simon-hetzer) wrote :

Instead of changing the default behaviour - which is as expected by traditional *nix users - a better approach might be to make the hidden preference more accessible and to raise awareness that this behaviour of Firefox can be changed.
This might also have a better chance of getting integrated, avoiding the discussion about the proper default.
The complaints are probably all from recent Windows converts.

For the record, I'm against having s_a_p default to true.

Revision history for this message
In , aconbere (aconbere) wrote :

from #28 "The complaints are probably all from recent Windows converts."

I think it's presumptious to assume that:

a) the people requesting this change for linux builds are recent windows converts. In fact I can only imagine that this comment was made to do two things. First was to diminish the agency of those who are actually recent windows converts and view this as a reasonable request. And second to create a false hierarchy, those who have been using *nix for x amount of time, and those who haven't and the presumption that anyone greater than X has more say, and thus a bigger vote.

b) that long time *nix users don't also consider this a reasonable request. (speaking from the point of view of someone who has been using the *nixes for quite some time an can say that certainly it's not only recent windows converts). Infact clearly the developers of such popular desktop environments as GTK and QT have decided on one, and the fact that firefox doesn't conform to the standards of these desktop environments is not only inconsistent, but to most people who use these systems it seems broken.

--
Thus far the developers have done a good job of moving more and more to closer consistency with the desktop top environment being used, this has been a stated goal of at the very least the widgeting system and the theme. The developers seem quite aware that consistency on a desktop are one of the more important usability rules, and I would hope that they can recognize that simply by try it out on a few applications native to those environments this behaviour isn't consistent.

Simply because Unix used to do it one way, the current environment does it another, and while I understand that there needs to be some stability to prevent a project from flipping back and forth and changing in the wind. I don't see this changing any time soon.

Revision history for this message
In , Jens Bannmann (bannmann) wrote :

(In reply to comment #28)
> Instead of changing the default behaviour - which is as expected by traditional
> *nix users - a better approach might be to make the hidden preference more
> accessible and to raise awareness that this behaviour of Firefox can be
> changed.

I don't think so. Firefox's core UI philosophy was always that it should work as-is and not offer thousands of options in its preferences dialog. If we started to offer UI for prefs like this, the end result will look like SeaMonkey's prefs dialog, and that would be a step backwards (no offense meant). I think we can all agree that Firefox's simplicity is one of the main reasons for its success among non-geek users, and we should preserve it. (I do realize this is a core bug and not a Firefox bug, but I think even for SeaMonkey this pref is too fine-grained to be added to the UI.)

> The complaints are probably all from recent Windows converts.

While I _am_ a "Windows convert", I do not see why this fact makes my opinion any less important. Besides, in contrast to what you imply here, the suggested behaviour (stop at punctuation) is not standard behaviour among Windows applications - I've encountered several applications that have it wrong.

For the record, I'm in favor of changing the pref to true.

Revision history for this message
In , Flávio Etrusco (etrusco) wrote :

I thought one the biggest "selling-points" of a multi-platform browser was user interface consistency (a safe harbor to the user) across the different OSes and/or graphical systems?
GTK2 default (in Ubuntu at least) is to stop in punctuation for either double-click or ctrl+arrow. KDE/Qt default is to stop for ctrl+arrows but not for double-clicks. In Firefox both behaviors are controlled by a single preference, so I'd say the 'stop_at_punctuation=true' is the only option? Or is Firefox meant to mimic arena or motif and look like 20-year-old software?

BTW, "traditional *nix users" should be using Lynx instead! :-P

(I apologize for repeating the same old points again, but the fact that this issue is still unfixed shows that people either didn't like the way we've put it or that they didn't read the arguments at all...)

Revision history for this message
In , 3-craig-7 (3-craig-7) wrote :

> Instead of changing the default behaviour - which is as expected by
> traditional *nix users.. [...] The complaints are probably all from
> recent Windows converts.

I've been using unix seriously for ten years, full-time on the desktop for five. I remember being specifically annoyed by broken behaviour for ctrl+arrow keys in the URL bar when I first started using Netscape Navigator on Linux at home in the mid-nineties and this lack of functionality continued to regularly frustrate me until I discovered the hack to change stop_at_punctuation in mid 2005.

The idea that this is a change needed for new people is incorrect. The current default behaviour has always been deficient for usage which prefers the keyboard over the mouse. I presented a use case to demonstrate this in an earlier post.

The default configuration of firefox should support word jumping in the URL bar via use of ctrl+arrow keys.

I believe Mac used to have stop_at_punctuation=false style navigation. I remember struggling with the near-broken mouses on OS 7 or 8 terminals at uni running Navigator 3. But a recent build of firefox for Mac on my laptop supports word jumping in the URL-bar via alt+arrow.

Revision history for this message
In , Jerry Quinn (jlquinn) wrote :

(In reply to comment #28)
> Instead of changing the default behaviour - which is as expected by traditional
> *nix users

No, this is incorrect. I and many other *nix users find the current default irritating at best.

- a better approach might be to make the hidden preference more
> accessible and to raise awareness that this behaviour of Firefox can be
> changed.

This would be OK, as well, but I think if you added the option and tracked how many people changed so you can navigate within the URL, you'd find a lot of people changing it.

> This might also have a better chance of getting integrated, avoiding the
> discussion about the proper default.

Documentation of all the various changeable parameters would be another big step in making this easier to deal with.

> The complaints are probably all from recent Windows converts.

Far from it. I've been a Unix user since 1987 and the current default really makes no sense from a Unix perspective either, as well as being annoying and useless. What's the point in having keyboard navigation not work within a URL?

Revision history for this message
In , aconbere (aconbere) wrote :

*** Bug 360601 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Uriber (uriber) wrote :

*** Bug 362467 has been marked as a duplicate of this bug. ***

Revision history for this message
In , martin (mbvlist) wrote :

Please change the default. Yes, I changed to linux recently. But it doesn't make sense to have the same (in my opinion) browser work in a different way on the other platform. If I want Gnome-consistency I could use Epiphany. Instead I wanted to use the browser I liked on Windows (ok, I also needed some extentions ;)).
To make the situation even stranger: Internet Explorer selects the entire URL on a double-click, which is different from Firefox. It is one of the more important differences, because it is better usable. Just like tabbed browsing is an improvement, and the find-bar at the bottom side, this is one of those edges over IE. And now on linux I'm stuck with this IE-nonsense again? Give me a break!

Platform-consistency is nice for the default hotkeys and such, but can you please show me what specification shows that a browser URL-bar shouldn't respond to crtl+left/right?

Revision history for this message
Peter de Kraker (peterdekraker) wrote :

I'm sooooo irritated because of this bug. It drives me nut.
PLEASE change this, it is a very minor thing, but it's something that is very irritating in daily use.

Revision history for this message
In , Nicholas Miell (nmiell-deactivatedaccount) wrote :

This needs to be changed. Current behavior (stop_at_punctuation=false) does not match GTK2's behavior and Firefox is theoretically a GTK2 application.

(I was shocked to discover that Windows Firefox gets this right in the urlbar, I always assumed that nobody had ever implemented it. Discovering that Firefox is once-again broken on Linux and correct on Windows is irritating.)

Revision history for this message
In , Alan Tam (at) wrote :

Given the amount of positive responses recently, let's try to request for blocking Firefox 3.0. While a patch is available for review already, we are simply waiting for mozilla developers to agree with our view and get it checked in.

Revision history for this message
In , Matthew Flaschen (matthew-flaschen) wrote :

I can verify that Konqueror on KDE GNU/Linux also supports the "true" behavior, so I'm really doubting there is some powerful UNIX standard against it.

David Farning (dfarning)
Changed in firefox:
assignee: nobody → mozillateam
importance: Undecided → Low
Revision history for this message
In , Roc-ocallahan (roc-ocallahan) wrote :

Not blocking 1.9, but we probably should do this.

Revision history for this message
In , martin (mbvlist) wrote :

@ #40:
WTF is so difficult about changing a default value in about:config to true for some platform? It's not like anything will break because of that, and (if the code makes any sense at all) it should be only one line changed.

Can I make this a blocking1.9+ or so? Damn you fools! 38 replies stating that the 1 line of code SHOULD be changed ASAP and it isn't included in the next release? Do some research, it is on all the fora!

Revision history for this message
In , Roc-ocallahan (roc-ocallahan) wrote :

Don't re-request without new information please.

Revision history for this message
In , L. David Baron (dbaron) wrote :

I'd be quite happy to take a fix for this that didn't regress double-clicking in the URL bar. That said, the patch above doesn't apply anymore -- the file it's patching no longer exists -- the code in question is now in an ifdef-ed all.js.

Note that on other platforms, there's a browser.urlbar.clickSelectsAll pref -- which we don't want on Unix because it forces a copy to the clipboard. It seems like the easy solution would be to make a very similar pref for doubleClickSelectsAll (or maybe even change the existing pref from boolean to integer).

For what it's worth, in Konqueror, there seem to be three different selection modes:
 * in the URL bar, double-clicking always selects the whole thing
 * in the search bar and HTML text inputs, double clicking does select punctuation
 * in HTML content, double-clicking does not select punctuation
but Ctrl-Arrow movement always goes by non-punctuation words. I don't think we need that many modes, but I do think we need to avoid regressing double-click to select contents of entire URL bar.

Revision history for this message
In , Nicholas Miell (nmiell-deactivatedaccount) wrote :

(In reply to comment #43)
> Note that on other platforms, there's a browser.urlbar.clickSelectsAll pref --
> which we don't want on Unix because it forces a copy to the clipboard. It
> seems like the easy solution would be to make a very similar pref for
> doubleClickSelectsAll (or maybe even change the existing pref from boolean to
> integer).

That's not how the X clipboard works. Selecting something (i.e. the usual highlighting motion) sticks the selected text in PRIMARY, the Copy menu item (or whatever the equivalent is in the app) puts the selected text on the CLIPBOARD. (See http://www.jwz.org/doc/x-cut-and-paste.html for the definitive explanation, feel free to ignore the Emacs section.)

Mozilla/Firefox have done this wrong in the past, but my quick experimentation in Firefox 2.0.0.1 suggests that it's doing things right at the moment.

(Also, thanks for telling us about browser.urlbar.clickSelectsAll -- now we can manually unbreak that too.)

Revision history for this message
In , Akkana Peck (akkzilla) wrote :

I presume dbaron knows the PRIMARY vs CLIPBOARD issue, and when he said that Unix users don't want single click to copy to the clipboard, he meant the nsClipboard (the general concept of being selected), not the X CLIPBOARD. Changing the PRIMARY selection every time you click in the urlbar would be awful (not that that's the only reason to dislike clickSelectsAll).

As dbaron said, if someone offered a patch that turned on stop_at_punctuation without regressing urlbar doubleclick, I bet everyone would be all for it. (I know I would.) I'm not even sure we'd need a new pref for that -- or do the stop_at_punctuation fans want that setting even when doubleclicking in the urlbar?

Revision history for this message
In , martin (mbvlist) wrote :

I would. Just like in windows: Double-click selects the word, triple-click selects the entire line. And as a former Windows user I rarely use the x-clipboard function, partially because it is gone when accidentally selecting something else.

Revision history for this message
In , Jerry Quinn (jlquinn) wrote :

(In reply to comment #45)
> As dbaron said, if someone offered a patch that turned on stop_at_punctuation
> without regressing urlbar doubleclick, I bet everyone would be all for it. (I
> know I would.) I'm not even sure we'd need a new pref for that -- or do the
> stop_at_punctuation fans want that setting even when doubleclicking in the
> urlbar?

I can't think of any scenario where having stop_at_punctuation behavior disabled is desirable. It's highly counterintuitive to the way that other text UI's work on all platforms.

I'd also want url doubleclick disabled by default (to me doubleclick selecting word-like units is more consistent with other text selection interfaces), but obviously there should be a pref for this one.

Revision history for this message
In , Uriber (uriber) wrote :

*** Bug 369629 has been marked as a duplicate of this bug. ***

David Farning (dfarning)
Changed in firefox:
assignee: mozillateam → mozilla-bugs
Revision history for this message
In , Bclary (bclary) wrote :

*** Bug 374394 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Uriber (uriber) wrote :

*** Bug 378988 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Uriber (uriber) wrote :

*** Bug 381972 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Flávio Etrusco (etrusco) wrote :

Don't you people think it would be "clever" to change the summary to something more descriptive of the perceived problem instead of/additionally to the cause, so we can hope that this endless flow of "bug XXX has been marked as duplicate" will end?
TBH, from the discussion it's clear that the summary and issue originally reported isn't even the whole story...

Revision history for this message
In , Asrail (asrail) wrote :

Reverting the summary, as Dao nitpicked on personal mail.

The summary of issues derived from the stop_at_pontuation being set to false is:
 - control+arrow should move cursor delete a word
 - double click should select a word

The other are derivate from these two facts.

Revision history for this message
In , Flávio Etrusco (etrusco) wrote :

Ok, now I'm pissed. Who THE FUCK is Dao and why does he/she think that this shouldn't be part of the bug entry comments/discussion?
And where's the _unresolved_ BUG (this is not an enhancement) entry for the first problem?

Revision history for this message
In , Asrail (asrail) wrote :

1 - Be polite
2 - He is a guy
3 - Because it makes harder to read/understand the summary and the people would find the duplicates anyway
4 - It is something that works the way it should work, i.e., this is not an issue. The non-wanted behavior is due to the preference being set false by default on Linux (while it's true on Windows, for instance).

Revision history for this message
In , Flávio Etrusco (etrusco) wrote :

1) I usually try very hard to be polite. Problem is "the Mozilla team" is one of the less transparent and less responsive in the open source community. I just HATE secrecy. And the status quo.
2) Thanks.
3) Moot. If you really think like this why did you change it in the first place?
4) Just wrong.

And then, yes, I love Linus Torvalds' "diplomacy". Unfortunately I'm not as respected or known as him =P
TBH I'm asking to be flamed into oblivion so I can just forget about Mozilla as an open source project and stop being laughed at when why try to paint it as an open project (which has a community).
And I couldn't help being impolite again, but... why don't you stand by your POV and worst yet take the heat that was never meant to you? (I hope it's clear that my "ire" was not ever directed at you, if it seemed otherwise, please accept my apologies.)

Revision history for this message
In , Dao (dao) wrote :

I'll post a patch once the urlbar binding from bug 366797 is in the tree.

Revision history for this message
Francesco (francesco-monte) wrote :

Hi, as my ctrl+backspace doesn't work, this bug is still open..

What is blocking it?

Revision history for this message
Francesco (francesco-monte) wrote :

little "patch" for /etc/firefox/pref/firefox.js (which is in firefox-2.0.0.4+2/debian/firefox.js)
please, land it!

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 50254] Re: Ctrl-Backspace does not work as expected

On Sat, Jun 02, 2007 at 08:29:49AM -0000, Francesco wrote:
> little "patch" for /etc/firefox/pref/firefox.js (which is in firefox-2.0.0.4+2/debian/firefox.js)
> please, land it!
>
> ** Attachment added: "patch-firefox-control-backspace"
> http://launchpadlibrarian.net/7924747/patch-firefox-control-backspace
>

What has this patch to do with bug title? If its about a different
issue, please open a new bug.

Thanks,

 - Alexander

Revision history for this message
Francesco (francesco-monte) wrote : Re: Ctrl-Backspace does not work as expected

sorry? this patch allows you to delete the string in the url bar piece by piece

it's not another issue!

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 50254] Re: Ctrl-Backspace does not work as expected

On Sat, Jun 02, 2007 at 09:02:40PM -0000, Francesco wrote:
> sorry? this patch allows you to delete the string in the url bar piece
> by piece
>
> it's not another issue!
>

Sorry, I mixed this up with a bug that is about backspace not going to
previous page in history.

Thanks,

 - Alexander

description: updated
Revision history for this message
Alexander Sack (asac) wrote :

What is default behaviour on KDE?

Revision history for this message
Francesco (francesco-monte) wrote :

On KDE, ctrl+backspace delete word by word (tested on konqueror).
And in Windows, the official build "firefox2 setup.exe" comes with layout.word_select.stop_at_punctuation=true

Revision history for this message
Francesco (francesco-monte) wrote :

is there any probability to have this fixed, at least, in gutsy?

Francesco

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 50254] Re: Ctrl-Backspace should stop_at_punctuation

On Wed, Jun 06, 2007 at 07:23:08PM -0000, Francesco wrote:
> is there any probability to have this fixed, at least, in gutsy?

As its not actually a bug I cannot give a committment to do it atm.
Probably this should be discussed upstream to establish a general
consense.

 - Alexander

Revision history for this message
Jay Camp (jayc) wrote :

This has been opened for *four* years in Mozilla which is ridiculous. I only discovered this problem a year ago and inquired about it and they were very flippant about the whole thing. I was told "this is how Unix works." This is a usability bug. There has been a fix for it the entire time which is to change a one-line setting.

I've linked the upstream Mozilla bug.

Revision history for this message
Francesco (francesco-monte) wrote :

i agree with you.

btw, the firefox used in ubuntu is already patched -- firefox_2.0.0.4+2-0ubuntu1.diff.gz (171.5 KiB)
so, who cares if we resolve a mozilla related issue in "our home" ?

fixing it is not only a way to show that "ubuntu rocks", and "mozilla sucks" (which is true, but we don't care it)
fixing it would create a real *pragmatic community* , not lost in bureaucracy made by people that say "won't fix, in unix every application doesn't do it, so we don't need it"

Changed in firefox:
status: Unknown → In Progress
Changed in firefox:
status: Confirmed → In Progress
Revision history for this message
In , Dao (dao) wrote :

Created attachment 270107
patch v1

So the urlbar binding has landed ... not sure if it will backed out again though. However, for the moment here's a patch.

Revision history for this message
In , Dao (dao) wrote :

Created attachment 272151
simplified patch, updated to current trunk

Revision history for this message
In , L. David Baron (dbaron) wrote :

Renominating for blocking given that the new text frame busted URL bar selection.

Revision history for this message
In , Mano-mozilla (mano-mozilla) wrote :

So this is already the default on mac (in Fx2 too), why should the url-bar behave differently on unix?

Revision history for this message
In , Dao (dao) wrote :

Mano: Because Linux users are used to select the URL with a double click. I think it was reached consensus over this in this bug: stop_at_punctation=true is wanted, but without making selecting all harder (three clicks), and without setting clickSelectsAll to true.

Revision history for this message
In , Mano-mozilla (mano-mozilla) wrote :

Ok, Ugh, so:
 1. Any reason you're not using an <handler> here (likely with phase="capturing")?
 2. I think this deserves a preference.

Revision history for this message
In , Mano-mozilla (mano-mozilla) wrote :

 3. you should probably override this for SM unless you're fixing their bindings too.

Revision history for this message
In , Dao (dao) wrote :

Created attachment 272561
patch v2

Revision history for this message
In , Mano-mozilla (mano-mozilla) wrote :

Er, this behavior isn't desired on mac AFAICT.

Revision history for this message
In , Dao (dao) wrote :

Created attachment 272565
patch v2.1

right

Revision history for this message
In , Mano-mozilla (mano-mozilla) wrote :

What's the use case for doubleClickSelectsAll in textbox.xml? You could do this for the urlbar without extending the binding afaict.

Revision history for this message
In , Dao (dao) wrote :

If both #textbox and #urlbar define <handler event="mousedown">, the one defined in #textbox would be of no effect, right? That means that the code from the original #textbox handler would have to be duplicated, if you want me to use <handler>.

Revision history for this message
In , Mano-mozilla (mano-mozilla) wrote :

ok, sorry that I didn't catch that earlier :(, the addEventListener is better than moving this to textbox.xml (preferably with a nsIDOMEventListener implementation on the binding, but simple functions like you had in the first patch would work too).

Again, sorry for the extra-work.

Revision history for this message
In , Dao (dao) wrote :

Created attachment 273341
patch v3

Revision history for this message
In , Mano-mozilla (mano-mozilla) wrote :

Comment on attachment 273341
patch v3

r=mano

Revision history for this message
In , Mano-mozilla (mano-mozilla) wrote :

you need moa on the xpfe/ change.

Revision history for this message
In , Dao (dao) wrote :

Comment on attachment 273341
patch v3

<NeilAway> dao: so, in other words nothing changes for us... I can't argue with that :-)

Revision history for this message
In , Jruderman (jruderman) wrote :

*** Bug 389516 has been marked as a duplicate of this bug. ***

Revision history for this message
In , L. David Baron (dbaron) wrote :

Minusing my own blocking request in favor of bug 389421. (Not to say this shouldn't go in, just that it's not blocking.)

Revision history for this message
In , Dao (dao) wrote :

Would be nice if someone could check this in before the diff becomes completely useless. Please let me know if it's already too much out of sync.

I assume approval isn't needed here.

Revision history for this message
In , Mozilla (mozilla) wrote :

Comment on attachment 273341
patch v3

seems we need approval1.9 to get that in at this stage?

Revision history for this message
In , L. David Baron (dbaron) wrote :

Comment on attachment 273341
patch v3

Not needed for front-end.

Revision history for this message
In , Mozilla (mozilla) wrote :

Checked in. Please watch out for regressions.

Checking in browser/app/profile/firefox.js;
/cvsroot/mozilla/browser/app/profile/firefox.js,v <-- firefox.js
new revision: 1.192; previous revision: 1.191
done
Checking in browser/base/content/urlbarBindings.xml;
/cvsroot/mozilla/browser/base/content/urlbarBindings.xml,v <-- urlbarBindings.xml
new revision: 1.16; previous revision: 1.15
done
Checking in modules/libpref/src/init/all.js;
/cvsroot/mozilla/modules/libpref/src/init/all.js,v <-- all.js
new revision: 3.685; previous revision: 3.684
done
Checking in suite/browser/browser-prefs.js;
/cvsroot/mozilla/suite/browser/browser-prefs.js,v <-- browser-prefs.js
new revision: 1.65; previous revision: 1.64
done

Revision history for this message
In , Dao (dao) wrote :

thanks

Revision history for this message
In , Dao (dao) wrote :

*** Bug 348787 has been marked as a duplicate of this bug. ***

Changed in firefox:
status: In Progress → Fix Released
Revision history for this message
In , Francesco (francesco-monte) wrote :

wow, just 4 years and half

if is helpful, microsoft used 6 years to relase IE 7

Revision history for this message
Cameron Braid (cameron-braid) wrote :

Making this change doesn't have a negative impact on users who don't try to use this feature. However, for people that expect to use Ctrl-Backspace, or Ctrl-Left or Ctrl-Right to jump words in the address bar should be able to.

I agree that this default should be changed in gutsy, independent of discussion upstream.

Revision history for this message
In , Jruderman (jruderman) wrote :

*** Bug 404356 has been marked as a duplicate of this bug. ***

Revision history for this message
In , martin (mbvlist) wrote :

All right, so this is supposed to be fixed. I've moved to Firefox 3 beta (3.0b3pre, a build by Swiftfox) on Ubuntu 7.04. Love the browser, love the new bookmarks, but HATE the preferences.

doubleclickSelectsAll is true, which I thought was fought out to be wrong? Or am I reading the discussion in the wrong way?
Changed that setting to false, so now I have the behaviour I (and many of the comments above) want: singleclick places the cursor, doubleclick selects a word, and tripleclick selects the entire line (like everywhere in every other GTK2 application I know). What is so hard about changing a default?

Revision history for this message
In , Jo-hermans (jo-hermans) wrote :

*** Bug 410475 has been marked as a duplicate of this bug. ***

Revision history for this message
Jeff Abbott (fdivbug) wrote :

I agree that this change should be the default on Ubuntu. As someone who uses multiple platforms this is quite irritating, and I'm glad to have at least found a solution I can use on my own thanks to this Launchpad entry. For what it's worth, this preference is set to true in both Windows and Mac OS X Firefox builds (except, of course, in Mac OS X the key sequence is option+delete instead of ctrl+backspace).

I don't know if we should be considering consistency with other Unix applications and platforms -- which seems to be Mozilla's point of view, and rightly so for them -- so much as consistency with other Ubuntu apps and other platforms with which many of us work on a daily basis. "Muscle memory" accounts for a lot of my productivity, and I'd imagine I'm not alone in this.

Revision history for this message
Alexander Sack (asac) wrote :

On Fri, Jan 04, 2008 at 04:12:46PM -0000, Jeff Abbott wrote:
> I agree that this change should be the default on Ubuntu. As someone
> who uses multiple platforms this is quite irritating, and I'm glad to
> have at least found a solution I can use on my own thanks to this
> Launchpad entry. For what it's worth, this preference is set to true in
> both Windows and Mac OS X Firefox builds (except, of course, in Mac OS X
> the key sequence is option+delete instead of ctrl+backspace).
>
> I don't know if we should be considering consistency with other Unix
> applications and platforms -- which seems to be Mozilla's point of view,
> and rightly so for them -- so much as consistency with other Ubuntu apps
> and other platforms with which many of us work on a daily basis.
> "Muscle memory" accounts for a lot of my productivity, and I'd imagine
> I'm not alone in this.
>

in the long run we will always stick to the behaviour that mozilla.org
chooses. this one is not an exception

 affects ubuntu/firefox
 status wontfix

 - Alexander

Changed in firefox:
status: In Progress → Won't Fix
Revision history for this message
Jeff Abbott (fdivbug) wrote :

Thanks, at least, for the explanation, Alexander.

Revision history for this message
In , Bugmail-a (bugmail-a) wrote :

One remaining issue for this—on Mac, at least—is that the underscore should not be considered punctuation. This is discussed in bug 393227 which depends on bug 190615.

Revision history for this message
In , Bugmail-a (bugmail-a) wrote :

Er, make that, “depends on bug 196175.”

Changed in firefox:
importance: Unknown → Wishlist
Revision history for this message
In , Dan-256 (dan-256) wrote :

Not to reopen a long dead, thread, but...ok, that's what I want to do.

It seems that this is broken on unix again. Double clicking selects the whole URL. The default for:

browser.urlbar.doubleClickSelectsAll

on Unix, is true. This means that double clicking doesn't stop at punctuation, because it doesn't stop at all, it just selects the whole URL. So was this whole bug for nothing?

According to this wiki:

http://kb.mozillazine.org/Browser.urlbar.doubleClickSelectsAll

The behavior was changed to restore "double click selects all" on Unix. But then, how can one double click to select a word? In windows, the default is different, meaning that double clicking to select a word works.

The wiki states that it required "triple clicking" to select the URL. In windows, single clicking selects the URL. Should the same default be considered for Unix? Even if not, though, there should be a way to select individual words in the URL.

Again, what was the point of having the "stops on punctuation" setting if not to enable selection of "words"?

Revision history for this message
In , Soshial-reg (soshial-reg) wrote :

I confirm Dan's words that it is still not default for firefox 10.0.2 on opensuse 11.2 64bit.

Revision history for this message
In , Cratuki (cratuki) wrote :

Seen on Ubuntu 11.

There's a difference to previous behaviour. Selecting the URL bar with the keyboard (ctrl+L) allows the user to navigate around that bar stopping at punctuation (ctrl+left, ctrl+right). But a double mouse-click highlights the whole URL rather than words with in.

Triple-click-to-highlight must be annoying the hell out of someone for them to change it back after this time.

Double-click being a unix standard remains a weak argument. Chrome for linux uses double-click to highlight word, triple-click to highlight all. i.e. the same behaviour as in firefox on osx and win32.

Revision history for this message
In , martin (mbvlist) wrote :

Apparently nobody that has rights can be bothered to fix this, or even reopen the bug (RESOLVED FIXED no longer matches the status).

Revision history for this message
In , Bzbarsky (bzbarsky) wrote :

This bug is about general selection behavior. Comment 89 and following is about urlbar selection, which explicitly overrides the default selection behavior. So they have nothing to do with this bug, which is in fact RESOLVED FIXED. You can test it by double-clicking "foo" in this text:

  This.is.foo.stuff

and seeing whether it's just "foo" that's selected or the whole string.

Revision history for this message
In , Jm-leddy-x (jm-leddy-x) wrote :

This somehow just bit me as well. I actually want the default unix behavior that requires a tripple click to select the entire address bar. Somehow doubleClickSelectsAll got turned on for me, in Ubuntu 12.04. I think that it's stupid to default this to true in Unix, even if changed behavior when this bug was originally RESOLVED FIXED close to a decade ago.

http://kb.mozillazine.org/Browser.urlbar.doubleClickSelectsAll

On Linux, I have the default of both singleClickSelectsAll and doubleClickSelectsAll to false to closely match the behavior of other apps. I've been using Firefox since it's inception and as far as I can remember this has always been the behavior.

Is there another bug to request that Linux default to both being false, despite the expectation on other OSes?

Revision history for this message
In , Jm-leddy-x (jm-leddy-x) wrote :

BTW I'm relatively confident that windows by default double click selects the whole text, since I'm frequently frustrated by expecting Linux behavior and getting something else. I'm not sure what the default of IE, chrome, Firefox etc is in the urlbar but I don't think it should really matter, because linux (unix?) users have a different expectation.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.