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

Unified Diff: chrome/browser/ui/webui/devtools_ui.cc

Issue 2566573002: DevTools: Open Elements panel sooner on Inspect Element (Closed)
Patch Set: ShowConsolePanel Created 4 years 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: chrome/browser/ui/webui/devtools_ui.cc
diff --git a/chrome/browser/ui/webui/devtools_ui.cc b/chrome/browser/ui/webui/devtools_ui.cc
index e16afaaa3a624c4a5fe7c6870b71679a5d01e9f6..1ca6f9edcac1f7a192111846b60bd5113c1002c0 100644
--- a/chrome/browser/ui/webui/devtools_ui.cc
+++ b/chrome/browser/ui/webui/devtools_ui.cc
@@ -141,6 +141,10 @@ std::string SanitizeFrontendQueryParam(
if (key == "dockSide" && value == "undocked")
return value;
+ if (key == "panel" &&
+ (value == "elements" || value == "security" || value == "console"))
+ return value;
+
if (key == "remoteBase")
return SanitizeRemoteBase(value);

Powered by Google App Engine
This is Rietveld 408576698