“View Selection Source” does not update X Primary Selection (for middle-click paste)

NEW
Unassigned

Status

()

Core
General
6 years ago
11 months ago

People

(Reporter: Dan Jacobson, Unassigned)

Tracking

({uiwanted})

12 Branch
x86
Linux
uiwanted
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
User Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0a2) Gecko/20120217 Firefox/12.0a2 Iceweasel/12.0a2
Build ID: 20120217042010

Steps to reproduce:

Highlight part of a page.
Now in the right menu click View Selection Source.
Now we are viewing the source, with the selection highlighted.
Now right click and pick "copy".
One finds the stuff copied was the highlighted previous page's rendered
text selection, not the highlighted area in the source we thought we
were copying!
If I wanted that I would have clicked "copy" back when looking at the
rendered page.

Updated

6 years ago
Status: UNCONFIRMED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 164906
(Reporter)

Comment 2

6 years ago
I was talking purely about the action of "copy".

Updated

6 years ago
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---

Comment 3

6 years ago
Sorry for the premature dupage.

I think I understand what you're saying now, but I'm having trouble reproducing the problem on my own computers (using Firefox 13 nightlies on Mac and Linux).

Can you provide more detailed steps to reproduce -- which page I should try it on, what to select, and what to paste into? You're pasting with a "paste" command and not with the middle mouse button, I hope?
(Reporter)

Comment 4

6 years ago
(In reply to Jesse Ruderman from comment #3)
Thanks. Mainly I'm pasting into e.g., shell windows outside of Firefox,
where there is only the X clipboard's middle button I suppose.

I now see that actual Pastes into various Textboxes inside Firefox work
as expected. So it is only the effort to copy to outside of Firefox that
isn't working.

To do that one must carefully painstakingly rehighlight the already
highlighted text, then "copy" does what is expected.

Indeed, no special clicking of 'copy' is needed.

Comment 5

6 years ago
I think it's unusual for selections made by software, rather than by users, to end up in Primary.  In some cases it would be a security hole if they did.  I'm not a big user of Primary, though, so I could be wrong.  (I use Ubuntu's terminal, which supports pasting from the clipboard with Ctrl+Shift+V and menu items.)
Summary: view selection source' s copy copies from the rendered page instead view selection source' s copy copies from the rendered page instead → “View Selection Source” does not update X Primary Selection (for middle-click paste) “View Selection Source” does not update X Primary Selection (for middle-click paste)
(Reporter)

Comment 6

6 years ago
(In reply to Jesse Ruderman from comment #5)
Hmmm, you have some good points. Maybe there could be an additional 'copy pre-selected text to clipboard' or something.

Updated

6 years ago
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: uiwanted

Updated

4 years ago
Component: Untriaged → General
Product: Firefox → Core

Comment 7

11 months ago
Can you still reproduce?
Flags: needinfo?(jidanni)
(Reporter)

Comment 8

11 months ago
I can still reproduce it!
Don't: Just highlight some words within this paragraph.
Do: Highlight part of this page, including a few avatars.
Now you should be able to see what I am taking about with the steps in Comment 0.
Flags: needinfo?(jidanni)
You need to log in before you can comment on or make changes to this bug.