<?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>58256</bug_id>
          
          <creation_ts>2011-04-11 12:16:00 -0700</creation_ts>
          <short_desc>Ignore context change callbacks when not on the main thread</short_desc>
          <delta_ts>2011-04-11 15:03:51 -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>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>Windows 7</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="Eric Carlson">eric.carlson</reporter>
          <assigned_to name="Eric Carlson">eric.carlson</assigned_to>
          <cc>aroben</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>383361</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2011-04-11 12:16:00 -0700</bug_when>
    <thetext>WKQCA::CAView::contextDidChangeCallback should do nothing when called on a background thread because it triggers WebCore rendering.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>383368</commentid>
    <comment_count>1</comment_count>
      <attachid>89051</attachid>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2011-04-11 12:26:00 -0700</bug_when>
    <thetext>Created attachment 89051
Proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>383427</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-04-11 13:22:23 -0700</bug_when>
    <thetext>It would be nice to have a little more information in the bug and ChangeLog about when this could happen and why it&apos;s OK to ignore the callback in that case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>383502</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2011-04-11 14:11:22 -0700</bug_when>
    <thetext>It is safe to ignore the contextDidChangeCallback callback from background threads because in that case no changes have actually been committed to the context, so there is no chance animations will have started, etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>383507</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-04-11 14:14:26 -0700</bug_when>
    <thetext>Thanks, Eric. To be even more specific, IIRC, we expect to receive this notification on a background thread due to a CAImageQueue being modified. But in that case, as Eric said, there are no real changes to the context; we just need to render again (which WKCACFView will take care of on its own).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>383510</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-04-11 14:15:35 -0700</bug_when>
    <thetext>Eric, I think WebKit2 needs the same fix applied in LayerTreeHostCAWin.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>383542</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2011-04-11 14:38:33 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/83497 for the WK1 part.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>383571</commentid>
    <comment_count>7</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2011-04-11 15:03:26 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/83508 for the WK2 portion.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>89051</attachid>
            <date>2011-04-11 12:26:00 -0700</date>
            <delta_ts>2011-04-11 13:14:54 -0700</delta_ts>
            <desc>Proposed patch</desc>
            <filename>patch_1.txt</filename>
            <type>text/plain</type>
            <size>1516</size>
            <attacher name="Eric Carlson">eric.carlson</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDgzNDc0KQorKysgU291cmNlL1dlYkNvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTUgQEAKKzIwMTEtMDQtMTEgIEVyaWMgQ2Fy
bHNvbiAgPGVyaWMuY2FybHNvbkBhcHBsZS5jb20+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9C
T0RZIChPT1BTISkuCisKKyAgICAgICAgSWdub3JlIGNvbnRleHQgY2hhbmdlIGNhbGxiYWNrcyB3
aGVuIG5vdCBvbiB0aGUgbWFpbiB0aHJlYWQKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5v
cmcvc2hvd19idWcuY2dpP2lkPTU4MjU2CisgICAgICAgIDxyZGFyOi8vcHJvYmxlbS85MjY2MDkw
PgorCisgICAgICAgICogcGxhdGZvcm0vZ3JhcGhpY3MvY2Evd2luL1dLQ0FDRlZpZXdMYXllclRy
ZWVIb3N0LmNwcDoKKyAgICAgICAgKFdlYkNvcmU6OldLQ0FDRlZpZXdMYXllclRyZWVIb3N0Ojpj
b250ZXh0RGlkQ2hhbmdlKTogRG8gbm90aGluZyB3aGVuIG5vdCBjYWxsZWQKKyAgICAgICAgICAg
IG9uIHRoZSBtYWluIHRocmVhZC4KKwogMjAxMS0wNC0xMSAgU2ltb24gRnJhc2VyICA8c2ltb24u
ZnJhc2VyQGFwcGxlLmNvbT4KIAogICAgICAgICBSZXZpZXdlZC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==
</data>
<flag name="review"
          id="81677"
          type_id="1"
          status="+"
          setter="simon.fraser"
    />
          </attachment>
      

    </bug>

</bugzilla>