Closed Bug 1526725 Opened 5 years ago Closed 4 years ago

Should we make default of "wheel" (and "DOMMouseScroll", "MozPixelMouseScroll") event listeners on root "passive"?

Categories

(Core :: DOM: Events, enhancement, P3)

65 Branch
enhancement

Tracking

()

RESOLVED FIXED
mozilla73
Tracking Status
firefox73 --- fixed

People

(Reporter: masayuki, Assigned: emilio)

References

(Blocks 1 open bug, )

Details

(Keywords: dev-doc-complete)

Attachments

(3 files)

According to the blog-post, Chrome 73 starts to treat "wheel" and "mousewheel" event listeners on root as passive event listeners by default like touchstart and touchmove. Shouldn't we follow this?

Flags: needinfo?(bugs)

Yeah, I think so.
IIRC also kats was in favor of making the change.

Flags: needinfo?(bugs)

FWIW, I couldn't immediately find any telemetry telling whether this change could improve performance.

Priority: -- → P3
Attached file Test-case

I just found a website (https://www.ashler.design/) which scrolls super-slow in Firefox because of this.

Assignee: nobody → emilio

This turned out to not be the root cause for that broken site, but I wrote the
code so... I enabled it on Nightly only to see if there's fallout, I don't think
we need to ship this in the near term, your call.

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2bbbaccb0d06
Make dom.event.default_to_passive_touch_listeners a static pref. r=smaug
https://hg.mozilla.org/integration/autoland/rev/98bafb894b5d
Make wheel events passive by default on Nightly. r=smaug
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f1654b5e2746
Make dom.event.default_to_passive_touch_listeners a static pref. r=smaug
https://hg.mozilla.org/integration/autoland/rev/dd177138d6d2
Make wheel events passive by default on Nightly. r=smaug
Pushed by emilio@crisal.io:
https://hg.mozilla.org/integration/autoland/rev/bd3462eeb191
followup: Fix a test that's intermittently failing more often.
Regressions: 1594427

Looks like this change is only enabled on nightly, unless there's another bug already fixed to enable it for release builds (in which case it should be linked to this bug for us to find it). Please make sure the bug to enable it by default is marked DDN. Thanks!

Regressions: 1613199
Blocks: 1625778
Blocks: 1626911
Blocks: 1673278
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: