Bug 299934

Summary: [WebXR] Warn developer when accessing XRWebGLLayer framebuffer dimensions before first render
Product: WebKit Reporter: Dan Glastonbury <djg>
Component: WebXRAssignee: Dan Glastonbury <djg>
Status: RESOLVED FIXED    
Severity: Normal CC: djg, kkinnunen, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Dan Glastonbury
Reported 2025-09-30 22:35:18 PDT
Add console warnings when developers access framebufferWidth or framebufferHeight properties on XRWebGLLayer before the framebuffer has been properly initialized. This commonly occurs when accessing these properties outside of a requestAnimationFrame callback, where the framebuffer dimensions are not yet available.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-09-30 22:35:25 PDT
Dan Glastonbury
Comment 2 2025-09-30 23:43:59 PDT
EWS
Comment 3 2025-10-01 23:53:28 PDT
Committed 300864@main (227c6a7e9cad): <https://commits.webkit.org/300864@main> Reviewed commits have been landed. Closing PR #51612 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.