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

Unified Diff: third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js

Issue 2366613003: [DevTools] Focus sidebar trees in certain panels by default. (Closed)
Patch Set: Created 4 years, 3 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/resources/ResourcesPanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js b/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js
index 4e8ae9a2eb4eb3970e0b0fe0b1f5b34428cf7595..9dd1a0383fb7e8e01494fca6276ac2b223f4c8e7 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js
@@ -45,7 +45,6 @@ WebInspector.ResourcesPanel = function()
this._sidebarTree.registerRequiredCSS("resources/resourcesSidebar.css");
this._sidebarTree.element.classList.add("filter-all");
this.panelSidebarElement().appendChild(this._sidebarTree.element);
- this.setDefaultFocusedElement(this._sidebarTree.element);
this._applicationTreeElement = this._addSidebarSection(WebInspector.UIString("Application"));
this._manifestTreeElement = new WebInspector.AppManifestTreeElement(this);
@@ -162,6 +161,14 @@ WebInspector.ResourcesPanel.prototype = {
this._resetWithFrames();
},
+ /**
+ * @override
+ */
+ focus: function()
+ {
+ this._sidebarTree.focus();
+ },
+
_initialize: function()
{
this._databaseModel.enable();

Powered by Google App Engine
This is Rietveld 408576698