Closed Bug 2080016 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63401 - [chromium-bidi] Speed up pointer actions in input.performActions

Categories

(Remote Protocol :: WebDriver BiDi, task, P4)

task

Tracking

(firefox160 fixed)

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 63401 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/63401
Details from upstream follow.

Maksim Sadym <sadym@chromium.org> wrote:

[chromium-bidi] Speed up pointer actions in input.performActions

  • Speed up pointer click and move actions in input.performActions by
    ~3.4x (reducing 1000 clicks from ~16.7s to ~4.9s).
  • Previously, every input.performActions call evaluated
    navigator.platform via CDP, scheduled setTimeout(0) on zero-duration
    ticks, and awaited rAF-aligned CDP mouseMoved commands before sending
    mousePressed, stalling each click on 60Hz VSync (~16.67ms).
  • Lazily evaluate and cache the macOS platform check only for keyDown
    actions, skip setTimeout(0) on zero-duration ticks, and pipeline
    subsequent non-move actions behind zero-duration hover mouseMoved
    commands to flush the renderer event queue immediately.
  • Remove stale SlowTests entries and Chromium-only timeout=long metadata
    for bidi/input/perform_actions WPTs, and update the
    release_actions/queue.py expectation baselines.

Bug: 411434092
Cq-Include-Trybots: luci.chromium.try:linux-webdriver-bidi-rel
Include-Ci-Only-Tests: chromium.linux:Linux Tests|webdriver_wpt_tests
Change-Id: I9317f17c6ab70b96e65b1b1286f42b51929bacbf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8522202
Auto-Submit: Maksim Sadym \<sadym@chromium.org>
Reviewed-by: Nikolay Vitkov \<nvitkov@chromium.org>
Commit-Queue: Nikolay Vitkov \<nvitkov@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1714317}

Component: web-platform-tests → WebDriver BiDi
Product: Testing → Remote Protocol
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 21 tests and 8 subtests

Status Summary

Firefox

OK : 1[GitHub] 21[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 12[GitHub] 643[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 644[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 11[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 12[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview]

Chrome

TIMEOUT: 1

Safari

OK : 1
ERROR : 12

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.