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

Unified Diff: chrome/browser/resources/gaia_auth/main.js

Issue 125863003: Fix focus loss on chrome signin page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/gaia_auth/main.js
diff --git a/chrome/browser/resources/gaia_auth/main.js b/chrome/browser/resources/gaia_auth/main.js
index bb349f3bde5d2435a34a4a8878e5ed9e7f0aa1a6..5e4d6dbf0c786c9897716ccdae18e30ef2bbd003 100644
--- a/chrome/browser/resources/gaia_auth/main.js
+++ b/chrome/browser/resources/gaia_auth/main.js
@@ -231,7 +231,11 @@ Authenticator.prototype = {
};
window.parent.postMessage(msg, this.parentPage_);
if (this.inlineMode_) {
- $('gaia-frame').focus();
+ var gaiaFrame = $('gaia-frame');
+ gaiaFrame.focus();
+ gaiaFrame.onblur = function() {
+ gaiaFrame.focus();
xiyuan 2014/01/07 21:49:48 Would this has side effect? e.g. what happens user
guohui 2014/01/07 22:15:02 the only side effect i have observed is that upon
+ };
}
this.loaded_ = 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