<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>218187</bug_id>
          
          <creation_ts>2020-10-26 06:44:51 -0700</creation_ts>
          <short_desc>Web Inspector WebGL canvas debugger is reading uninitialised drawing buffers intentionally</short_desc>
          <delta_ts>2020-11-02 05:45:31 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=218186</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kimmo Kinnunen">kkinnunen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>inspector-bugzilla-changes</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1701437</commentid>
    <comment_count>0</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2020-10-26 06:44:51 -0700</bug_when>
    <thetext>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 &quot;rendering results&quot; image
* implement cairo toDataURL or route data through ImageBuffer</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1701439</commentid>
    <comment_count>1</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2020-10-26 06:45:55 -0700</bug_when>
    <thetext>See also bug 218186  where roughly similar problems have resulted in a different hack</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1703500</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-11-02 05:45:31 -0800</bug_when>
    <thetext>&lt;rdar://problem/70946992&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>