Closed Bug 2068643 Opened 2 months ago Closed 2 months ago

[wdspec] Unexpected failures for pointer related tests when only async wheel event dispatching is enabled

Categories

(Testing :: web-platform-tests, defect, P2)

defect
Points:
2

Tracking

(firefox-esr115 unaffected, firefox-esr140 unaffected, firefox-esr153 wontfix, firefox155 wontfix, firefox156 wontfix, firefox157 fixed)

RESOLVED FIXED
157 Branch
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-dispatching variant: 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"),

Set release status flags based on info from the regressing bug 1848958

This actually applies to both mouse and touch events.

Summary: [wdspec] Unexpected failures for mouse related tests when only async wheel event dispatching is enabled → [wdspec] Unexpected failures for pointer related tests when only async wheel event dispatching is enabled
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Blocks: 2006404

Blocks my P2 work for enabling async touch events for wpt tests over on bug 2006404.

Severity: -- → S3
Points: --- → 2
Priority: -- → P2
Whiteboard: [webdriver:m21]
Pushed by hskupin@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c1cce1577b52 https://hg.mozilla.org/integration/autoland/rev/5c8e39d73aff [wpt] Document that profile default preferences are not visible to run info. r=jgraham,jdescottes https://github.com/mozilla-firefox/firefox/commit/b73351eb9017 https://hg.mozilla.org/integration/autoland/rev/56ddba6563aa [wpt] Split the "remoteAsyncEvents" run info flag by input type. r=jgraham,jdescottes

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/62526 for changes under testing/web-platform/tests

Whiteboard: [webdriver:m21] → [webdriver:m21], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch

Upstream PR merged by moz-wptsync-bot

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: