Closed Bug 825241 Opened 12 years ago Closed 11 years ago

Middle mouse press causes paste despite middlemouse.paste being false

Categories

(Firefox :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jdm, Assigned: srinath)

Details

(Whiteboard: [mentor=jdm][lang=js])

http://hg.mozilla.org/mozilla-central/annotate/0bb4773db082/browser/base/content/browser.js#l5247

Instead of checking the middlemouse.paste pref as would make sense, we're checking for its implied status via general.autoScroll.
Whiteboard: [mentor=jdm][lang=js]
Hi JDM,

I'm interested in working on this bug. Can you please assign this to me?
Assignee: nobody → irtmail-bugzilla
Hi JDM,

I tried reproducing this bug using the following steps.

In the latest alpha build (2nd August, 2013) set the middlemouse.paste preference in about:config to false. Copied a line of text using Ctrl+C and tried pasting it by clicking the mouse middle button. I could not paste the text. 

In another test, I re-enabled the preference in about:config and tried pasting. I was able to paste the text.

Please let me know if I'm missing anything.
Flags: needinfo?(josh)
PS: I am testing in Fedora Release 18 (Spherical Cow) 64-bit - kernel version "Kernel Linux 3.9.11-200.fc18.x86_64"
I can reproduce it when I right click on a link and choose to copy it. The next time I press the middle mouse button I am instantly taken to that URL.
Flags: needinfo?(josh)
(In reply to Josh Matthews [:jdm] from comment #4)
> I can reproduce it when I right click on a link and choose to copy it. The
> next time I press the middle mouse button I am instantly taken to that URL.
How does the value of middlemouse.contentLoadURL affect this?
Flags: needinfo?(josh)
Curses! All this time! Sorry to lead you astray srinath.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
No worries JDM! :)
Flags: needinfo?(josh)
I set middlemouse.paste to false.
I open a text editor and write the text "ab" and copy it. I go back to firefox and middle-clicking does nothing.
I go back to the text editor and write "a:b" and copy it. I go back to firefox and middle-clicking pastes the text into the URL box.
You need to log in before you can comment on or make changes to this bug.