Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Unified Diff: webkit/glue/devtools/js/devtools.js

Issue 150219: DevTools: Move InspectorController message filtering to the injected side. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/glue/devtools/js/inject_dispatch.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/devtools/js/devtools.js
===================================================================
--- webkit/glue/devtools/js/devtools.js (revision 19804)
+++ webkit/glue/devtools/js/devtools.js (working copy)
@@ -151,15 +151,7 @@
* @private
*/
devtools.ToolsAgent.prototype.dispatchOnClient_ = function(message) {
- var messageObj = JSON.parse(message);
- // Filter out messages we don't need here.
- var method = messageObj[0];
- if (method == 'inspectedWindowCleared' ||
- method == 'reset' ||
- method == 'setAttachedWindow') {
- return;
- }
- WebInspector.dispatch.apply(WebInspector, messageObj);
+ WebInspector.dispatch.apply(WebInspector, JSON.parse(message));
};
« no previous file with comments | « no previous file | webkit/glue/devtools/js/inject_dispatch.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698