Middle mouse press causes paste despite middlemouse.paste being false

RESOLVED WORKSFORME

Status

()

Firefox
General
RESOLVED WORKSFORME
5 years ago
4 years ago

People

(Reporter: jdm, Assigned: srinath)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

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

(Reporter)

Description

5 years ago
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.
(Reporter)

Updated

4 years ago
Whiteboard: [mentor=jdm][lang=js]
(Assignee)

Comment 1

4 years ago
Hi JDM,

I'm interested in working on this bug. Can you please assign this to me?
(Reporter)

Updated

4 years ago
Assignee: nobody → irtmail-bugzilla
(Assignee)

Comment 2

4 years ago
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)
(Assignee)

Comment 3

4 years ago
PS: I am testing in Fedora Release 18 (Spherical Cow) 64-bit - kernel version "Kernel Linux 3.9.11-200.fc18.x86_64"
(Reporter)

Comment 4

4 years ago
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)

Comment 5

4 years ago
(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)
(Reporter)

Comment 6

4 years ago
Curses! All this time! Sorry to lead you astray srinath.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → WORKSFORME
(Assignee)

Comment 7

4 years ago
No worries JDM! :)
(Reporter)

Updated

4 years ago
Flags: needinfo?(josh)

Comment 8

4 years ago
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.