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

Unified Diff: webkit/glue/devtools/js/inject_dispatch.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 | « webkit/glue/devtools/js/devtools.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/devtools/js/inject_dispatch.js
===================================================================
--- webkit/glue/devtools/js/inject_dispatch.js (revision 19804)
+++ webkit/glue/devtools/js/inject_dispatch.js (working copy)
@@ -47,6 +47,13 @@
for (var i = 2; i < args.length; ++i) {
args[i] = devtools$$obj.wrapConsoleObject(args[i]);
}
+ } else if (method == 'inspectedWindowCleared' ||
+ method == 'reset' ||
+ method == 'setAttachedWindow') {
+ // Filter out messages we don't need here.
+ // We do it on the sender side since they may have non-serializable
+ // parameters.
+ return;
}
var call = JSON.stringify(args);
DevToolsAgentHost.dispatch(call);
« no previous file with comments | « webkit/glue/devtools/js/devtools.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698