WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
Patch
(46.33 KB, patch)
2018-11-24 18:36 PST
,
Andy Estes
no flags
Details
Formatted Diff
Diff
Patch
(46.06 KB, patch)
2018-11-24 18:41 PST
,
Andy Estes
no flags
Details
Formatted Diff
Diff
Patch
(49.96 KB, patch)
2018-11-24 19:14 PST
,
Andy Estes
no flags
Details
Formatted Diff
Diff
Patch
(49.94 KB, patch)
2018-11-24 20:48 PST
,
Andy Estes
no flags
Details
Formatted Diff
Diff
Patch
(49.32 KB, patch)
2018-11-24 21:04 PST
,
Andy Estes
no flags
Details
Formatted Diff
Diff
Patch
(50.88 KB, patch)
2018-11-26 10:17 PST
,
Andy Estes
no flags
Details
Formatted Diff
Diff
Patch
(51.72 KB, patch)
2018-11-26 12:06 PST
,
Andy Estes
no flags
Details
Formatted Diff
Diff
Show Obsolete
(7)
View All
Add attachment
proposed patch, testcase, etc.
Andy Estes
Comment 1
2018-11-24 18:34:16 PST
Comment hidden (obsolete)
Created
attachment 355569
[details]
Patch
Andy Estes
Comment 2
2018-11-24 18:36:55 PST
Comment hidden (obsolete)
Created
attachment 355570
[details]
Patch
Andy Estes
Comment 3
2018-11-24 18:41:20 PST
Comment hidden (obsolete)
Created
attachment 355571
[details]
Patch
EWS Watchlist
Comment 4
2018-11-24 18:45:13 PST
Comment hidden (obsolete)
Attachment 355571
[details]
did not pass style-queue: ERROR: Source/WebCore/Modules/applepay/PaymentMethod.h:44: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4] ERROR: Source/WebKit/Shared/RemoteLayerTree/RemoteLayerTreeTransaction.mm:923: A case label should not be indented, but line up with its switch statement. [whitespace/indent] [4] ERROR: Source/WebKit/Shared/Cocoa/ArgumentCodersCocoa.h:39: This { should be at the end of the previous line [whitespace/braces] [4] ERROR: Source/WebCore/Modules/applepay/Payment.h:42: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4] ERROR: Source/WebCore/Modules/applepay/PaymentContact.h:43: Inline functions should not be in classes annotated with WEBCORE_EXPORT. Remove the macro from the class and apply it to each appropriate method, or move the inline function definition out-of-line. [build/webcore_export] [4] ERROR: Source/WebCore/ChangeLog:8: You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible. [changelog/nonewtests] [5] Total errors found: 6 in 20 files If any of these errors are false positives, please file a bug against check-webkit-style.
Andy Estes
Comment 5
2018-11-24 19:14:37 PST
Comment hidden (obsolete)
Created
attachment 355573
[details]
Patch
Andy Estes
Comment 6
2018-11-24 20:48:07 PST
Comment hidden (obsolete)
Created
attachment 355576
[details]
Patch
Andy Estes
Comment 7
2018-11-24 21:04:05 PST
Comment hidden (obsolete)
Created
attachment 355578
[details]
Patch
Andy Estes
Comment 8
2018-11-26 10:17:08 PST
Created
attachment 355649
[details]
Patch
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
Created
attachment 355664
[details]
Patch
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
<
rdar://problem/46254165
>
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