WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 77260
DRT pasteboard object should return the correct pasteboard name
https://bugs.webkit.org/show_bug.cgi?id=77260
Summary
DRT pasteboard object should return the correct pasteboard name
Enrica Casucci
Reported
2012-01-27 16:09:55 PST
The current implementation returns nil regardless of the name used to create the pasteboard object.
Attachments
Pastch
(2.29 KB, patch)
2012-01-27 16:32 PST
,
Enrica Casucci
mitz: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Enrica Casucci
Comment 1
2012-01-27 16:32:35 PST
Created
attachment 124396
[details]
Pastch
mitz
Comment 2
2012-01-27 16:54:39 PST
Comment on
attachment 124396
[details]
Pastch View in context:
https://bugs.webkit.org/attachment.cgi?id=124396&action=review
r=me assuming you fix the memory management issue.
> Tools/DumpRenderTree/mac/DumpRenderTreePasteboard.m:45 > +-(id)initWithName:(NSString*)name;
Needs a space before the *. A newline before this line wouldn’t hurt either.
> Tools/DumpRenderTree/mac/DumpRenderTreePasteboard.m:91 > +- (id)initWithName:(NSString*)name
Needs a space before the *.
> Tools/DumpRenderTree/mac/DumpRenderTreePasteboard.m:96 > + pasteboardName = name;
You should -copy name here and -release pasteboardName in -dealloc.
Enrica Casucci
Comment 3
2012-01-27 17:00:05 PST
thanks for the review! I'll fix the memory management issue.
Enrica Casucci
Comment 4
2012-01-27 17:13:08 PST
http://trac.webkit.org/changeset/106171
Enrica Casucci
Comment 5
2012-01-27 17:23:29 PST
Dan pointed out I should have used copy instead of initWithString. Landed a follow-up fix.
http://trac.webkit.org/changeset/106172
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