[Webkit-unassigned] [Bug 74585] Crash when navigating with arrow key into empty anchor block with padding

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 30 11:22:10 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=74585





--- Comment #4 from Daniel Jalkut <jalkut at red-sweater.com>  2011-12-30 11:22:10 PST ---
Created an attachment (id=120807)
 --> (https://bugs.webkit.org/attachment.cgi?id=120807&action=review)
Fix and manual test to prevent crashing when navigating into an empty anchor

I decided I could offer a patch that at least alleviates the crashing nature of the bug. With the attached patch, the closestLeafChild... methods in RootInlineBox are allowed to return 0, and the callers (only two I could find) are now expected to handle this situation gracefully.

I feel that ideally the behavior when navigating into this empty anchor would be to place the cursor where typing would change the innerHTML of the anchor from void to something. But I don't feel qualified to develop a patch achieving this yet.

I hope you will consider the patch as-is since it will at least change the behavior from one where WebKit crashes every time, to one where the behavior is merely a little frustrating (the cursor navigates as far in the adjacent box as possible, without entering the empty anchor).

-- 
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