[Webkit-unassigned] [Bug 254107] New: REGRESSION: Incomplete offscreen canvas implementation causing NPEs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 17 22:48:42 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=254107

            Bug ID: 254107
           Summary: REGRESSION: Incomplete offscreen canvas implementation
                    causing NPEs
           Product: WebKit
           Version: Safari 16
          Hardware: iPhone / iPad
                OS: iOS 16
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebGL
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: nb at 8thwall.com
                CC: dino at apple.com, kbr at google.com, kkinnunen at apple.com

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230318/9cc0a353/attachment-0001.htm>


More information about the webkit-unassigned mailing list