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

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: Compatibility 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..94a2aeb01541b3cc27fe78269ad3eae8fa15f601 100644
--- a/third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js
+++ b/third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js
@@ -1208,6 +1208,13 @@
INVALID_MODIFICATION_ERR: DOMException.INVALID_MODIFICATION_ERR,
NOT_READABLE_ERR: 0 // No matching DOMException, so code will be 0.
});
+
+ // Support for legacy (<57) frontends.
+ if (window.Runtime && window.Runtime.queryParam) {
+ var panelToOpen = window.Runtime.queryParam('panel');
+ if (panelToOpen)
+ window.DevToolsAPI.showPanel(panelToOpen);
+ }
}
function windowLoaded() {

Powered by Google App Engine
This is Rietveld 408576698