Bug 218187 - Web Inspector WebGL canvas debugger is reading uninitialised drawing buffers intentionally
Summary: Web Inspector WebGL canvas debugger is reading uninitialised drawing buffers ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-10-26 06:44 PDT by Kimmo Kinnunen
Modified: 2020-11-02 05:45 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kimmo Kinnunen 2020-10-26 06:44:51 PDT
Web Inspector WebGL canvas debugger is:
* reading uninitialised drawing buffers intentionally 
* displaying at best 3 buffers old content (at worst, seee above)
* is most likely corrupting the toDataURL / snapshot / printing cache bitmap

The problem the inspector hack is trying to solve is:
* need to capture snapshot of synchronously
* need to capture drawing buffer if drawing buffer has been drawn to
* need to capture display buffer if drawing buffer has not been draw to


Fix by:
* introducing a better function to read the canvas content
* implement display buffer read
* not pollute the HTMLCanvasElement "rendering results" image
* implement cairo toDataURL or route data through ImageBuffer
Comment 1 Kimmo Kinnunen 2020-10-26 06:45:55 PDT
See also bug 218186  where roughly similar problems have resulted in a different hack
Comment 2 Radar WebKit Bug Importer 2020-11-02 05:45:31 PST
<rdar://problem/70946992>