[Webkit-unassigned] [Bug 47273] [Qt][S60] Junk text is shown in textbox when text is highlighted
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 14 02:00:33 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=47273
Ankur Baranwal <ankur.baranwal at nokia.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
--- Comment #3 from Ankur Baranwal <ankur.baranwal at nokia.com> 2010-10-14 02:00:33 PST ---
This bug is reproducible using QtTestBrowser.
I debugged this further and found that following piece of code which, it seems, was introduced in Webkit2.1. Whenever control passes through this code, text is getting repeated.
void QWebPagePrivate::inputMethodEvent(QInputMethodEvent *ev)
{
...
...
#if QT_VERSION >= 0x040600
if (hasSelection) {
QString text = (renderTextControl) ? QString(renderTextControl->text()) : QString();
if (preedit.isEmpty() && selection.start + selection.length > 0)
preedit = text;
editor->setComposition(preedit, underlines,
(selection.length < 0) ? selection.start + selection.length : selection.start,
(selection.length < 0) ? selection.start : selection.start + selection.length);
} else
#endif
...
...
}
It seems text is getting appended to older string every time in QString(renderTextControl->text()).
Also, this happens even if we simply click on empty area in the virtual keypad.
This behavior is not seen with the Address bar text field. It happens only within the html text field.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list