Bug 218187
Summary: | Web Inspector WebGL canvas debugger is reading uninitialised drawing buffers intentionally | ||
---|---|---|---|
Product: | WebKit | Reporter: | Kimmo Kinnunen <kkinnunen> |
Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | inspector-bugzilla-changes, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Local Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=218186 |
Kimmo Kinnunen
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
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Kimmo Kinnunen
See also bug 218186 where roughly similar problems have resulted in a different hack
Radar WebKit Bug Importer
<rdar://problem/70946992>