Closed
Bug 1484371
Opened 7 years ago
Closed 7 years ago
Consider to make *enter/*leave events uncomposed
Categories
(Core :: DOM: Events, enhancement)
Core
DOM: Events
Tracking
()
RESOLVED
FIXED
mozilla63
| Tracking | Status | |
|---|---|---|
| firefox63 | --- | fixed |
People
(Reporter: smaug, Assigned: smaug)
Details
Attachments
(3 files)
|
1.67 KB,
patch
|
Details | Diff | Splinter Review | |
|
6.62 KB,
patch
|
masayuki
:
review+
|
Details | Diff | Splinter Review |
|
6.85 KB,
patch
|
Details | Diff | Splinter Review |
| Assignee | ||
Comment 1•7 years ago
|
||
https://github.com/w3c/uievents/issues/208#issuecomment-413963206 sounds like at least Apple would be ok with this. Trying to get feedback from Google and MS too.
| Assignee | ||
Comment 2•7 years ago
|
||
Based on the github issue, sound like people in general are in favor of the change. I'd rather fix our behavior sooner than later, so that pages like ea.com works with shadow DOM enabled FF.
The test is very simple but enough to cover the change.
remote: Follow the progress of your build on Treeherder:
remote: https://treeherder.mozilla.org/#/jobs?repo=try&revision=a4e3946334ea25b05ef1bda76b091506e5f0ff1f
remote: recorded changegroup in replication log in 0.011s
Assignee: nobody → bugs
Attachment #9002926 -
Flags: review?(masayuki)
Comment 3•7 years ago
|
||
Comment on attachment 9002926 [details] [diff] [review]
composed_enterleave.diff
Review of attachment 9002926 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/events/test/file_bug1484371.html
@@ +24,5 @@
> + return "onpointerenter" in document.body;
> + }
> +
> + function checkEventCounts(expected) {
> + parent.is(mouseEnterCount, expected.mouseEnterCount, "mouseenter event count");
Please make checkEventCounts take prefix string for the parent.is(). E.g., I like "moving on lightDiv: mouseenter event count" instead of jus t"mouseenter event count".
::: dom/events/test/mochitest.ini
@@ +205,5 @@
> [test_bug1447993.html]
> support-files = window_bug1447993.html
> skip-if = toolkit == 'android'
> +[test_bug1484371.html]
> +support-files = file_bug1484371.html
Hmm, I like test_mouse_enter_leave_event_count_on_shadow_host.html or something to explain what this check since this is not Gecko's bug from a point of view of future developers, just conforming to (new) spec. But up to you.
Attachment #9002926 -
Flags: review?(masayuki) → review+
| Assignee | ||
Comment 4•7 years ago
|
||
(would need to update everything on this older laptop to be able to compile Nightly. Will test and land in a moment using another laptop)
Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/971943621f6e
make *enter/*leave events uncomposed, r=masayuki
Comment 6•7 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in
before you can comment on or make changes to this bug.
Description
•