<?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>218282</bug_id>
          
          <creation_ts>2020-10-28 05:45:12 -0700</creation_ts>
          <short_desc>rendering to an offscreen framebuffer alterates canvas display</short_desc>
          <delta_ts>2020-10-29 01:14:58 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebGL</component>
          <version>Safari 14</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>218177</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>DoNotImportToRadar</keywords>
          <priority>P1</priority>
          <bug_severity>Blocker</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>218177</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter>zebontheweb</reporter>
          <assigned_to name="Kimmo Kinnunen">kkinnunen</assigned_to>
          <cc>dino</cc>
    
    <cc>jdarpinian</cc>
    
    <cc>kbr</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>smoley</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1702281</commentid>
    <comment_count>0</comment_count>
      <attachid>412522</attachid>
    <who name="">zebontheweb</who>
    <bug_when>2020-10-28 05:45:12 -0700</bug_when>
    <thetext>Created attachment 412522
sample reproducing the pb

See attached sample.

1/ create a canvas
2/ create an webgl context 
3/ clear with black color

4/ create an offscreen framebuffer to render to a texture
5/ clear with black color in a setTimeout callback

Result : the canvas switch to transparent

Expected result : the canvas should remain black

Maybe similar to https://bugs.webkit.org/show_bug.cgi?id=218177 or related bugs</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1702383</commentid>
    <comment_count>1</comment_count>
    <who name="Smoley">smoley</who>
    <bug_when>2020-10-28 10:54:15 -0700</bug_when>
    <thetext>I can reproduce this on an iPad running iOS 14 GM, but this appears to be fixed on the iOS 14.2 Beta https://developer.apple.com/news/releases/?id=10132020b

Are you able to reproduce this on the latest beta build as well?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1702386</commentid>
    <comment_count>2</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2020-10-28 11:01:33 -0700</bug_when>
    <thetext>I think this is a duplicate of Bug 218177 which Kimmo just fixed. Kimmo, can you confirm?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1702512</commentid>
    <comment_count>3</comment_count>
    <who name="">zebontheweb</who>
    <bug_when>2020-10-28 15:05:49 -0700</bug_when>
    <thetext>(In reply to Smoley from comment #1)
&gt; I can reproduce this on an iPad running iOS 14 GM, but this appears to be
&gt; fixed on the iOS 14.2 Beta
&gt; https://developer.apple.com/news/releases/?id=10132020b
&gt; 
&gt; Are you able to reproduce this on the latest beta build as well?

I will give it a try on the real scenario failing, give me some time, we have a restricted number of iOS devices. Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1702645</commentid>
    <comment_count>4</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2020-10-29 01:14:58 -0700</bug_when>
    <thetext>Thanks for the report.
With tip of the tree, the canvas is showing black on screen.
Yes, this should be fixed by the fix in bug 218177.

*** This bug has been marked as a duplicate of bug 218177 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>412522</attachid>
            <date>2020-10-28 05:45:12 -0700</date>
            <delta_ts>2020-10-28 05:45:12 -0700</delta_ts>
            <desc>sample reproducing the pb</desc>
            <filename>ipad_sample.html</filename>
            <type>text/html</type>
            <size>2107</size>
            <attacher>zebontheweb</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+DQo8aHRtbD4NCiAgIDxib2R5Pg0KICAgICAgPGNhbnZhcyB3aWR0aCA9
ICI1MDAiIGhlaWdodCA9ICI1MDAiIGlkID0gIm15X0NhbnZhcyI+PC9jYW52YXM+DQoJCQ0KICAg
ICAgPHNjcmlwdD4NCg0KICAgICAgICAgdmFyIGNhbnZhcyA9IGRvY3VtZW50LmdldEVsZW1lbnRC
eUlkKCdteV9DYW52YXMnKTsNCiAgICAgICAgIHZhciBnbCA9IGNhbnZhcy5nZXRDb250ZXh0KCd3
ZWJnbCcpOw0KDQogICAgICAgICAvL2NyZWF0ZSBmcmFtZWJ1ZmZlciBmb3Igb2Zmc2NyZWVuIHJl
bmRlcg0KICAgICAgICAgdmFyIGZyYW1lYnVmZmVyID0gZ2wuY3JlYXRlRnJhbWVidWZmZXIoKTsN
CiAgICAgICAgIGdsLmJpbmRGcmFtZWJ1ZmZlciggZ2wuRlJBTUVCVUZGRVIsIGZyYW1lYnVmZmVy
ICk7DQogICAgICAgICB2YXIgIHRleHR1cmUgPSBnbC5jcmVhdGVUZXh0dXJlKCk7DQogICAgICAg
ICBnbC5iaW5kVGV4dHVyZSggZ2wuVEVYVFVSRV8yRCwgdGV4dHVyZSApOw0KICAgICAgICAgZ2wu
dGV4SW1hZ2UyRCggZ2wuVEVYVFVSRV8yRCwgMCwgZ2wuUkdCQSwgY2FudmFzLndpZHRoLCBjYW52
YXMuaGVpZ2h0LCAwLCBnbC5SR0JBLCBnbC5VTlNJR05FRF9CWVRFLCBudWxsICk7DQogICAgICAg
ICBnbC5mcmFtZWJ1ZmZlclRleHR1cmUyRCggZ2wuRlJBTUVCVUZGRVIsIGdsLkNPTE9SX0FUVEFD
SE1FTlQwLCBnbC5URVhUVVJFXzJELCB0ZXh0dXJlLCAwICk7DQogICAgICAgICANCiAgICAgICAg
IC8vc2ltcGxlIGNsZWFyIG9mIHRoZSBzY3JlZ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jcmVlblJl
bmRlciA9IGZ1bmN0aW9uKCl7DQogICAgICAgICAgICAgICByZW5kZXIoZnJhbWVidWZmZXIpOy8v
IHJlbmRlciBvZmZzY3JlZW4NCiAgICAgICAgICAgICAgIHNldFRpbWVvdXQob2Zmc2NyZWVuUmVu
ZGVyLDUwMCk7DQogICAgICAgICAgICB9DQoNCiAgICAgICAgICAgIHJlcXVlc3RBbmltYXRpb25G
cmFtZShhbmltYXRlKTsNCiAgICAgICAgICAgIHNldFRpbWVvdXQob2Zmc2NyZWVuUmVuZGVyLDUw
MCk7DQoNCiAgICAgICAgIH1lbHNley8vb2Zmc2NyZWVuIHJlbmRlciBtZXNzIHRoZSBzY3JlZW4N
Cg0KICAgICAgICAgICAgdmFyIG9mZnNjcmVlblJlbmRlciA9IGZ1bmN0aW9uKCl7DQogICAgICAg
ICAgICAgICAgICByZW5kZXIoZnJhbWVidWZmZXIpOw0KICAgICAgICAgICAgfQ0KDQogICAgICAg
ICAgICByZW5kZXIoKTsNCiAgICAgICAgICAgIHNldFRpbWVvdXQob2Zmc2NyZWVuUmVuZGVyLDUw
MCk7DQoNCiAgICAgICAgIH0NCiAgICAgIDwvc2NyaXB0Pg0KICAgPC9ib2R5Pg0KPC9odG1sPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>