| Index: chrome/browser/chromeos/login/webui_login_view.cc
|
| diff --git a/chrome/browser/chromeos/login/webui_login_view.cc b/chrome/browser/chromeos/login/webui_login_view.cc
|
| index d8d1c981f5bd8b5955856a6e0862474df9a5284a..9bf69a8e098469545b8da09b3958914e1fe9e4cd 100644
|
| --- a/chrome/browser/chromeos/login/webui_login_view.cc
|
| +++ b/chrome/browser/chromeos/login/webui_login_view.cc
|
| @@ -406,10 +406,13 @@ void WebUILoginView::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {
|
| GetFocusManager());
|
|
|
| // Make sure error bubble is cleared on keyboard event. This is needed
|
| - // when the focus is inside an iframe.
|
| - WebUI* web_ui = GetWebUI();
|
| - if (web_ui)
|
| - web_ui->CallJavascriptFunction("cr.ui.Oobe.clearErrors");
|
| + // when the focus is inside an iframe. Only clear on KeyDown to prevent hiding
|
| + // an immediate authentication error (See crbug.com/103643).
|
| + if (event.type == WebKit::WebInputEvent::KeyDown) {
|
| + WebUI* web_ui = GetWebUI();
|
| + if (web_ui)
|
| + web_ui->CallJavascriptFunction("cr.ui.Oobe.clearErrors");
|
| + }
|
| }
|
|
|
| } // namespace chromeos
|
|
|