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

Unified Diff: chrome/browser/resources/chromeos/login/oobe_dialog.js

Issue 2818633003: ChromeOS OOBE: fix JS crash in oobe-dialog focus behavior. (Closed)
Patch Set: Created 3 years, 8 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/chromeos/login/oobe_dialog.js
diff --git a/chrome/browser/resources/chromeos/login/oobe_dialog.js b/chrome/browser/resources/chromeos/login/oobe_dialog.js
index fc5ad21f78e19a436e2b3bd8ac360143e7c15df5..7dc9d22bc7524ef86de1a794bf04a9dc0516a9e5 100644
--- a/chrome/browser/resources/chromeos/login/oobe_dialog.js
+++ b/chrome/browser/resources/chromeos/login/oobe_dialog.js
@@ -39,7 +39,7 @@ Polymer({
*/
show: function() {
var focusedElements = this.getElementsByClassName('focus-on-show');
- if (focusedElements)
+ if (focusedElements.length > 0)
focusedElements[0].focus();
this.fire('show-dialog');
« 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