WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
4990
WebKit needs to use a local pasteboard during testing
https://bugs.webkit.org/show_bug.cgi?id=4990
Summary
WebKit needs to use a local pasteboard during testing
Eric Seidel (no email)
Reported
2005-09-14 22:39:51 PDT
WebKit needs to use a local pasteboard during testing Currently WebKit always uses the "generic" pasteboard for copy/paste, etc. This causes problems during testing because you are unable to safely use the pasteboard while runing run-webkit-tests for fear of causings test failures. There are also situations underwhich SSH sessions will not properly connect to the pasteboard server (pbs) and thus cause editing tests to fail. This could be a secret default which turned on various "debug only" behaviors in WebKit, or a single default just for disabling using the generic pasteboard. This would require small changes to both WebKit and DumpRenderTree.
Attachments
use a pasteboard with a unique name; next best thing to a local pasteboard
(4.70 KB, patch)
2005-12-18 14:30 PST
,
Darin Adler
eric
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Eric Seidel (no email)
Comment 1
2005-09-14 22:40:32 PDT
Dave had expressed interest in this.
Justin Garcia
Comment 2
2005-10-06 03:29:16 PDT
Is it even possible to have a local pasteboard?
Eric Seidel (no email)
Comment 3
2005-10-06 03:37:01 PDT
Sure: NSPasteBoard *myLocalPasteBoard = [[NSPasteBoard alloc] init];
Justin Garcia
Comment 4
2005-10-09 01:24:51 PDT
Boy don't I feel silly. We should do this right away.
Darin Adler
Comment 5
2005-12-18 14:27:10 PST
I tried. [[NSPasteBoard alloc] init] does not work. But you can have a pasteboard not shared with any other process. I'll attach my patch.
Darin Adler
Comment 6
2005-12-18 14:30:03 PST
Created
attachment 5141
[details]
use a pasteboard with a unique name; next best thing to a local pasteboard We discussed using a local pasteboard, but as far as I can tell there's no such thing. I tried [[NSPasteboard alloc] init] and discovered that alloc is overriden to indicate you can't allocate your own NSPasteboard.
Justin Garcia
Comment 7
2005-12-18 14:55:32 PST
Darin, didn't you mention that this change required some changes to updateLayout calls in the editing code? Are those attached to a different bug?
Eric Seidel (no email)
Comment 8
2005-12-18 14:56:21 PST
Comment on
attachment 5141
[details]
use a pasteboard with a unique name; next best thing to a local pasteboard I'm not familiar with that pose-as syntax, but the change looks totally fine. r=me.
Darin Adler
Comment 9
2005-12-18 15:16:38 PST
(In reply to
comment #7
)
> Darin, didn't you mention that this change required some changes to updateLayout calls > in the editing code? Are those attached to a different bug?
I'm not certain of the relationship between this change and the failures I was seeing. The bug is
bug 6142
, but it seems likely it was just coincidence that I first saw those failures after applying this patch.
Darin Adler
Comment 10
2005-12-18 15:33:34 PST
(In reply to
comment #8
)
> I'm not familiar with that pose-as syntax
This is the low-level poseAs. There's also a higher level poseAs in NSObject, but there's no strong argument in favor of using that one over this. Historically in Safari it was important to use this one instead of the one that involved Objective-C method calls but I can't remember why. Here I was just using it because I had the code from Safari to copy and paste.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug