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

Unified Diff: third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js

Issue 2035653006: [DevTools] Move Console to v8 inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: improved api a bit Created 4 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
Index: third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
index e893a975e16b82d96f9783b4443754cad7cd0f89..79457d97b96b8dede3d139c923c36078712fe23c 100644
--- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
+++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
@@ -184,6 +184,8 @@ WebInspector.ConsoleView.prototype = {
*/
_onMainFrameNavigated: function(event)
{
+ if (!WebInspector.moduleSetting("preserveConsoleLog").get())
+ return;
var frame = /** @type {!WebInspector.ResourceTreeFrame} */(event.data);
WebInspector.console.log(WebInspector.UIString("Navigated to %s", frame.url));
},

Powered by Google App Engine
This is Rietveld 408576698