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

Unified Diff: third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js

Issue 2566573002: DevTools: Open Elements panel sooner on Inspect Element (Closed)
Patch Set: Missed one 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: third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js
diff --git a/third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js b/third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js
index 0effa8e05d4d812c2e1acf7532f0179760b23a84..effed5a88a729cb279d090730b43f8d5edd860a6 100644
--- a/third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js
+++ b/third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js
@@ -337,6 +337,12 @@
*/
loadCompleted() {
DevToolsAPI.sendMessageToEmbedder('loadCompleted', [], null);
+ // Support for legacy (<57) frontends.
+ if (window.Runtime && window.Runtime.queryParam) {
+ var panelToOpen = window.Runtime.queryParam('panel');
+ if (panelToOpen)
+ window.DevToolsAPI.showPanel(panelToOpen);
+ }
}
/**
« no previous file with comments | « chrome/browser/ui/webui/devtools_ui.cc ('k') | third_party/WebKit/Source/devtools/front_end/ui/InspectorView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698