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 49694b80b991562d55433cc87d1adecc8054b55f..bce3137a0590d577751216f2ba24aa036a909f62 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js |
+++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js |
@@ -150,7 +150,6 @@ WebInspector.ConsoleView = function() |
this._registerWithMessageSink(); |
WebInspector.targetManager.observeTargets(this); |
- WebInspector.targetManager.addEventListener(WebInspector.TargetManager.Events.MainFrameNavigated, this._onMainFrameNavigated, this); |
this._initConsoleMessages(); |
@@ -179,17 +178,6 @@ WebInspector.ConsoleView.prototype = { |
this._prompt.setAddCompletionsFromHistory(this._consoleHistoryAutocompleteSetting.get()); |
}, |
- /** |
- * @param {!WebInspector.Event} event |
- */ |
- _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)); |
- }, |
- |
_initConsoleMessages: function() |
{ |
var mainTarget = WebInspector.targetManager.mainTarget(); |