WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
123586
Add a WKRemoteObject class
https://bugs.webkit.org/show_bug.cgi?id=123586
Summary
Add a WKRemoteObject class
Anders Carlsson
Reported
2013-10-31 13:02:41 PDT
Add a WKRemoteObject class
Attachments
Patch
(15.31 KB, patch)
2013-10-31 13:18 PDT
,
Anders Carlsson
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Anders Carlsson
Comment 1
2013-10-31 13:18:35 PDT
Created
attachment 215669
[details]
Patch
mitz
Comment 2
2013-10-31 13:34:36 PDT
Comment on
attachment 215669
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=215669&action=review
> Source/WebKit2/Shared/API/Cocoa/WKRemoteObject.h:26 > +#import <WebKit2/WKFoundation.h>
I prefer that we use ""-style imports in internal headers such as this one.
> Source/WebKit2/Shared/API/Cocoa/WKRemoteObject.mm:33 > +#if WK_API_ENABLED
I normally put this between the #import blocks.
> Source/WebKit2/Shared/API/Cocoa/WKRemoteObject.mm:54 > + return true;
YES
> Source/WebKit2/Shared/API/Cocoa/WKRemoteObject.mm:56 > + return protocol_conformsToProtocol([_interface protocol], protocol);
I’d write the whole thing in a single line: return [super conformsToProtocol:protocol] || protocol_conformsToProtocol([_interface protocol], protocol); Is this really the optimal order to check these conditions?
> Source/WebKit2/Shared/API/Cocoa/WKRemoteObject.mm:94 > +
I would expect to see overrides of -respondsToSelector:, -isKindOfClass: and -isMemberOfClass: as well.
> Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectRegistry.mm:68 > + return [remoteObject.leakRef() autorelease];
This entire method is not thread-safe :-(
WebKit Commit Bot
Comment 3
2013-10-31 16:54:30 PDT
Comment on
attachment 215669
[details]
Patch Clearing flags on attachment: 215669 Committed
r158407
: <
http://trac.webkit.org/changeset/158407
>
WebKit Commit Bot
Comment 4
2013-10-31 16:54:31 PDT
All reviewed patches have been landed. Closing bug.
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