Bug 72861 - Web Inspector: [protocol] Program protocol message validation against schema in Inspector.json
Summary: Web Inspector: [protocol] Program protocol message validation against schema ...
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
Depends on: 72835 74534 75284 76062 76382 76868 77062 77289 77444 77471 82958 83039 83069 83327 83332 83390
Blocks: 74549 74661 74890 74954
  Show dependency treegraph
Reported: 2011-11-20 23:31 PST by Peter Rybin
Modified: 2014-12-13 15:53 PST (History)
11 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Peter Rybin 2011-11-20 23:31:32 PST
This is a meta-bug.

1. Make sure that Web Inspector Backend generates only correct outgoing messages as specified in Inspector.json.
Since messages are 99% generated by C++, there could be a safe compile-time solution (rather than runtime assert): generated message builder. This would guarantee that only correct messages could be constructed.

2. Validate incoming messages against Inspector.json.