WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
155389
When generating Objective-C protocol types, getters for objects need to synthesize a new object instance
https://bugs.webkit.org/show_bug.cgi?id=155389
Summary
When generating Objective-C protocol types, getters for objects need to synth...
Blaze Burg
Reported
2016-03-11 23:32:02 PST
The current code does this (for example): - (AutomationPoint *)origin { return (AutomationPoint *)[super objectForKey:@"origin"]; } However, at runtime the class of self is going to be RWIProtocolJSONObject *, not AutomationPoint *, so any subsequent calls to AutomationPoint properties on the return value will fail as the selectors will not be recognized. Instead of doing a C-style pointer cast, we need to create a new AutomationPoint object that's backed by the InspectorObject retrieved from the parent object by key. This requires a new initWithXXX initializer for each object protocol type.
Attachments
Proposed Fix
(29.35 KB, patch)
2016-03-12 00:29 PST
,
Blaze Burg
no flags
Details
Formatted Diff
Diff
Proposed Fix
(47.91 KB, patch)
2016-03-12 00:42 PST
,
Blaze Burg
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2016-03-11 23:33:43 PST
<
rdar://problem/25125821
>
Blaze Burg
Comment 2
2016-03-12 00:29:50 PST
Created
attachment 273819
[details]
Proposed Fix
WebKit Commit Bot
Comment 3
2016-03-12 00:30:50 PST
This patch modifies the inspector protocol generator. Please ensure that you have rebaselined any generator test results (i.e., by running `Tools/Scripts/run-inspector-generator-tests --reset-results`)
Blaze Burg
Comment 4
2016-03-12 00:42:37 PST
Created
attachment 273821
[details]
Proposed Fix
Blaze Burg
Comment 5
2016-03-12 00:43:05 PST
Comment on
attachment 273821
[details]
Proposed Fix Wrong bug#.
WebKit Commit Bot
Comment 6
2016-03-12 19:48:43 PST
Comment on
attachment 273819
[details]
Proposed Fix Clearing flags on attachment: 273819 Committed
r198077
: <
http://trac.webkit.org/changeset/198077
>
WebKit Commit Bot
Comment 7
2016-03-12 19:48:48 PST
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