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

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

Issue 2146163002: [DevTools] Remove Console.messagesCleared event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2139543002
Patch Set: rebased on ToT Created 4 years, 5 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 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();

Powered by Google App Engine
This is Rietveld 408576698