The inspector protocol is based on messages in JSON format. Each message should be a JSON object with a number of properties. InspectorBackendDispatcher is parsing these messages and should be able to detect wrong formatted messages. It has these functionality but no tests for it.
Created attachment 66049 [details] [patch] initial version.
Created attachment 66050 [details] [patch] initial version. Just missed the test.
Comment on attachment 66050 [details] [patch] initial version. Just missed the test. > LayoutTests/inspector/report-protocol-errors.html:34 > + for (var message in messages) Usually we don't use for/in for iterating over array elements.
r66522 = 1547de1beffdb7e673e04ede99e9eaa579928901 (refs/remotes/trunk) M WebCore/ChangeLog M WebCore/inspector/CodeGeneratorInspector.pm M LayoutTests/http/tests/inspector/inspector-test2.js A LayoutTests/inspector/report-protocol-errors-expected.txt A LayoutTests/inspector/report-protocol-errors.html M LayoutTests/ChangeLog r66523 = cb24aad112c9f399a4dbe5fd2f6857d0386723d6 (refs/remotes/trunk)