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

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: comment added 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..729c00c149a03dc058ac83630f3b7b9f71c111d2 100644
--- a/chrome/browser/resources/gaia_auth/main.js
+++ b/chrome/browser/resources/gaia_auth/main.js
@@ -231,7 +231,13 @@ Authenticator.prototype = {
};
window.parent.postMessage(msg, this.parentPage_);
if (this.inlineMode_) {
- $('gaia-frame').focus();
+ // TODO(guohui): temporary workaround until webview team fixes the focus
+ // on their side.
+ var gaiaFrame = $('gaia-frame');
+ gaiaFrame.focus();
+ gaiaFrame.onblur = function() {
+ gaiaFrame.focus();
+ };
}
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