diff options
author | Grace Kloba <klobag@google.com> | 2010-06-23 16:57:41 -0700 |
---|---|---|
committer | Grace Kloba <klobag@google.com> | 2010-06-23 16:57:41 -0700 |
commit | bb37fd6d72e3ef13721bfb25c5eaa50f86c5322a (patch) | |
tree | 23a7a90265837922bd1ac49eb0241187009d8831 /WebKit | |
parent | 25fc164b1f2d0071cbc4210174198cf537ac7a0f (diff) | |
download | external_webkit-bb37fd6d72e3ef13721bfb25c5eaa50f86c5322a.zip external_webkit-bb37fd6d72e3ef13721bfb25c5eaa50f86c5322a.tar.gz external_webkit-bb37fd6d72e3ef13721bfb25c5eaa50f86c5322a.tar.bz2 |
Check "email" input as some sites use it as the username.
Fix http://b/issue?id=2792508
Diffstat (limited to 'WebKit')
-rw-r--r-- | WebKit/android/jni/WebCoreFrameBridge.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WebKit/android/jni/WebCoreFrameBridge.cpp b/WebKit/android/jni/WebCoreFrameBridge.cpp index e375e46..87ee07b 100644 --- a/WebKit/android/jni/WebCoreFrameBridge.cpp +++ b/WebKit/android/jni/WebCoreFrameBridge.cpp @@ -1491,7 +1491,7 @@ static jobjectArray GetUsernamePassword(JNIEnv *env, jobject obj) continue; if (input->inputType() == WebCore::HTMLInputElement::PASSWORD) password = input->value(); - else if (input->inputType() == WebCore::HTMLInputElement::TEXT) + else if (input->inputType() == WebCore::HTMLInputElement::TEXT || input->inputType() == WebCore::HTMLInputElement::EMAIL) username = input->value(); if (!username.isNull() && !password.isNull()) found = true; @@ -1537,7 +1537,7 @@ static void SetUsernamePassword(JNIEnv *env, jobject obj, continue; if (input->inputType() == WebCore::HTMLInputElement::PASSWORD) passwordEle = input; - else if (input->inputType() == WebCore::HTMLInputElement::TEXT) + else if (input->inputType() == WebCore::HTMLInputElement::TEXT || input->inputType() == WebCore::HTMLInputElement::EMAIL) usernameEle = input; if (usernameEle != NULL && passwordEle != NULL) found = true; |