Bug 117478
| Summary: | Do not invoke new hover effects or clear existing hover effects on node deletion when cursor is invisible | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
| Component: | UI Events | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | ahmad.saleem792, ap, benjamin, bfulgham, koivisto, simon.fraser, zalan |
| Priority: | P2 | Keywords: | BlinkMergeCandidate |
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Ryosuke Niwa
Consider merging https://chromium.googlesource.com/chromium/blink/+/a7b2ee9c276ebd3512cca22cb9cefacf86deb09a
If the mouse cursor is invisible and the currently
hovered node is deleted from the DOM, then there should
be no new hover effects invoked for any remaining nodes
in the page (i.e., those that happen to become positioned
underneath the last known mouse position as a result of
the deletion). Any existing hover effects for the ancestors
of the deleted node should be preserved.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
I took test cases from Chromium / Blink patch and changed them into JSFiddle:
Test Case - hover-after-dom-delete.html - https://jsfiddle.net/mLpv1g0c/show
Test Case - hover-after-dom-delete-child-invisible-cursor.html - https://jsfiddle.net/ze9bg37x/show
In both cases, all browsers (Safari Technology Preview 152, Chrome Canary 107 and Firefox Nightly 106) behave same and show "PASS".
I am going to mark this as "RESOLVED CONFIGURATION CHANGED", if it is not fixed, please reopen with updated test case. Thanks!