Closed Bug 190646 Opened 22 years ago Closed 20 years ago

Double-click in URL Bar causes text to select, and it can't be unselected with the mouse

Categories

(SeaMonkey :: Location Bar, defect)

x86
Windows XP
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: rrankin, Assigned: hewitt)

References

Details

User-Agent:       Where did thought come from? Really makes you think, dosen\\'t it?
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021212

When you double-click on the address bar, the text is selected and cannot be
unselected with the mouse. You must use the arrow keys, type an new URL, or
press enter to reload the page.

Reproducible: Always

Steps to Reproduce:
1.Go to any page.
2.Double-click in the address bar.
3.Try to deselect using only the mouse.

Actual Results:  
Didn't work.

Expected Results:  
Should work.

This occurs sometimes while only single-clicking in the address bar
if the pref line user_pref("browser.urlbar.clickSelectsAll", false);
is missing or set to true. Including this line is a workaround, but
when you accidentally double-click, this bug still happens.
*** Bug 190901 has been marked as a duplicate of this bug. ***
I am having a similar problem in 1.3b.  If I go to the location bar and
double-click, the entire address is *NOT* highlighted, only the word closest to
the end of the address line.  This used to work in earlier versions and I
confirmed it against IE 5.5 to make sure that my IntelliMouse was not being dumb.
I concur - the behaviour has changed between 1.3a and 1.3b but is still not correct -
first click should select the complete URL
a further single-click should deselct and place the I-beam at the pointer position
a double-click should highlight the complete URL again
click and drag should highlight just that portion
It's standard behaviour for, for example, Windows Notepad and most GUI-editors.
To comment 2 and 3: That's not this bug. Not a bug at all actually:
See http://bugzilla.mozilla.org/show_bug.cgi?id=193080#c2

Reid Rankin:
Are you still unable do de-select text in the urlbar with recent builds?
I just installed 1.3 and noticed it has broken behaviour with respect to
double-clicking in the address bar. In prior versions, double clicking
highlighted the entire URL allowing one to easily type in a new URL. But in 1.3,
double-clicking does nothing but a focus the address bar. Even repeated double
clicks after that won't highlight the entire URL, just bits of it - the trailing
slash or the hostname but not the whole thing. There doesn't seem to be any way
short of manually dragging the mouse across the whole thing to highlight it. 
I agree.  I have done a clean install of the final 1.3 release and when I
attempt to double-click and address in the navigation bar, the entire contents
are NOT highlighted.
in Firebird 0.6.1-
behavior of URL bar seems to behave normally, except for bug 95942.
single click selects whole url, additional click after single click deselects
and puts cursor at pointer position.
subsequent double click selects a word, and triple click selects entire URL.

double click to select a word and triple click for entire line is normal text
editor behavior in my experience.  Is Mozilla *supposed* to select the entire
URL on double click?  I would think if you needed to select the whole URL you
could just click once.

My only beef is that a double click on a currenlty not-in-focus url should be
treated as 2 single clicks, putting the cursor wherever the pointer was instead
of selecting the word under the pointer.
As Douglas Adams would say, this must be some strange new usage of the word
"normal". ;-) 

Just as a test, I cut-n-pasted a URL from mozilla into a typical Windows text
editor (notepad). In the editor, if I double click the URL, it selects and
highlights the entire URL, not just some random bit of it. This is exactly the
behaviour I would expect in a text editor and exactly the behaviour I'd expect
in Mozilla.

However, in mozilla if I double click the URL, only a portion of the URL
directly under the mouse is highlighted. Repeated double-clicks also fail,
sometimes highlighting only individual slashes or nothing at all. I've found
that repeated double-clicking in the whitespace to the right of the URL will
sometimes allow the URL to be selected but the only sure way seems to using the
keyboard ctrl-A shortcut. After reading the previous post I tried "triple
clicking" and it does seem to work but this not any sort of normal GUI behavior
I've ever seen before. I don't think anyone would stumble onto the triple click
by accident. Is this some sort IE-equivalent behavior?
double click in a text editor will select the entire URL becasue it treats it as
a single word due to lack of spaces.  my argument is that Mozilla's current URL
selection behavior (other bugs aside) is a feature, not a bug, in so much as it
recognizes separate parts of a url.
worksforme with 1.7 beta. 
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Product: Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.