Closed Bug 162859 Opened 23 years ago Closed 23 years ago

Middle click on <select> box causes browser to visit URL

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
Linux
defect
Not set
minor

Tracking

()

VERIFIED DUPLICATE of bug 70498

People

(Reporter: peter_c60, Assigned: joki)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529 BuildID: 2002052918 If you middle click on a dropdown box or list box created via the <select> element on a page, the browser interprets whatever text is currently in the clipboard as an URL and takes you there. Reproducible: Always Steps to Reproduce: 1. Go to the above URL or any page containing a <select> element. 2. Select some text in Mozilla or any other application thereby putting it in the clipboard. (e.g. select "Bugzilla" in above page). 3. Middle click on the list/dropdown box. Actual Results: Browser goes to the URL in the clipboard (e.g. http://www.bugzilla.com, a website about somebody's car). If no text is in the clipboard then nothing happens. Expected Results: Nothing happens. A minimal test case: <form><select></select></form>
I believe that the expected result should be: "set focus to select box",because this is what happens in other browsers (like Konqueror) when you middle click on a select. Anyways,I was able to reproduce this bug with Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1b) Gecko/20020722, Build ID: 2002072204.
Well... if you middle-click on _anything_ that has no paste or middle-click behavior defined (eg text, <select>, checkboxes, etc) the default behavior is to treat the text being pasted as a url and go to it. Why should <select> have special middle-click or paste behavior, exactly?
Well, it isn't logical to do anything when you paste into a select box so the browser should just do nothing, beep (or some other sign that you cannot do this) or focus the select box as mentioned in comment 1. This should also apply to check boxes etc. The summary also ought to be changed to something more meaningful.
What about just pasting on random text in the browser window?
*** This bug has been marked as a duplicate of 70498 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
QA Contact: rakeshmishra → trix
verifying dupe
Status: RESOLVED → VERIFIED
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.