[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 Jan 8 18:22:14 PST 2010


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





--- Comment #6 from Ojan Vafai <ojan at chromium.org>  2010-01-08 18:22:13 PST ---
setSelection (which is reached via the JS call to setBaseAndExtent) can't know
that you're trying to restore the previous selection. In the cases that Wave
cares about (Daniel is on the Wave team), the DOM might be different (e.g.
might have extra spans), but to the user it looks the same.

We could say that setBaseAndExtent should not set
m_lastChangeWasHorizontalExtension to false. That would work for Wave's
use-case, but I can think of use cases where this would break. For example, a
web app the pops up a modal dialog with a text box in it. When the dialog is
closed, it will want to restore the previous selection, but edits in the
dialog's text box might have messed with the m_lastChangeWasHorizontalExtension
state.

In short, I'm not sure how setSelection could know what to do with
m_lastChangeWasHorizontalExtension.

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