Bug 51344

Summary: [RTL] WebKit hangs when moving caret in mixed Bidi text
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, enrica, mitz, xji
Priority: P1    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
demo
none
patch w/ layout test mitz: review+

Ryosuke Niwa
Reported 2010-12-20 12:00:31 PST
Created attachment 77021 [details] demo This is a variant of the bug 49111. Open the attachment and WebKit hangs inside VisiblePosition::rightVisuallyDistinctCandidate: box = nextBox; renderer = box->renderer(); offset = box->caretLeftmostOffset(); if (box->bidiLevel() > level) { do { nextBox = box->nextLeafChild(); } while (nextBox && nextBox->bidiLevel() > level); // we get stuck in this while loop. if (!nextBox || nextBox->bidiLevel() < level) continue; }
Attachments
demo (402 bytes, text/html)
2010-12-20 12:00 PST, Ryosuke Niwa
no flags
patch w/ layout test (4.34 KB, patch)
2010-12-20 19:59 PST, Xiaomei Ji
mitz: review+
Xiaomei Ji
Comment 1 2010-12-20 19:59:55 PST
Created attachment 77076 [details] patch w/ layout test
Xiaomei Ji
Comment 2 2010-12-20 20:13:50 PST
Note You need to log in before you can comment on or make changes to this bug.