[wdspec] Unexpected failures for pointer related tests when only async wheel event dispatching is enabled
Categories
(Testing :: web-platform-tests, defect, P2)
Tracking
(firefox-esr115 unaffected, firefox-esr140 unaffected, firefox-esr153 wontfix, firefox155 wontfix, firefox156 wontfix, firefox157 fixed)
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | unaffected |
| firefox-esr140 | --- | unaffected |
| firefox-esr153 | --- | wontfix |
| firefox155 | --- | wontfix |
| firefox156 | --- | wontfix |
| firefox157 | --- | fixed |
People
(Reporter: whimboo, Assigned: whimboo)
References
(Blocks 2 open bugs, Regression)
Details
(Keywords: regression, Whiteboard: [webdriver:m21], [wptsync upstream])
Attachments
(2 external files)
Running the following command locally results in test failures like for perform_actions/pointer_mouse.py::test_move_to_position_in_viewport[default value] because the remoteAsyncEvents is set to true because it was enabled for wheel:
mach wpt --webdriver-arg=-vvv --setpref="remote.events.async.wheel.enabled=true" testing/web-platform/tests/webdriver/tests/classic/perform_actions/pointer_mouse.py
remoteAsyncEvents in run_info_extras is computed as the OR of two unrelated
preferences:
"remoteAsyncEvents": (bool_pref("remote.events.async.mouse.enabled") or
bool_pref("remote.events.async.wheel.enabled")),
Enabling remote.events.async.wheel.enabled therefore flips the variable to true even though mouse events are still dispatched in the content process. Every metadata entry using remoteAsyncEvents today is about mouse or wheel behaviour specifically, so an expectation written for one input type is silently applied to the other.
CI does not hit this, because only two configurations exist:
- default: all three prefs off for wdspec, wheel on for everything else
- the
async-event-dispatchingvariant: all three prefs on
The metadata expects a pass because remoteAsyncEvents is true, while the test genuinely fails because mouse events are still dispatched in content. See bug 2049270 for that expectation.
We could replace remoteAsyncEvents with one variable per input type:
"remoteAsyncMouseEvents": bool_pref("remote.events.async.mouse.enabled"),
"remoteAsyncTouchEvents": bool_pref("remote.events.async.touch.enabled"),
"remoteAsyncWheelEvents": bool_pref("remote.events.async.wheel.enabled"),
Comment 1•2 months ago
|
||
Set release status flags based on info from the regressing bug 1848958
Updated•2 months ago
|
| Assignee | ||
Comment 2•2 months ago
|
||
This actually applies to both mouse and touch events.
| Assignee | ||
Comment 3•2 months ago
|
||
| Assignee | ||
Comment 4•2 months ago
|
||
Updated•2 months ago
|
| Assignee | ||
Comment 5•2 months ago
|
||
Blocks my P2 work for enabling async touch events for wpt tests over on bug 2006404.
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/62526 for changes under testing/web-platform/tests
Comment 8•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/5c8e39d73aff
https://hg.mozilla.org/mozilla-central/rev/56ddba6563aa
Upstream PR merged by moz-wptsync-bot
Updated•1 month ago
|
Description
•