Middle-clicking mouse button can produce odd effects




Event Handling
15 years ago
15 years ago


(Reporter: jahf, Unassigned)



Firefox Tracking Flags

(Not tracked)




15 years ago
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20031111

Background: I have middle mouse button assigned to open new tabs in background

Detail: If I click on the page with the middle mouse button near but not -ON- a
link (sometimes not knowing it's not on the link because I'm that close) I will
on occasion have the current tab go to a prior location in the history.

I've also had this, instead of opening a new tab or changing the current tab to
a prior location, insert the contents of the clipboard into the location for the
current tab, causing an error when the clipboard contents do not resolve to a
proper host (it's quite fun, I just tried it and ended up going to
"http://mouse/" since "mouse" was in my clipboard).

I'm not 100% certain that it is the clipboard contents as when I tried to
reproduce this error on Slashdot's home page, instead of "mouse" it inserted "1.
2. 3.", which I had not (knowingly) insert to the clipboard, so it may be a
random chunk of memory?

Reproducible: Sometimes
Steps to Reproduce:
Unfortunately I can't reproduce on every page. 

However, I'm noticing that if I middle-click anywhere on this bug entry form
-outside- of the form fields but -not- on a link (for instance, in the white
space next to the "steps to reproduce" field), that I will get the "clipboard /
junk location" portion of this issue. 

I haven't found a reliable way to get the "change current tab to prior location
in the history", even though on a daily basis it seems more common. I believe
that this may happen when I click on a link but the page scrolls due to the
mouse wheel and/or the layout changing during the click.
Actual Results:  
See above, I typed too verbosely.

Expected Results:  
Should have either:

1) Done nothing if the mouse was clicking an inactive portion of the page

2) Opened a new tab with the location being clicked if over a proper link.

Running on Java Desktop System 1.0 with Mozilla 1.4. Repeatable on all of my
hardware (2 differnet laptops with integrated mice and 1 desktop with a logitech
wheel trackball). I believe I've also encountered this on Red Hat 8.0, but no
longer have that system installed.



Build platform

Build tools
Compiler 	Version 	Compiler flags
gcc 	gcc version 3.2.2 	-Wall -W -Wno-unused -Wpointer-arith -Wcast-align
-pedantic -Wno-long-long -pthread -pipe
c++ 	gcc version 3.2.2 	-fno-rtti -fno-exceptions -Wall -Wconversion
-Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy
-pedantic -Wno-long-long -fshort-wchar -pthread -pipe -I/usr/X11R6/include

Configure arguments
--prefix=/usr --libdir=/usr/lib --enable-optimize --disable-tests
--disable-debug --with-xprint --enable-xinerama --enable-ldap --enable-crypto
--enable-x11-shm --with-default-mozilla-five-home=/usr/lib/mozilla-1.4
--disable-gtktest --disable-glibtest --disable-libIDLtest --disable-auto-deps
--enable-strip-libs --enable-ctl --enable-mercury --enable-default-toolkit=gtk2
invalid. clicking middle mouse in the content area loads the url that's
currently in the X selection. this is by design.

Set middlemouse.contentLoadURL to false if you do not want this behaviour.
Last Resolved: 15 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.