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

Issue 834323005: Fix tabIndex in chrome://settings/passwords (Closed)

Created:
5 years, 11 months ago by hcarmona
Modified:
5 years, 11 months ago
Reviewers:
James Hawkins, Dan Beam
CC:
chromium-reviews, dbeam+watch-options_chromium.org, gcasto+watchlist_chromium.org, arv+watch_chromium.org, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix tabIndex in chrome://settings/passwords The close button should be tabable when a row has focus because it is not possible to delete a row when the password input has focus by pressing delete. The password field's tabIndex was also not being updated which made it possible to tab to it when the row did not have focus. The focus was not being updated when a row gained focus. This caused the row to appear focused, but focus to remain on the element in the previous row. BUG=449110 Committed: https://crrev.com/3e6632995580e3ef08c27b525d11f65cc5d7c35e Cr-Commit-Position: refs/heads/master@{#311930}

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M chrome/browser/resources/options/password_manager_list.js View 2 chunks +7 lines, -0 lines 4 comments Download

Messages

Total messages: 9 (3 generated)
hcarmona
5 years, 11 months ago (2015-01-15 20:17:38 UTC) #2
James Hawkins
lgtm
5 years, 11 months ago (2015-01-16 17:40:05 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/834323005/1
5 years, 11 months ago (2015-01-16 17:52:17 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 11 months ago (2015-01-16 18:33:57 UTC) #6
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/3e6632995580e3ef08c27b525d11f65cc5d7c35e Cr-Commit-Position: refs/heads/master@{#311930}
5 years, 11 months ago (2015-01-16 18:34:58 UTC) #7
Dan Beam
5 years, 11 months ago (2015-01-22 00:40:00 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/834323005/diff/1/chrome/browser/resources/opt...
File chrome/browser/resources/options/password_manager_list.js (right):

https://codereview.chromium.org/834323005/diff/1/chrome/browser/resources/opt...
chrome/browser/resources/options/password_manager_list.js:73:
passwordInput.tabIndex = -1;
make a

  setFocusable: function(focusable) {
    var tabIndex = focusable ? 0 : -1;
    this.closeButtonElement.tabIndex = this.passwordField = tabIndex;
  },

and reuse from various places

https://codereview.chromium.org/834323005/diff/1/chrome/browser/resources/opt...
chrome/browser/resources/options/password_manager_list.js:108: input.focus();
you should set the tabIndex = 0 before trying to focus().  i'm surprised this
works (if it does).

https://codereview.chromium.org/834323005/diff/1/chrome/browser/resources/opt...
chrome/browser/resources/options/password_manager_list.js:111:
this.closeButtonElement.tabIndex = 0;
nit: arguably:

input.tabIndex = this.closeButtonElement.tabIndex = 0;

https://codereview.chromium.org/834323005/diff/1/chrome/browser/resources/opt...
chrome/browser/resources/options/password_manager_list.js:116:
this.closeButtonElement.tabIndex = -1;
nit: arguably

this.closeButtonElement.tabIndex = input.tabIndex = -1;

Powered by Google App Engine
This is Rietveld 408576698