[Webkit-unassigned] [Bug 32605] Regression: Selection anchor + focus swap when arrow keys after setBaseAndExtent

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 19 15:42:32 PDT 2010


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





--- Comment #10 from Ojan Vafai <ojan at chromium.org>  2010-03-19 15:42:31 PST ---
(From update of attachment 51195)
Here's the only way I can think of fixing this without exposing isDirectional
to the web. It's not perfect, but it does avoid exposing more information to
JS.

The advantage is it makes this test-case and the common case work. It breaks
the following case:
1. Select text via the mouse.
2. Save the selection.
3. Do some stuff in your app that clears the selection.
4. Restore the selection.

After step 1, the selection is non-directional. After step 4, the selection is
directional.

While it's not perfect, that's much better than the current state of affairs
that leads to bugs like the ones in this testcase.

The only way to get full selection fidelity would be the first, now obsoleted,
patch. I'm happy with either of these patches.

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