Bug 299934
| Summary: | [WebXR] Warn developer when accessing XRWebGLLayer framebuffer dimensions before first render | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Dan Glastonbury <djg> |
| Component: | WebXR | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/161708558>
Dan Glastonbury
Pull request: https://github.com/WebKit/WebKit/pull/51612
EWS
Committed 300864@main (227c6a7e9cad): <https://commits.webkit.org/300864@main>
Reviewed commits have been landed. Closing PR #51612 and removing active labels.