Bug 254107 - REGRESSION: Incomplete offscreen canvas implementation causing NPEs
Summary: REGRESSION: Incomplete offscreen canvas implementation causing NPEs
Status: RESOLVED DUPLICATE of bug 254071
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: Safari 16
Hardware: iPhone / iPad iOS 16
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-17 22:48 PDT by Nicholas Butko
Modified: 2023-03-19 21:37 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas Butko 2023-03-17 22:48:42 PDT
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.
Comment 1 Alexey Proskuryakov 2023-03-19 21:37:06 PDT

*** This bug has been marked as a duplicate of bug 254071 ***