Last Comment Bug 84973 - make clipboard async -- otherwise paste from remote apps can fail.
: make clipboard async -- otherwise paste from remote apps can fail.
Status: NEW
:
Product: Core
Classification: Components
Component: Selection (show other bugs)
: Trunk
: x86 Linux
: -- normal with 10 votes (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
:
Mentors:
: 51929 84217 89102 190723 239083 243758 268053 (view as bug list)
Depends on:
Blocks: 56219 124140 132979 144260
  Show dependency treegraph
 
Reported: 2001-06-09 18:17 PDT by Boris Zbarsky [:bz] (still a bit busy)
Modified: 2013-01-30 20:47 PST (History)
33 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
patch for gtk2 (WIP) (184.77 KB, patch)
2004-03-25 01:37 PST, Christopher Aillon (sabbatical, not receiving bugmail)
no flags Details | Diff | Splinter Review
Patch for GTK2 (207.15 KB, patch)
2004-03-26 14:44 PST, Christopher Aillon (sabbatical, not receiving bugmail)
doug.turner: review-
Details | Diff | Splinter Review

Description Boris Zbarsky [:bz] (still a bit busy) 2001-06-09 18:17:00 PDT
This is spun off of bug 55312.

Given a laggy network and a fast computer we currently fail to paste correctly 
into Mozilla if the paste is coming from an app running on a remote computer.  
The only real solution to this is to make the clipboard async; assigning to 
pinkerton, since he's mentioned implementing that.

Bug 55312 checked in a workaround that should be OK for a bit, but as computers 
get faster this will become a problem again.
Comment 1 Mike Pinkerton (not reading bugmail) 2001-06-11 12:27:22 PDT
this is a dupe of a bug i already have, but i can't find it.
Comment 2 Boris Zbarsky [:bz] (still a bit busy) 2001-07-03 13:37:26 PDT
*** Bug 89102 has been marked as a duplicate of this bug. ***
Comment 3 Christopher Aillon (sabbatical, not receiving bugmail) 2001-08-17 01:33:34 PDT
*** Bug 84217 has been marked as a duplicate of this bug. ***
Comment 4 Boris Zbarsky [:bz] (still a bit busy) 2001-12-12 18:31:23 PST
This is a major usability problem on Unix, still.  While pasting from remote
apps is passable now, we still cannot paste large amounts of text.  We just
forget to do it.  See comments in bug 56219.
Comment 5 R.K.Aa. 2002-02-22 13:31:27 PST
dup of bug 51929?
Comment 6 Boris Zbarsky [:bz] (still a bit busy) 2002-02-22 13:57:39 PST
No... this is actually assigned to the guy who said he'd do the work.  :)
Comment 7 Mike Pinkerton (not reading bugmail) 2002-09-23 08:34:40 PDT
fffffffuture
Comment 8 Boris Zbarsky [:bz] (still a bit busy) 2002-09-23 10:17:41 PDT
at least adding helpwanted... this is one of the few really major usability
problems of Mozilla on Linux (the fact that I can't paste a chunk of text into a
textarea reasonably).
Comment 9 Terri Preston 2002-09-23 10:27:24 PDT
QA->pmac
Comment 10 Anthony DeRobertis 2002-10-14 17:11:23 PDT
*** Bug 51929 has been marked as a duplicate of this bug. ***
Comment 11 Christopher Aillon (sabbatical, not receiving bugmail) 2004-03-14 17:36:50 PST
Claiming, as I'm working on this.
Comment 12 Christopher Aillon (sabbatical, not receiving bugmail) 2004-03-25 01:37:54 PST
Created attachment 144732 [details] [diff] [review]
patch for gtk2 (WIP)

So this should get the ball rolling.  I want to patch gtk1 eventually, and do
some more fixup here but I suppose some comments would be nice on this.

Of note, I changed nsIClipboard::supportsSelectionClipboard() because it wasn't
generic enough.  There could be more clipboards than just two (will someone
ever use secondary?  will we ever support app specific clipboards ala some
office suites?) and having a mask returned is more robust.  I also changed the
constants to be more IDL-ish.

I also removed nsIClipboardOwner since it was unused by anything I could find,
and bryner and blizzard seemed to be ok with that.

I dealt with other platforms by just having the async method call the sync
method and then immediately fire the callback.	That seemed to be the sensible
thing to do...
Comment 13 Christopher Aillon (sabbatical, not receiving bugmail) 2004-03-26 14:44:33 PST
Created attachment 144873 [details] [diff] [review]
Patch for GTK2

Ok, let's try this.  It fixes some issues the previous one had with calendar,
xlib, and updates the places I just forgot to change (oops).  Also, this avoids
some potential crashes in the editor callbacks.
Comment 14 Christian :Biesinger (don't email me, ping me on IRC) 2004-03-26 16:48:49 PST
Comment on attachment 144873 [details] [diff] [review]
Patch for GTK2

widget/public/nsIClipboard.idl
+   * @param  aTransferable The transferable
+   * @param  aWhichClipboard Specifies the clipboard to which this operation
applies.
+   * @param  aClipboardListener Specifies the clipboard to which this
operation applies.
+   * @result NS_OK if no errors
+   */
+  void getData(in nsITransferable transferable, in unsigned long clipboardID,
+		in nsIClipboardListener listener, in nsISupports data);

param names don't match here and on the other functions on this interface...

also, you should probably generate a new iid with uuidgen or something instead
of just incrementing it
Comment 15 :Gavin Sharp [email: gavin@gavinsharp.com] 2005-02-13 00:07:20 PST
*** Bug 268053 has been marked as a duplicate of this bug. ***
Comment 16 :Gavin Sharp [email: gavin@gavinsharp.com] 2005-02-13 00:07:31 PST
*** Bug 270533 has been marked as a duplicate of this bug. ***
Comment 17 :Gavin Sharp [email: gavin@gavinsharp.com] 2005-02-13 00:08:04 PST
*** Bug 239083 has been marked as a duplicate of this bug. ***
Comment 18 :Gavin Sharp [email: gavin@gavinsharp.com] 2005-02-13 00:08:22 PST
*** Bug 243758 has been marked as a duplicate of this bug. ***
Comment 19 :Gavin Sharp [email: gavin@gavinsharp.com] 2005-02-13 12:41:28 PST
*** Bug 190723 has been marked as a duplicate of this bug. ***
Comment 20 Paulius 2005-05-22 16:46:15 PDT
I'm also experiencing the same bug on all my Windows XP computers when having
the Remote Desktop client open. I also use VNC some times and I don't think that
this bug arises on VNC.

I've noticed that it actually fails copying what's in the address bar. It can
copy text and everything else perfectly.

Note that my operating systems are Windows XP profesionnal and Home Edition.
Comment 21 Wayne Mery (:wsmwk, NI for questions) 2008-02-22 07:04:59 PST
Is this bug really linux-only?  
Or just the patch?
(dupes of comment 17 to 19 were all windows reports)
Comment 22 Boris Zbarsky [:bz] (still a bit busy) 2008-02-22 08:15:57 PST
This bug as originally filed is Linux-only.  Whoever marked Windows bugs as duplicates is mistaken.  If there is a Windows issue, it should be filed as a separate bug.
Comment 23 Doug Turner (:dougt) 2013-01-30 20:47:34 PST
Comment on attachment 144873 [details] [diff] [review]
Patch for GTK2

patch doesn't apply any longer and blizzard probably no longer is the right reviewer.  minusing

Note You need to log in before you can comment on or make changes to this bug.