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

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

Issue 2137773002: [DevTools] Replace the target type with capabilities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 0d134561edf094872a51bd9f15e6f1421e81614d..49694b80b991562d55433cc87d1adecc8054b55f 100644
--- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
+++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
@@ -266,8 +266,8 @@ WebInspector.ConsoleView.prototype = {
targetAdded: function(target)
{
this._viewport.invalidate();
- if (WebInspector.targetManager.targets().length > 1 && WebInspector.targetManager.mainTarget().isPage())
- this._showAllMessagesCheckbox.element.classList.toggle("hidden", false);
+ var hasMultipleCotexts = WebInspector.targetManager.targets(WebInspector.Target.Capability.JS).length > 1;
+ this._showAllMessagesCheckbox.element.classList.toggle("hidden", !hasMultipleCotexts);
},
/**

Powered by Google App Engine
This is Rietveld 408576698