RESOLVED FIXED 191948
[Cocoa] Make it easier to encode NSObjects for WebKit IPC
https://bugs.webkit.org/show_bug.cgi?id=191948
Summary [Cocoa] Make it easier to encode NSObjects for WebKit IPC
Andy Estes
Reported 2018-11-24 18:31:53 PST
[Cocoa] Make it easier to encode NSObjects
Attachments
Patch (46.42 KB, patch)
2018-11-24 18:34 PST, Andy Estes
no flags
Patch (46.33 KB, patch)
2018-11-24 18:36 PST, Andy Estes
no flags
Patch (46.06 KB, patch)
2018-11-24 18:41 PST, Andy Estes
no flags
Patch (49.96 KB, patch)
2018-11-24 19:14 PST, Andy Estes
no flags
Patch (49.94 KB, patch)
2018-11-24 20:48 PST, Andy Estes
no flags
Patch (49.32 KB, patch)
2018-11-24 21:04 PST, Andy Estes
no flags
Patch (50.88 KB, patch)
2018-11-26 10:17 PST, Andy Estes
no flags
Patch (51.72 KB, patch)
2018-11-26 12:06 PST, Andy Estes
no flags
Andy Estes
Comment 1 2018-11-24 18:34:16 PST Comment hidden (obsolete)
Andy Estes
Comment 2 2018-11-24 18:36:55 PST Comment hidden (obsolete)
Andy Estes
Comment 3 2018-11-24 18:41:20 PST Comment hidden (obsolete)
EWS Watchlist
Comment 4 2018-11-24 18:45:13 PST Comment hidden (obsolete)
Andy Estes
Comment 5 2018-11-24 19:14:37 PST Comment hidden (obsolete)
Andy Estes
Comment 6 2018-11-24 20:48:07 PST Comment hidden (obsolete)
Andy Estes
Comment 7 2018-11-24 21:04:05 PST Comment hidden (obsolete)
Andy Estes
Comment 8 2018-11-26 10:17:08 PST
Dean Jackson
Comment 9 2018-11-26 11:50:32 PST
Comment on attachment 355649 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=355649&action=review Cool patch! > Source/WebCore/Modules/applepay/cocoa/PaymentCocoa.mm:70 > +Payment::Payment() = default; Why did you move this to the implementation? > Source/WebKit/Shared/Cocoa/ArgumentCodersCocoa.h:57 > + ASSERT([object isKindOfClass:allowedClasses[0]]); Maybe ASSERT allowedClasses has entries? > Source/WebKit/Shared/Cocoa/ArgumentCodersCocoa.h:58 > + return { adoptNS((T *)object) }; Can you static_cast here?
Andy Estes
Comment 10 2018-11-26 11:58:37 PST
(In reply to Dean Jackson from comment #9) > Comment on attachment 355649 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=355649&action=review > > Cool patch! Thanks for reviewing! > > > Source/WebCore/Modules/applepay/cocoa/PaymentCocoa.mm:70 > > +Payment::Payment() = default; > > Why did you move this to the implementation? check-webkit-style wanted me to (because it doesn't like inline member functions on exported classes). > > > Source/WebKit/Shared/Cocoa/ArgumentCodersCocoa.h:57 > > + ASSERT([object isKindOfClass:allowedClasses[0]]); > > Maybe ASSERT allowedClasses has entries? Yes, good idea. > > > Source/WebKit/Shared/Cocoa/ArgumentCodersCocoa.h:58 > > + return { adoptNS((T *)object) }; > > Can you static_cast here? Ok.
Andy Estes
Comment 11 2018-11-26 12:06:24 PST
WebKit Commit Bot
Comment 12 2018-11-26 13:13:55 PST
Comment on attachment 355664 [details] Patch Clearing flags on attachment: 355664 Committed r238515: <https://trac.webkit.org/changeset/238515>
WebKit Commit Bot
Comment 13 2018-11-26 13:13:57 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 14 2018-11-26 13:15:45 PST
Note You need to log in before you can comment on or make changes to this bug.