[wpt-sync] Sync PR 65044 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=330046
Categories
(Core :: WebVR, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 65044 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/65044
Details from upstream follow.
Mike Wyrzykowski <mwyrzykowski@apple.com> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=330046
WebKit export from bug: WebGPU layer followup for 328936
<pre>
[WebXR] Destroying a layer does not release its graphics resourcesXRCompositionLayer.destroy() drops the texture wrappers it handed out, but the graphics memory behind
the layer stays alive until the layer object itself goes away, which can be much later when the page
still references it.For WebGL, the swapchains only released their GL textures and images in their destructors. Their cleanup
moves into a new WebXRWebGLSwapchain::releaseResources(), which the backing now calls from the new
XRLayerBacking::releaseResources() when the layer is destroyed.For WebGPU, the GPU process kept the compositor textures imported for the layer, its completion event and
its rasterization rate maps, and the device's XR subimage kept wrappers around the same textures. A new
WebGPU::XRProjectionLayer::destroy() is sent to the GPU process as RemoteXRProjectionLayer::Destroy and
drops all of them. The textures are released, not destroyed, because on Cocoa every WebXR layer shares
the compositor's drawable.XRGPUBinding also now rejects destroyed layers with an InvalidStateError, like XRWebGLBinding does.
WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=330046">https://bugs.webkit.org/show_bug.cgi?id=330046</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/325824@main">https://commits.webkit.org/325824@main</a>
</pre>
| Assignee | ||
Updated•12 days ago
|
| Assignee | ||
Comment 1•12 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=122509
| Assignee | ||
Comment 2•11 days ago
|
||
CI Results
Ran 3 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 23 tests
Status Summary
Firefox
OK : 1
FAIL: 3
Chrome
OK : 1
FAIL: 3
Safari
OK : 1
FAIL: 3
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /webxr/layers/idlharness.https.window.html [wpt.fyi]:
SKIP - /webxr/layers/xrCylinderLayer_paramValidation.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrCylinderLayer_textureType.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrEquirectLayer_paramValidation.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrEquirectLayer_textureType.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrGPUProjectionLayer_destroy.https.html [wpt.fyi]:
OK[GitHub],SKIP[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:OK, Safari:OK)- XRGPUBinding.getSubImage() throws InvalidStateError for a destroyed layer:
FAIL(Chrome:FAIL, Safari:FAIL) - XRGPUBinding.getViewSubImage() throws InvalidStateError for a destroyed layer:
FAIL(Chrome:FAIL, Safari:FAIL) - A session keeps rendering with a new WebGPU projection layer after the old one is destroyed:
FAIL(Chrome:FAIL, Safari:FAIL)
- XRGPUBinding.getSubImage() throws InvalidStateError for a destroyed layer:
- /webxr/layers/xrGPUProjectionLayer_ignoreDepthValues.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrLayerInit.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrMediaBinding_createCylinderLayer.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrMediaBinding_createEquirectLayer.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrMediaBinding_createQuadLayer.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrProjectionLayer_ignoreDepthValues.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrProjectionLayer_initialTextureSize.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrProjectionLayer_textureType.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrQuadLayer_textureType.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrSession_updateRenderState.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrSession_updateRenderState_preservesLayers.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrWebGLBinding_constructor.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrWebGLBinding_createCubeLayer.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrWebGLBinding_createCylinderLayer.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrWebGLBinding_createEquirectLayer.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrWebGLBinding_createQuadLayer.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrWebGLBinding_maxLayers.https.html [wpt.fyi]:
SKIP
Tests Disabled in Gecko Infrastructure
- /webxr/layers/idlharness.https.window.html [wpt.fyi]:
SKIP - /webxr/layers/xrCylinderLayer_paramValidation.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrCylinderLayer_textureType.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrEquirectLayer_paramValidation.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrEquirectLayer_textureType.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrGPUProjectionLayer_destroy.https.html [wpt.fyi]:
OK[GitHub],SKIP[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:OK, Safari:OK) - /webxr/layers/xrGPUProjectionLayer_ignoreDepthValues.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrLayerInit.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrMediaBinding_createCylinderLayer.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrMediaBinding_createEquirectLayer.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrMediaBinding_createQuadLayer.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrProjectionLayer_ignoreDepthValues.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrProjectionLayer_initialTextureSize.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrProjectionLayer_textureType.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrQuadLayer_textureType.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrSession_updateRenderState.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrSession_updateRenderState_preservesLayers.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrWebGLBinding_constructor.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrWebGLBinding_createCubeLayer.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrWebGLBinding_createCylinderLayer.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrWebGLBinding_createEquirectLayer.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrWebGLBinding_createQuadLayer.https.html [wpt.fyi]:
SKIP - /webxr/layers/xrWebGLBinding_maxLayers.https.html [wpt.fyi]:
SKIP
Comment 4•9 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/c82b3f573117
https://hg.mozilla.org/mozilla-central/rev/919e4b320890
Description
•