<?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>58788</bug_id>
          
          <creation_ts>2011-04-18 08:07:32 -0700</creation_ts>
          <short_desc>When flushing GrContext in ~PlatformContextSkia be sure correct GL context is set</short_desc>
          <delta_ts>2011-04-19 10:42:00 -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>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brian Salomon">bsalomon</reporter>
          <assigned_to name="Brian Salomon">bsalomon</assigned_to>
          <cc>abarth</cc>
    
    <cc>bsalomon</cc>
    
    <cc>commit-queue</cc>
    
    <cc>eric</cc>
    
    <cc>jamesr</cc>
    
    <cc>kbr</cc>
    
    <cc>reed</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>387726</commentid>
    <comment_count>0</comment_count>
    <who name="Brian Salomon">bsalomon</who>
    <bug_when>2011-04-18 08:07:32 -0700</bug_when>
    <thetext>When flushing GrContext in ~PlatformContextSkia be sure correct GL context is set</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>387735</commentid>
    <comment_count>1</comment_count>
      <attachid>90039</attachid>
    <who name="Brian Salomon">bsalomon</who>
    <bug_when>2011-04-18 08:21:06 -0700</bug_when>
    <thetext>Created attachment 90039
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>387739</commentid>
    <comment_count>2</comment_count>
    <who name="Brian Salomon">bsalomon</who>
    <bug_when>2011-04-18 08:30:43 -0700</bug_when>
    <thetext>This fixes corruption that can occur when changing URLS on the same domain in a tab with the skia gpu flag enabled. The flush can happen into the compositor&apos;s context causing mayhem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>387748</commentid>
    <comment_count>3</comment_count>
      <attachid>90039</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-04-18 08:45:56 -0700</bug_when>
    <thetext>Comment on attachment 90039
Patch

How do we test this?  Why are no tests required? (all changes require testing if possible/feasible).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>387749</commentid>
    <comment_count>4</comment_count>
      <attachid>90039</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-04-18 08:46:21 -0700</bug_when>
    <thetext>Comment on attachment 90039
Patch

Marking r- for now.  Please feel to mark r? again with explanation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>387992</commentid>
    <comment_count>5</comment_count>
      <attachid>90039</attachid>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2011-04-18 13:28:40 -0700</bug_when>
    <thetext>Comment on attachment 90039
Patch

Theoretically this fix should fix failures in pixel layout tests when running with Skia&apos;s GPU backend, correct? (We aren&apos;t running tests in this configuration on bots yet.) If so then we should just go ahead and r+ this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>388011</commentid>
    <comment_count>6</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2011-04-18 13:54:55 -0700</bug_when>
    <thetext>Can you confirm that at least one test progresses with this patch when SKIA_GPU is on and cite that test in the changelog?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>388021</commentid>
    <comment_count>7</comment_count>
    <who name="Brian Salomon">bsalomon</who>
    <bug_when>2011-04-18 14:00:36 -0700</bug_when>
    <thetext>After talking to Vangelis I think I&apos;ll need to add a browser test to exercise this. To test this we have to open a canvas page and then load a different page in the same renderer that uses accelerated compositing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>388096</commentid>
    <comment_count>8</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2011-04-18 15:21:21 -0700</bug_when>
    <thetext>In that case I would like to r+ this patch because we need to get the fix in; we can add a Chromium browser test afterward (and actually can&apos;t add such a test until this fix lands). Eric, is this okay with you?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>388098</commentid>
    <comment_count>9</comment_count>
      <attachid>90039</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-04-18 15:22:33 -0700</bug_when>
    <thetext>Comment on attachment 90039
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=90039&amp;action=review

&gt; Source/WebCore/ChangeLog:8
&gt; +        No new tests required.

