RESOLVED FIXED 72096
Web Inspector: DevTools InspectorStubs.js incorrectly converting responses to arguments
https://bugs.webkit.org/show_bug.cgi?id=72096
Summary Web Inspector: DevTools InspectorStubs.js incorrectly converting responses to...
michael lewis
Reported 2011-11-11 00:28:14 PST
Created attachment 114638 [details] Patch to fix this bug I've been working with the WebSocket protocol and noticed that sometimes getBodyContents is broken. I dug into this a little more and noticed that in WebInspectorStubs.js it was just taking the result argument (object) and converting them into an array. Well, objects aren't ordered. The reason this worked most of the times is that most commands have 1 or 0 result arguments. I patched CodeGeneratorInspector.py to generate correct code. Patch is attached. (also posted on chromium http://code.google.com/p/chromium/issues/detail?id=103881)
Attachments
Patch to fix this bug (3.93 KB, patch)
2011-11-11 00:28 PST, michael lewis
no flags
Patch (4.33 KB, patch)
2011-11-11 06:16 PST, Ilya Tikhonovsky
no flags
Patch (5.20 KB, patch)
2011-11-11 06:45 PST, Ilya Tikhonovsky
pfeldman: review+
Ilya Tikhonovsky
Comment 1 2011-11-11 02:29:12 PST
Comment on attachment 114638 [details] Patch to fix this bug View in context: https://bugs.webkit.org/attachment.cgi?id=114638&action=review lgtm > Source/WebCore/inspector/CodeGeneratorInspector.py:1029 > if (this.dumpInspectorTimeStats) { > - var wrappedCallback = this._callbacks[messageObject.id]; > - wrappedCallback.methodName = messageObject.method; > wrappedCallback.sendRequestTime = Date.now(); > } style nits: curly bracers are not required
Ilya Tikhonovsky
Comment 2 2011-11-11 06:16:29 PST
Ilya Tikhonovsky
Comment 3 2011-11-11 06:45:40 PST
Ilya Tikhonovsky
Comment 4 2011-11-11 06:51:12 PST
Note You need to log in before you can comment on or make changes to this bug.