Open Bug 728992 Opened 12 years ago Updated 2 years ago

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

Categories

(Core :: General, defect)

12 Branch
x86
Linux
defect

Tracking

()

People

(Reporter: jidanni, Unassigned)

Details

(Keywords: uiwanted)

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.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
I was talking purely about the action of "copy".
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
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?
(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.
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)
(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.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: uiwanted
Component: Untriaged → General
Product: Firefox → Core
Can you still reproduce?
Flags: needinfo?(jidanni)
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)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.