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+
Enrica Casucci
Comment 1 2012-01-27 16:32:35 PST
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
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.