Bug 156275

Summary: Web Inspector: protocol generator should emit an error when 'type' is used instead of '$ref'
Product: WebKit Reporter: Blaze Burg <bburg>
Component: Web InspectorAssignee: Blaze Burg <bburg>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, commit-queue, graouts, joepeck, keith_miller, mark.lam, mattbaker, msaboff, nvasilyev, saam, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 147067    
Attachments:
Description Flags
Proposed Fix none

Blaze Burg
Reported 2016-04-05 20:00:43 PDT
Attachments
Proposed Fix (5.66 KB, patch)
2016-04-07 21:26 PDT, Blaze Burg
no flags
Radar WebKit Bug Importer
Comment 1 2016-04-05 20:01:37 PDT
Blaze Burg
Comment 2 2016-04-06 08:39:28 PDT
It looks like in TypeReference.__init__, we never check whether the type_kind is valid. Then we return it as the fallback if the type_reference (i.e., $ref) is not set.
Blaze Burg
Comment 3 2016-04-07 21:26:44 PDT
Created attachment 275979 [details] Proposed Fix
WebKit Commit Bot
Comment 4 2016-04-07 21:28:44 PDT
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`)
WebKit Commit Bot
Comment 5 2016-04-08 00:13:29 PDT
Comment on attachment 275979 [details] Proposed Fix Clearing flags on attachment: 275979 Committed r199219: <http://trac.webkit.org/changeset/199219>
WebKit Commit Bot
Comment 6 2016-04-08 00:13:33 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.