Changeset 254675 in webkit
- Timestamp:
- Jan 16, 2020 6:44:19 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r254673 r254675 1 2020-01-16 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK][WPE] Password field doesn't get input method 4 https://bugs.webkit.org/show_bug.cgi?id=34285 5 6 Reviewed by Žan Doberšek. 7 8 Allow input methods in password fields for GTK and WPE ports, since the input methods are notified that the 9 active editable element is a password field. 10 11 * html/PasswordInputType.cpp: 12 (WebCore::PasswordInputType::shouldUseInputMethod const): 13 1 14 2020-01-16 Fujii Hironori <Hironori.Fujii@sony.com> 2 15 -
trunk/Source/WebCore/html/PasswordInputType.cpp
r246490 r254675 65 65 bool PasswordInputType::shouldUseInputMethod() const 66 66 { 67 #if PLATFORM(GTK) || PLATFORM(WPE) 68 // Input methods are enabled for the password field in GTK and WPE ports 69 // because the input methods are notified that the active editable element 70 // is a password field. 71 return true; 72 #else 67 73 // Input methods are disabled for the password field because otherwise 68 74 // anyone can access the underlying password and display it in clear text. 69 75 return false; 76 #endif 70 77 } 71 78 -
trunk/Tools/ChangeLog
r254669 r254675 1 2020-01-16 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK][WPE] Password field doesn't get input method 4 https://bugs.webkit.org/show_bug.cgi?id=34285 5 6 Reviewed by Žan Doberšek. 7 8 Enable the test case for password field. 9 10 * TestWebKitAPI/Tests/WebKitGLib/TestInputMethodContext.cpp: 11 (testWebKitInputMethodContextContentType): 12 1 13 2020-01-16 Cathie Chen <cathiechen@igalia.com> 2 14 -
trunk/Tools/TestWebKitAPI/Tests/WebKitGLib/TestInputMethodContext.cpp
r254122 r254675 899 899 test->unfocusEditableAndWaitUntilInputMethodDisabled(); 900 900 901 #if 0 902 // FIXME: We should enable input methods in password fields too. 903 test->loadHtml("<input id='editable' type='password'>", nullptr); 901 test->loadHtml("<input id='editable' type='password' spellcheck='false'>", nullptr); 904 902 test->waitUntilLoadFinished(); 905 903 test->focusEditableAndWaitUntilInputMethodEnabled(); … … 907 905 g_assert_cmpuint(test->hints(), ==, WEBKIT_INPUT_HINT_NONE); 908 906 test->unfocusEditableAndWaitUntilInputMethodDisabled(); 909 #endif910 907 911 908 test->loadHtml("<div contenteditable id='editable' inputmode='text' spellcheck='false'></div>", nullptr);
Note: See TracChangeset
for help on using the changeset viewer.