Closed Bug 2087688 Opened 1 month ago Closed 19 days ago

[wpt-sync] Sync PR 64217 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=328655

Categories

(Core :: WebVR, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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

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

Sergio Villar Senin <svillar@igalia.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=328655

WebKit export from bug: [<!---->WebXR]<!----> Render state updates reach the device one frame late

<pre>
[WebXR] Render state updates reach the device one frame late

The code applied the updateRenderState changes at the start of the next
frame in order not to miss the first frame. The problem was that the
data sent to the device with each frame request (active layers, etc...)
is built precisely when the render state is applied.

When a page updates its render state during a frame, the request for the
next frame had therefore already gone out with the old state. The device
only learned about the new state with the request after that, one frame
late, even though the page's own callbacks already saw the new state.

Applying the pending state at the end of the frame, as specs mandate,
makes the next request carry the new state. The existing call is left as
is because it's needed for the cases in which the updateRenderState is
called outside the rAF (like the first frame or a setTimeout);

Added some extra checks to render_state_update WPT test to verify that
the updates happen when they should.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=328655">https://bugs.webkit.org/show_bug.cgi?id=328655</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/324700@main">https://commits.webkit.org/324700@main</a>
</pre>

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Component: web-platform-tests → WebVR
Product: Testing → Core
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Attached file Notable wpt changes —

CI Results

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

Total 166 tests and 6 subtests

Status Summary

Firefox

OK : 1[GitHub] 159[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 140
FAIL : 12[GitHub] 1110[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
ERROR: 7

Chrome

OK : 1
PASS : 10
FAIL : 2

Safari

OK : 1
FAIL : 12

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

(See attachment for full changes)

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

Attachment

General

Created:
Updated:
Size: