Bug 33912
Summary: | Text selection focus behavior differs between Win32 and MacOS | ||
---|---|---|---|
Product: | WebKit | Reporter: | Brian S Ledbetter <brian+webkit> |
Component: | Text | Assignee: | Nobody <webkit-unassigned> |
Status: | UNCONFIRMED | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Mac (Intel) | ||
OS: | OS X 10.5 |
Brian S Ledbetter
Reproduction:
1) Create page with some text and an iframe.
2) Highlight text selection on parent page.
3) Click into IFrame (any click works, even ones that don't steal focus).
Expected behavior:
Selection becomes inactive but remains selected. Highlight changes to OS "inactive selection" color. Selection is still retrievable programatically.
Expected behavior occurs on latest nightly on Win32 (selection remains, no DOM selection change events are fired, getSelectionAt returns selection).
Actual behavior:
Latest nightly on Mac OS X: selection highlight is removed without firing any DOM selection change events. getSelectionAt returns no selection.
Issues:
Behavior should be consistent across OSes.
If MacOS wants to remove the selection, then when the selection changes, DOM selection change events should at least fire.
Firefox 3.0-nightly, IE7, IE8, and Google Chrome (latest nightly) all match the Expected Behavior listed on all supported platforms.
Have not tested regressions thoroughly but versions back to at least 528 exhibit this behavior.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |