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

Unified Diff: third_party/WebKit/Source/devtools/front_end/security/SecurityPanel.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/security/SecurityPanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/security/SecurityPanel.js b/third_party/WebKit/Source/devtools/front_end/security/SecurityPanel.js
index f6d962ec2f02011b2222a51995f649922733f3cd..0932fa7e7787305ef26707fd280db372be4d7a5c 100644
--- a/third_party/WebKit/Source/devtools/front_end/security/SecurityPanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/security/SecurityPanel.js
@@ -16,7 +16,6 @@ WebInspector.SecurityPanel = function()
this._sidebarMainViewElement = new WebInspector.SecurityPanelSidebarTreeElement(WebInspector.UIString("Overview"), this._setVisibleView.bind(this, this._mainView), "security-main-view-sidebar-tree-item", "lock-icon");
this._sidebarTree = new WebInspector.SecurityPanelSidebarTree(this._sidebarMainViewElement, this.showOrigin.bind(this));
this.panelSidebarElement().appendChild(this._sidebarTree.element);
- this.setDefaultFocusedElement(this._sidebarTree.contentElement);
/** @type {!Map<!NetworkAgent.LoaderId, !WebInspector.NetworkRequest>} */
this._lastResponseReceivedForLoaderId = new Map();
@@ -43,7 +42,6 @@ WebInspector.SecurityPanel.Origin;
WebInspector.SecurityPanel.OriginState;
WebInspector.SecurityPanel.prototype = {
-
/**
* @param {!SecurityAgent.SecurityState} securityState
*/
@@ -110,6 +108,14 @@ WebInspector.SecurityPanel.prototype = {
},
/**
+ * @override
+ */
+ focus: function()
+ {
+ this._sidebarTree.focus();
+ },
+
+ /**
* @param {!WebInspector.VBox} view
*/
_setVisibleView: function(view)

Powered by Google App Engine
This is Rietveld 408576698