This line remains patently false. :)  But if it&apos;s changed to explain how it can&apos;t be tested in WebKit but will be tested in Chrome code, that&apos;s fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>388434</commentid>
    <comment_count>10</comment_count>
      <attachid>90186</attachid>
    <who name="Brian Salomon">bsalomon</who>
    <bug_when>2011-04-19 05:55:19 -0700</bug_when>
    <thetext>Created attachment 90186
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>388435</commentid>
    <comment_count>11</comment_count>
    <who name="Brian Salomon">bsalomon</who>
    <bug_when>2011-04-19 05:56:53 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; (From update of attachment 90039 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=90039&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/ChangeLog:8
&gt; &gt; +        No new tests required.
&gt; 
&gt; This line remains patently false. :)  But if it&apos;s changed to explain how it can&apos;t be tested in WebKit but will be tested in Chrome code, that&apos;s fine.

The new patch has a comment about how to test this in Chrome.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>388492</commentid>
    <comment_count>12</comment_count>
      <attachid>90186</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-04-19 07:18:05 -0700</bug_when>
    <thetext>Comment on attachment 90186
Patch

Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>388544</commentid>
    <comment_count>13</comment_count>
      <attachid>90186</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-04-19 09:25:25 -0700</bug_when>
    <thetext>Comment on attachment 90186
Patch

Clearing flags on attachment: 90186

Committed r84257: &lt;http://trac.webkit.org/changeset/84257&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>388545</commentid>
    <comment_count>14</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-04-19 09:25:30 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>388590</commentid>
    <comment_count>15</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-04-19 10:42:00 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/84257 might have broken Windows 7 Release (Tests)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>90039</attachid>
            <date>2011-04-18 08:21:06 -0700</date>
            <delta_ts>2011-04-19 05:55:15 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-58788-20110418111810.patch</filename>
            <type>text/plain</type>
            <size>1558</size>
            <attacher name="Brian Salomon">bsalomon</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDg0MTQ0KQorKysgU291cmNlL1dlYkNvcm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hLmNwcAkod29ya2luZyBjb3B5KQpAQCAtMjMzLDggKzIzMywxMSBAQCBQ
bGF0Zm9ybUNvbnRleHRTa2lhOjp+UGxhdGZvcm1Db250ZXh0U2tpCiAgICAgaWYgKG1fZ3B1Q2Fu
dmFzKSB7CiAjaWYgRU5BQkxFKFNLSUFfR1BVKQogICAgICAgICAvLyBtYWtlIHN1cmUgZXZlcnl0
aGluZyByZWxhdGVkIHRvIHRoaXMgcGxhdGZvcm0gY29udGV4dCBoYXMgYmVlbiBmbHVzaGVkCi0g
ICAgICAgIGlmICghbV91c2VHUFUpCi0gICAgICAgICAgICBtX2dwdUNhbnZhcy0+Y29udGV4dCgp
LT5nckNvbnRleHQoKS0+Zmx1c2goMCk7CisgICAgICAgIGlmICghbV91c2VHUFUpIHsKKyAgICAg
ICAgICAgIFNoYXJlZEdyYXBoaWNzQ29udGV4dDNEKiBjb250ZXh0ID0gbV9ncHVDYW52YXMtPmNv
bnRleHQoKTsKKyAgICAgICAgICAgIGNvbnRleHQtPm1ha2VDb250ZXh0Q3VycmVudCgpOworICAg
ICAgICAgICAgY29udGV4dC0+Z3JDb250ZXh0KCktPmZsdXNoKDApOworICAgICAgICB9CiAjZW5k
aWYKICAgICAgICAgbV9ncHVDYW52YXMtPmRyYXdpbmdCdWZmZXIoKS0+c2V0V2lsbFB1Ymxpc2hD
YWxsYmFjaygwKTsKICAgICB9Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>90186</attachid>
            <date>2011-04-19 05:55:19 -0700</date>
            <delta_ts>2011-04-19 09:25:25 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-58788-20110419085222.patch</filename>
            <type>text/plain</type>
            <size>1721</size>
            <attacher name="Brian Salomon">bsalomon</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT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JhY2so
MCk7CiAgICAgfQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>