Closed
Bug 1275932
Opened 9 years ago
Closed 9 years ago
Ctrl-C intermittently fails to copy
Categories
(Firefox :: General, defect, P1)
Tracking
()
RESOLVED
FIXED
Firefox 50
People
(Reporter: catlee, Assigned: enndeakin)
Details
Attachments
(1 file, 1 obsolete file)
Firefox occasionally fails to actually copy when I press Ctrl-C with the cursor on highlighted text in the location bar, or in a web page.
A common pattern I use is:
- Ctrl-L (highlight location)
- Ctrl-C (copy)
- Navigate to other window
- Ctrl-V (paste)
I estimate that this fails about 5% of the time. What happens is that the previous contents of the clipboard are pasted instead, so I assume that the copy-to-clipboard isn't actually working.
This results in mostly irrelevant, sometimes embarrassing, and occasionally dangerous pasting of unexpected contents into public channels.
This is not a recent regression; Firefox has been behaving like this for a while.
Comment 1•9 years ago
|
||
I've been seeing this too. Given the low incidence rate, it took quite a while to convince myself it wasn't just me.
Catlee and I both use Linux.
Comment 2•9 years ago
|
||
I have experienced this issue as well running on OS X with developer edition.
| Reporter | ||
Comment 3•9 years ago
|
||
I was able to reproduce this issue pretty reliably with the primary clipboard (select to copy / middle-click to paste) by doing this:
- Select some text in firefox
- Middle click in another window to verify it pastes
- Ctrl-L in Firefox
- Middle click in other window
Most of the time it pastes the old contents.
Comment 4•9 years ago
|
||
Me, too: dev edition on OS X 10.11
Comment 5•9 years ago
|
||
I can reproduce this reliably as well using Ctrl-L to focus with the PRIMARY selection.
Curiously, it seems to copy fine after a second press of Ctrl-L (pressing Ctrl-L while the URL bar is already highlighted).
Comment 6•9 years ago
|
||
This doesn't seem to happen with e10s off fwiw.
If you highlight the search bar then the address bar (Ctrl-K -> Ctrl-L) the address bar selection gets copied just fine.
Judging from this, I'm thinking that the use of our GTK backend's nsClipboard out-of-process is at fault here.
Comment 7•9 years ago
|
||
(In reply to Andrew Comminos [:acomminos] from comment #6)
> This doesn't seem to happen with e10s off fwiw.
>
> If you highlight the search bar then the address bar (Ctrl-K -> Ctrl-L) the
> address bar selection gets copied just fine.
>
> Judging from this, I'm thinking that the use of our GTK backend's
> nsClipboard out-of-process is at fault here.
I think I actually noticed it sometimes on Firefox stable, so without e10s. I'll pay more attention the next time this is happening to be sure/confirm this.
And does it concern GTK if this is happening on OS X too?
Comment 8•9 years ago
|
||
I'm running stable, too (Firefox 45).(In reply to Chris AtLee [:catlee] from comment #3)
> - Ctrl-L in Firefox
> - Middle click in other window
did you intentionally omit Ctrl-C here?
| Reporter | ||
Comment 9•9 years ago
|
||
(In reply to Dustin J. Mitchell [:dustin] from comment #8)
> I'm running stable, too (Firefox 45).(In reply to Chris AtLee [:catlee] from
> comment #3)
> > - Ctrl-L in Firefox
> > - Middle click in other window
>
> did you intentionally omit Ctrl-C here?
yes, this is testing the selection-based copy.
Comment 10•9 years ago
|
||
OK, that very reliably *never* works for me.
| Reporter | ||
Comment 11•9 years ago
|
||
It works reliably for me if you press Ctrl-L twice.
Comment 12•9 years ago
|
||
I just did the following:
* select an address in a tab
* ctrl-c, ctrl-t, ctrl-v, enter
* tab opens to the URL that was previously in my clipboard
(I realize this isn't a selection-based copy issue, and isn't about copying from the location bar. If we have multiple bugs here, I'm happy to split this up)
Updated•9 years ago
|
tracking-e10s:
--- → ?
Comment 13•9 years ago
|
||
Amending my previous comment; it doesn't look like the issue is at the widget level. nsClipboard::SetData is simply not called for the first selection when pressing Ctrl-L after making a selection in the content process.
| Assignee | ||
Comment 14•9 years ago
|
||
The selection code for the urlbar is at https://mxr.mozilla.org/mozilla-central/source/browser/base/content/urlbarBindings.xml#1034
I'll bet the isHandlingUserInput check is failing because the event is being handled in the other process.
Updated•9 years ago
|
Priority: -- → P1
| Assignee | ||
Comment 15•9 years ago
|
||
Updated•9 years ago
|
Attachment #8768482 -
Flags: review?(masayuki) → review+
| Assignee | ||
Comment 16•9 years ago
|
||
Attachment #8768482 -
Attachment is obsolete: true
| Assignee | ||
Comment 17•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/81fa78eb62f6ff8eb0b392105e43b7122f04df90
Bug 1275932, use AutoHandlingUserInputStatePusher to indicate that a real input is happening when refiring key event in the parent process, r=masayuki
Comment 18•9 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox50:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 50
| Reporter | ||
Comment 19•9 years ago
|
||
I just had this happen again in Nightly
You need to log in
before you can comment on or make changes to this bug.
Description
•