The default bug view has changed. See this FAQ.

[GTK/X11] middle clicking in scratchpad should paste the X primary selection

RESOLVED FIXED in Firefox 11

Status

()

Firefox
Developer Tools
P2
normal
RESOLVED FIXED
6 years ago
5 years ago

People

(Reporter: dbaron, Assigned: msucan)

Tracking

Trunk
Firefox 11
All
Linux
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [sourceeditor][orion])

(Reporter)

Description

6 years ago
On the Linux/X11 desktop (definitely in GNOME apps, and I think in KDE as well), selecting text should make that text the X primary selection ("PRIMARY"), such that middle clicking in an app taking text input will paste that text.

(This is because X has a longstanding copy/paste model that's somewhat more like the mental model of dragging and dropping text than the Windows/Mac copy/paste model, except using select and middle-click.  The GNOME and KDE desktops have added a more Windows/Mac-like model with Copy and Paste operations in *addition* to that traditional model, but many X users use the traditional model.)

This bug reports that scratchpad does not accept the middle click input in this model (in contrast to bug 695032 which reports it doesn't place text in the selection when text is selected).

Steps to reproduce:
 1. select some text in a browser window
 2. Tools -> Web Developer -> Scratchpad
 3. middle click in the text editor

Expected results:  The text that you selected in step 1 gets pasted

Actual results: nothing
Please see https://bugzilla.gnome.org/show_bug.cgi?id=333514 for a lengthy description (written by me) of how PRIMARY/middle-mouse is supposed to work.  Please note further that the discussion in that bug includes several people arguing that it should not be fixed.  Those people are wrong.
(Assignee)

Comment 2

6 years ago
Thank you David for the bug report, and thank you Zack for your explanation of how things should work.
Whiteboard: [sourceeditor][orion]
(Assignee)

Comment 3

6 years ago
Bug reported upstream:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=361474

Updated

6 years ago
Priority: -- → P2
(Assignee)

Updated

5 years ago
Depends on: 702331
(Assignee)

Comment 4

5 years ago
This bug is now fixed upstream and the code has been integrated into Firefox, see bug 702331.
Assignee: nobody → mihai.sucan
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 11
You need to log in before you can comment on or make changes to this bug.