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

Unified Diff: chrome/browser/resources/options/password_manager_list.js

Issue 834323005: Fix tabIndex in chrome://settings/passwords (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/password_manager_list.js
diff --git a/chrome/browser/resources/options/password_manager_list.js b/chrome/browser/resources/options/password_manager_list.js
index 3282e822db2d29e7bc6c1cdf4cb056b0889a19a6..9c40e98d79070d88b8568a3dbe10b0e16a558d2e 100644
--- a/chrome/browser/resources/options/password_manager_list.js
+++ b/chrome/browser/resources/options/password_manager_list.js
@@ -69,6 +69,8 @@ cr.define('options.passwordManager', function() {
var passwordInput = this.ownerDocument.createElement('input');
passwordInput.type = 'password';
passwordInput.className = 'inactive-password';
+ this.closeButtonElement.tabIndex = -1;
+ passwordInput.tabIndex = -1;
Dan Beam 2015/01/22 00:39:59 make a setFocusable: function(focusable) {
passwordInput.readOnly = true;
passwordInput.value = this.showPasswords_ ? this.password : '********';
passwordInputDiv.appendChild(passwordInput);
@@ -103,10 +105,15 @@ cr.define('options.passwordManager', function() {
return;
if (this.selected) {
+ input.focus();
Dan Beam 2015/01/22 00:39:59 you should set the tabIndex = 0 before trying to f
input.classList.remove('inactive-password');
+ input.tabIndex = 0;
+ this.closeButtonElement.tabIndex = 0;
Dan Beam 2015/01/22 00:39:59 nit: arguably: input.tabIndex = this.closeButtonE
button.hidden = false;
} else {
input.classList.add('inactive-password');
+ input.tabIndex = -1;
+ this.closeButtonElement.tabIndex = -1;
Dan Beam 2015/01/22 00:39:59 nit: arguably this.closeButtonElement.tabIndex =
button.hidden = true;
}
},
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698