Closed
Bug 96446
Opened 23 years ago
Closed 22 years ago
Right-clicking location bar selects entire URL even if location bar already has focus
Categories
(SeaMonkey :: Location Bar, defect, P3)
SeaMonkey
Location Bar
Tracking
(Not tracked)
VERIFIED
FIXED
Future
People
(Reporter: theheards, Assigned: aaronlev)
References
Details
(Keywords: platform-parity, polish)
Attachments
(1 file)
1.02 KB,
patch
|
deanis74
:
review+
bzbarsky
:
superreview+
roc
:
approval+
|
Details | Diff | Splinter Review |
I'm using mozilla version 2001082203 in Windows 98, and when I tried to right click to paste some text onto the current location, it selected the whole location text, which isn't what I wanted. Steps: 1. Click on the status bar, so that nothing is selected (or alternatively, so that less than the whole location is selected). 2. Right click on the location bar to copy or paste something. Expected: The context menu comes up without changing the selection. Actual: The entire location is selected, then the context menu appears. I couldn't find this bug reported yet, so I hope this isn't a dupe. Not sure which component this would be...
please try to pick components for bugs.
Assignee: asa → alecf
Component: Browser-General → URL Bar
QA Contact: doronr → claudius
Comment 2•23 years ago
|
||
confirming. I see this on Win98 2001090408 Steps to reproduce: click in URL bar and select something. right click on selection (to copy/paste whatever) menu pops up and all text in bar is highlighted.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 4•23 years ago
|
||
See also bug 78083, [clickSelectsAll] right-click on *unfocused* url bar should select contents.
Comment 7•23 years ago
|
||
*** Bug 103858 has been marked as a duplicate of this bug. ***
Updated•23 years ago
|
Severity: normal → major
Comment 8•23 years ago
|
||
Same result with using 'context menu key' instead of right-clicking.
Comment 9•23 years ago
|
||
Joe was dying to have these bugs. Who am I to say no?
Assignee: blakeross → hewitt
Comment 10•23 years ago
|
||
*** Bug 100001 has been marked as a duplicate of this bug. ***
Comment 11•23 years ago
|
||
When the URL Bar becomes focused (via a mouse click from any button), it selects itself. I am not really sure this is a bug, as I don't see a strong case for making an exception for right-clicking. If I were to fix this, someone could just as easily file a bug complaining that they intended to right-click the urlbar and have it select the text so they could copy it.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WONTFIX
Comment 12•23 years ago
|
||
Hi I'm a voter for this bug and I wanted to give my 5 cents... Behaviour i expect: When I rightlick on the location bar when it was NOT selected, then it should select all text in it for copypasting it out from there (netscape 4 behaviour aswell), but when the cursor already IS in the location bar, a rightclick should just popup the context menu which I often use for example for pasting parts into the location bar when I'm too lazy to grab the keyboard... So, selecting the text is okay, but NOT when the cursor already was in there since this prevents pasting using the context menu effectively..... Thanks for listening Matt
Comment 13•23 years ago
|
||
Thanks for pointing that out, Matt, I wasn't aware it selected everything even when the focus was already there. Reopening...
Severity: major → normal
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Target Milestone: --- → mozilla1.0
Comment 14•23 years ago
|
||
*** Bug 107740 has been marked as a duplicate of this bug. ***
Comment 15•23 years ago
|
||
This is definitely a usability issue and quite annoying if you're trying to mouse around without touching the keyboard. Is it possible to leave the selection alone for right mouse button clicks? i.e. test the event from the handler and don't select if its not a left mouse button click.
Updated•23 years ago
|
Status: REOPENED → ASSIGNED
Priority: -- → P3
Target Milestone: mozilla1.0 → Future
Comment 16•23 years ago
|
||
*** Bug 122388 has been marked as a duplicate of this bug. ***
Comment 17•22 years ago
|
||
*** Bug 127966 has been marked as a duplicate of this bug. ***
Updated•22 years ago
|
Summary: Right clicking on location bar selects entire location → Right-clicking location bar selection expands selection to entire URL
Comment 18•22 years ago
|
||
*** Bug 124083 has been marked as a duplicate of this bug. ***
Updated•22 years ago
|
Summary: Right-clicking location bar selection expands selection to entire URL → Right-clicking location bar selects entire URL even if location bar already has focus
Comment 19•22 years ago
|
||
*** Bug 120829 has been marked as a duplicate of this bug. ***
Comment 20•22 years ago
|
||
*** Bug 133474 has been marked as a duplicate of this bug. ***
Comment 21•22 years ago
|
||
*** Bug 133446 has been marked as a duplicate of this bug. ***
Comment 22•22 years ago
|
||
*** Bug 134736 has been marked as a duplicate of this bug. ***
Comment 23•22 years ago
|
||
adding keywords to get this on people's radars so the duplicates don't spin out of control. Does anyone see this on other OSs? (ones with ClickSelectsAll enabled?)
Comment 24•22 years ago
|
||
One dupe from a Mac, different windows versions. Setting Platform All, OS All, keyword pp
Comment 25•22 years ago
|
||
*** Bug 134736 has been marked as a duplicate of this bug. ***
Comment 26•22 years ago
|
||
I did some analysis and the problem seems to stem from the context menu. When you right mouse on the location bar, focus momentarily is lost and regained. This causes onblur & onfocus events to fire which causes everything to be deselected and reselected. The workaround is to set the "browser.urlbar.clickSelectsAll" pref to false.
Comment 27•22 years ago
|
||
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Adam, I just have tried your workaround suggestion re comment #26 of "this" bug. Great. I now seem to have the expected behaviour of the right mouse click. Seem, as there is one other odd behaviour I now observe, and would be a different bug. I need to search the bug database first to see if it has been reported already, and if not I will open a new bug. -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com> Comment: . iQA/AwUBPKt2N/LzhJbmoDZ+EQI7wwCgwdqV0NfgHMFsT7fJ++AfoItBm34AoLpp yowf3RYh13fx/AdRlKHungWS =qW4R -----END PGP SIGNATURE-----
Comment 28•22 years ago
|
||
*** Bug 137267 has been marked as a duplicate of this bug. ***
Comment 29•22 years ago
|
||
*** Bug 137682 has been marked as a duplicate of this bug. ***
Comment 30•22 years ago
|
||
*** Bug 138053 has been marked as a duplicate of this bug. ***
Comment 31•22 years ago
|
||
I just attached a patch for bug 62495 that also addresses this bug.
Comment 32•22 years ago
|
||
*** Bug 141409 has been marked as a duplicate of this bug. ***
Comment 33•22 years ago
|
||
*** Bug 144550 has been marked as a duplicate of this bug. ***
Comment 34•22 years ago
|
||
As I mentioned before, I have a patch in bug 62495 that fixes this. Would anyone care to try it out and/or review it?
Comment 35•22 years ago
|
||
*** Bug 145183 has been marked as a duplicate of this bug. ***
Comment 36•22 years ago
|
||
Mass removing self from CC list.
Comment 37•22 years ago
|
||
Now I feel sumb because I have to add back. Sorry for the spam.
Comment 38•22 years ago
|
||
*** Bug 153774 has been marked as a duplicate of this bug. ***
Comment 39•22 years ago
|
||
*** Bug 154519 has been marked as a duplicate of this bug. ***
Comment 41•22 years ago
|
||
fixed on trunk with check-in for bug 62495
Status: NEW → RESOLVED
Closed: 23 years ago → 22 years ago
Resolution: --- → FIXED
Comment 42•22 years ago
|
||
The real cause of this was spurious focus events caused by the context menu. I'll file a new bug that shows how fixing that makes this bug easier to fix.
Comment 43•22 years ago
|
||
Hey, that would be great! Those extra focus and blur events were a pain when I was working through this. In the meantime, at least right-click works properly now.
Comment 44•22 years ago
|
||
I've filed bug 155871 on the context menu focus event issue.
Comment 45•22 years ago
|
||
This should be reopened. 2002100710 trunk has this issue again.
Comment 46•22 years ago
|
||
Hrm, I see it too, using a build from Oct 6. Neil, any idea why?
Comment 47•22 years ago
|
||
This applies to all textboxes; on one PC it even applies to form inputs :-( So it's not specific to the URL bar.
Comment 48•22 years ago
|
||
It's definitely all XUL text boxes on my machine. It sounds like this could have been regressed by the fix to bug 28583. Aaron, any thoughts?
Assignee | ||
Comment 49•22 years ago
|
||
Yes, this is my regression -- nice catch Dean. Right clicks for XUL textfields must be handled in script, I'm not getting this behavior in HTML textfields, which is what XUL textfields wrap.1
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 50•22 years ago
|
||
Yes, it affects XUL textboxes, now that I've correctly rebuilt Mozilla I think the line to blame is in textbox.xml (extract): <binding id="input-box"> <content context="_child"> <children/> <xul:menupopup onpopupshowing="this.parentNode.firstChild.focus(); The call to focus() is autoselecting the text. Can we live without this?
Comment 51•22 years ago
|
||
Forgive my ignorance, but shouldn't a focus event only place focus on a particular widget? In the case of textboxes, focus should only place the cursor inside of it. Autoselecting the text is bad. If Mozilla is autoselecting the text of textboxes on focus, the bug is wherever that is happening IMHO. Please ignore this if you meant "can we live without this" to apply to autoselecting text instead of giving XUL textboxes focus.
Assignee | ||
Comment 52•22 years ago
|
||
Jerry, see bug 28583. Neil, yeah -- I'm looking at that too. Removing the parentNode.firstChild.focus() call fixes it, but I'm not 100% sure that's okay. Maybe we should test to see if focus is there already, and it is, don't focus it again.
Comment 53•22 years ago
|
||
Bug 28583 specifies that onclick should not trigger the autoselection of text. The standard behavior of textfield widgets in Win32 is that a click does not select the text, and tabbing into the field *does* autoselect the text. I suppose that is the optimal solution here. URL bars are special cases where users probably expect autoselected text onfocus even with click, but only the first click.
Assignee | ||
Comment 54•22 years ago
|
||
Jerry, you are correct. That is the behavior we are trying to fix.
Comment 55•22 years ago
|
||
The click isn't the problem but the call to .focus() that selects the text.
Assignee | ||
Comment 56•22 years ago
|
||
patch forthcoming
Assignee: dean_tessman → aaronl
Status: REOPENED → NEW
Assignee | ||
Comment 57•22 years ago
|
||
Seeking r=/sr=
Assignee | ||
Comment 58•22 years ago
|
||
Note, even just removing the focus() call completely from onpopupshowing worked in my tests, because the right click focuses the the textbox anyway.
Comment 59•22 years ago
|
||
Neil, your patch to bug 155871 made a minor change to this part of textbox.xml. - <xul:menupopup onpopupshowing="this.parentNode.focus(); this.parentNode.doPopupItemEnabling(this);"> + <xul:menupopup onpopupshowing="this.parentNode.firstChild.focus(); this.parentNode.doPopupItemEnabling(this);" Do you recall why?
Assignee | ||
Comment 60•22 years ago
|
||
this is the menupopup element this.parentNode is the containing box this.parentNode.firstChild is the html <input> edit control
Comment 61•22 years ago
|
||
Comment on attachment 102588 [details] [diff] [review] In textbox.xml, on popushowing, checks to see if input field already has focus before calling focus() on it Sounds good. r=me
Attachment #102588 -
Flags: review+
Comment 62•22 years ago
|
||
*** Bug 174038 has been marked as a duplicate of this bug. ***
Comment 63•22 years ago
|
||
Comment on attachment 102588 [details] [diff] [review] In textbox.xml, on popushowing, checks to see if input field already has focus before calling focus() on it Just wondering whether it's more readable to put the focus handling code in the doPopupItemEnabling method.
Comment 64•22 years ago
|
||
Comment on attachment 102588 [details] [diff] [review] In textbox.xml, on popushowing, checks to see if input field already has focus before calling focus() on it sr=bzbarsky
Attachment #102588 -
Flags: superreview+
Comment 65•22 years ago
|
||
*** Bug 173933 has been marked as a duplicate of this bug. ***
Comment 66•22 years ago
|
||
*** Bug 175449 has been marked as a duplicate of this bug. ***
Comment 67•22 years ago
|
||
Should we try to get this regression fix into 1.2?
Comment 68•22 years ago
|
||
*** Bug 175580 has been marked as a duplicate of this bug. ***
Comment 69•22 years ago
|
||
(Hopefully) nominating for 1.2; does someone have to email drivers?
Keywords: mozilla1.1 → mozilla1.2
Comment on attachment 102588 [details] [diff] [review] In textbox.xml, on popushowing, checks to see if input field already has focus before calling focus() on it a=roc+moz for trunk
Attachment #102588 -
Flags: approval+
Assignee | ||
Comment 71•22 years ago
|
||
checked in fix for regression.
Status: NEW → RESOLVED
Closed: 22 years ago → 22 years ago
Resolution: --- → FIXED
Comment 72•22 years ago
|
||
*** Bug 177654 has been marked as a duplicate of this bug. ***
Comment 73•22 years ago
|
||
*** Bug 178384 has been marked as a duplicate of this bug. ***
Comment 74•22 years ago
|
||
*** Bug 179335 has been marked as a duplicate of this bug. ***
Comment 75•22 years ago
|
||
*** Bug 182077 has been marked as a duplicate of this bug. ***
Updated•16 years ago
|
Product: Core → SeaMonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•