Bug 254107
Summary: | REGRESSION: Incomplete offscreen canvas implementation causing NPEs | ||
---|---|---|---|
Product: | WebKit | Reporter: | Nicholas Butko <nb> |
Component: | WebGL | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | dino, kbr, kkinnunen |
Priority: | P2 | ||
Version: | Safari 16 | ||
Hardware: | iPhone / iPad | ||
OS: | iOS 16 |
Nicholas Butko
Code that requests WebGL contexts from Offscreen canvas when available is crashing on iOS 16.4 beta
Code of the form:
```
const canvas = window.OffscreenCanvas ? new OffscreenCanvas(0, 0) : document.createElement('canvas')
const ctx = canvas.getContext('webgl2') || canvas.getContext('webgl')
```
is leading to downstream errors in production sites due to ctx being null.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
*** This bug has been marked as a duplicate of bug 254071 ***