Bug 72861
| Summary: | Web Inspector: [protocol] Program protocol message validation against schema in Inspector.json | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Peter Rybin <peter.rybin> |
| Component: | Web Inspector (Deprecated) | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | apavlov, burg, bweinstein, joepeck, keishi, loislo, peter.rybin, pfeldman, pmuellr, rik, yurys |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
| Bug Depends on: | 72835, 74534, 75284, 76062, 76382, 76868, 77062, 77289, 77444, 77471, 82958, 83039, 83069, 83327, 83332, 83390 | ||
| Bug Blocks: | 74549, 74661, 74890, 74954 | ||
Peter Rybin
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |