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

Unified Diff: chrome/browser/resources/history/history.js

Issue 395023002: a11y/options: Fix initial tab focus bug on supervised user history page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test fix Created 6 years, 5 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 | chrome/test/data/webui/history_browsertest.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/history/history.js
diff --git a/chrome/browser/resources/history/history.js b/chrome/browser/resources/history/history.js
index 1941f493bb51c46ca9648833cc6f971f31c97909..7d35211293897859fd0102b1d48c729ae608b336 100644
--- a/chrome/browser/resources/history/history.js
+++ b/chrome/browser/resources/history/history.js
@@ -1703,7 +1703,7 @@ HistoryView.prototype.updateFocusableElements_ = function() {
this.currentVisits_.length > 0) {
var firstVisit = this.currentVisits_[0];
firstVisit.setIsLead(true);
- if (firstVisit.checkBox) firstVisit.checkBox.tabIndex = 0;
+ (firstVisit.checkBox || firstVisit.titleLink).tabIndex = 0;
}
};
« no previous file with comments | « no previous file | chrome/test/data/webui/history_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698