WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
183898
[GTK] Insert/delete text on a line after multibyte letter mispositions the action
https://bugs.webkit.org/show_bug.cgi?id=183898
Summary
[GTK] Insert/delete text on a line after multibyte letter mispositions the ac...
Milan Crha
Reported
2018-03-22 07:28:21 PDT
This had been reported downstream:
https://bugzilla.gnome.org/show_bug.cgi?id=794408
And I can reproduce it with webkitgtk4-2.18.6-1.fc27.x86_64 too in the MiniBrowser. Steps: a) run MiniBrowser in editor mode: $ /usr/libexec/webkit2gtk-4.0/MiniBrowser --editor-mode b) copy the following line into the MiniBrowser body (the first letter is a multibyte letter, unless I made anything wrong or the browser re-encoded the string, in which case use the string from the downstream bug, with which I've been able to reproduce this) á some text here c) position cursor in the middle of the 'text' word, thus between 'e' and 'x' d1) press the 'A' key Actual: 'te|xt' becomes 'tAe|xt' Expected: 'te|xt' becomes 'teA|xt' d2) press Backspace key Actual: 'te|xt' becomes 'e|xt' Expected: 'te|xt' becomes 't|xt' d3) press Delete key Actual: 'te|xt' becomes 'tx|t' Expected: 'te|xt' becomes 'te|t' Where the '|' is the cursor sign, not a real letter. The more multibyte letters precede the cursor the bigger offset is "used". This looks like a usual "byte-length" versus "char-length" issue to me.
Attachments
Add attachment
proposed patch, testcase, etc.
Milan Crha
Comment 1
2018-03-22 07:49:04 PDT
Hmm, it seems to be fixed in webkit2gtk3-2.20.0-2.fc29.x86_64
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug