Changeset 64725 in webkit
- Timestamp:
- Aug 5, 2010 2:19:24 AM (14 years ago)
- Location:
- trunk/WebKit/qt
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/qt/ChangeLog
r64679 r64725 1 2010-08-05 David Leong <david.leong@nokia.com> 2 3 Reviewed by Simon Hausmann. 4 5 [Qt] Input mode states are not reset after entering a password field 6 https://bugs.webkit.org/show_bug.cgi?id=43530 7 8 Input mode hints are not reset if clicking on password <input> elements then 9 clicking on <textarea> elements 10 11 * WebCoreSupport/EditorClientQt.cpp: 12 (WebCore::EditorClientQt::setInputMethodState): 13 * tests/qwebview/resources/input_types.html: 14 * tests/qwebview/tst_qwebview.cpp: 15 (tst_QWebView::focusInputTypes): 16 17 1 18 2010-08-04 Pierre Rossi <pierre.rossi@nokia.com> 2 19 -
trunk/WebKit/qt/WebCoreSupport/EditorClientQt.cpp
r64120 r64725 597 597 if (webPageClient) { 598 598 #if QT_VERSION >= 0x040600 599 // Make sure to reset input method hint 600 webPageClient->setInputMethodHint(Qt::ImhDialableCharactersOnly, false); 601 webPageClient->setInputMethodHint(Qt::ImhDigitsOnly, false); 602 webPageClient->setInputMethodHint(Qt::ImhEmailCharactersOnly, false); 603 webPageClient->setInputMethodHint(Qt::ImhUrlCharactersOnly, false); 604 webPageClient->setInputMethodHint(Qt::ImhHiddenText, false); 605 599 606 HTMLInputElement* inputElement = 0; 600 607 Frame* frame = m_page->d->page->focusController()->focusedOrMainFrame(); -
trunk/WebKit/qt/tests/qwebview/resources/input_types.html
r60958 r64725 5 5 <input type='number' style='position: absolute; left: 10px; top: 150px; height: 50px; width: 100px;'/><br> 6 6 <input type='email' style='position: absolute; left: 10px; top: 200px; height: 50px; width: 100px;'/><br> 7 <input type='url' style='position: absolute; left: 10px; top: 250px; height: 50px; width: 100px;'/><br>" 7 <input type='url' style='position: absolute; left: 10px; top: 250px; height: 50px; width: 100px;'/><br> 8 <textarea style='position: absolute; left: 10px; top: 310px; height: 50px; width: 100px;' rows="2" cols="20">blah blah blah blah</textarea><br> 8 9 </body></html> -
trunk/WebKit/qt/tests/qwebview/tst_qwebview.cpp
r64120 r64725 265 265 QVERIFY(webView->inputMethodHints() == Qt::ImhNone); 266 266 #endif 267 QVERIFY(webView->testAttribute(Qt::WA_InputMethodEnabled)); 267 268 268 269 // 'password' field 269 270 webView->fireMouseClick(QPoint(20, 60)); 270 271 QVERIFY(webView->inputMethodHints() == Qt::ImhHiddenText); 272 QVERIFY(webView->testAttribute(Qt::WA_InputMethodEnabled)); 271 273 272 274 // 'tel' field 273 275 webView->fireMouseClick(QPoint(20, 110)); 274 276 QVERIFY(webView->inputMethodHints() == Qt::ImhDialableCharactersOnly); 277 QVERIFY(webView->testAttribute(Qt::WA_InputMethodEnabled)); 275 278 276 279 // 'number' field 277 280 webView->fireMouseClick(QPoint(20, 160)); 278 281 QVERIFY(webView->inputMethodHints() == Qt::ImhDigitsOnly); 282 QVERIFY(webView->testAttribute(Qt::WA_InputMethodEnabled)); 279 283 280 284 // 'email' field 281 285 webView->fireMouseClick(QPoint(20, 210)); 282 286 QVERIFY(webView->inputMethodHints() == Qt::ImhEmailCharactersOnly); 287 QVERIFY(webView->testAttribute(Qt::WA_InputMethodEnabled)); 283 288 284 289 // 'url' field 285 290 webView->fireMouseClick(QPoint(20, 260)); 286 291 QVERIFY(webView->inputMethodHints() == Qt::ImhUrlCharactersOnly); 292 QVERIFY(webView->testAttribute(Qt::WA_InputMethodEnabled)); 287 293 288 294 // 'password' field 289 295 webView->fireMouseClick(QPoint(20, 60)); 290 296 QVERIFY(webView->inputMethodHints() == Qt::ImhHiddenText); 297 QVERIFY(webView->testAttribute(Qt::WA_InputMethodEnabled)); 291 298 292 299 // 'text' type … … 298 305 QVERIFY(webView->inputMethodHints() == Qt::ImhNone); 299 306 #endif 307 QVERIFY(webView->testAttribute(Qt::WA_InputMethodEnabled)); 308 309 // 'password' field 310 webView->fireMouseClick(QPoint(20, 60)); 311 QVERIFY(webView->inputMethodHints() == Qt::ImhHiddenText); 312 QVERIFY(webView->testAttribute(Qt::WA_InputMethodEnabled)); 313 314 qWarning("clicking on text area"); 315 // 'text area' field 316 webView->fireMouseClick(QPoint(20, 320)); 317 QVERIFY(webView->inputMethodHints() == Qt::ImhNone); 318 QVERIFY(webView->testAttribute(Qt::WA_InputMethodEnabled)); 300 319 301 320 delete webView;
Note: See TracChangeset
for help on using the changeset viewer.