<?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>151507</bug_id>
          
          <creation_ts>2015-11-20 12:23:44 -0800</creation_ts>
          <short_desc>Modern IDB: IDBTransaction::hasPendingActivity() was wrong, leading to premature GC of the wrapper</short_desc>
          <delta_ts>2015-12-08 16:08:45 -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>WebCore Misc.</component>
          <version>Safari 9</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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="Brady Eidson">beidson</reporter>
          <assigned_to name="Brady Eidson">beidson</assigned_to>
          <cc>ryanhaddad</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1143732</commentid>
    <comment_count>0</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2015-11-20 12:23:44 -0800</bug_when>
    <thetext>Modern IDB: IDBTransaction::hasPendingActivity() was wrong, leading to premature GC of the wrapper

Since the JS wrapper for an IDBTransaction might have been GC&apos;ed before the transaction was done, javascript event callbacks to the transaction would fail.

This would stall many tests, which would fail with a timeout.

Because it&apos;s GC and therefore timing related, it showed up as flakiness.

Known cases:
https://bugs.webkit.org/show_bug.cgi?id=151219
https://bugs.webkit.org/show_bug.cgi?id=151364
https://bugs.webkit.org/show_bug.cgi?id=151389
https://bugs.webkit.org/show_bug.cgi?id=151448

However, the bug was fixed in https://trac.webkit.org/changeset/192687

So I suspect that all of these tests will un-flake going forward.

I&apos;ll be closing all of those bugs as dupes of this one, and then once we&apos;re sure they&apos;ve unflaked we can revert the TestExpectations changes made in each of those bugs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1143735</commentid>
    <comment_count>1</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2015-11-20 12:24:26 -0800</bug_when>
    <thetext>*** Bug 151219 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1143737</commentid>
    <comment_count>2</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2015-11-20 12:24:29 -0800</bug_when>
    <thetext>*** Bug 151364 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1143739</commentid>
    <comment_count>3</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2015-11-20 12:24:32 -0800</bug_when>
    <thetext>*** Bug 151389 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1143741</commentid>
    <comment_count>4</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2015-11-20 12:24:36 -0800</bug_when>
    <thetext>*** Bug 151448 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1147510</commentid>
    <comment_count>5</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2015-12-08 16:02:26 -0800</bug_when>
    <thetext>(In reply to comment #0)
&gt; Known cases:
&gt; https://bugs.webkit.org/show_bug.cgi?id=151219
&gt; https://bugs.webkit.org/show_bug.cgi?id=151364
&gt; https://bugs.webkit.org/show_bug.cgi?id=151389
&gt; https://bugs.webkit.org/show_bug.cgi?id=151448
&gt; 
&gt; However, the bug was fixed in https://trac.webkit.org/changeset/192687

All of the tests marked flaky in those 4 bugs have unflaked since 192687.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1147513</commentid>
    <comment_count>6</comment_count>
      <attachid>266950</attachid>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2015-12-08 16:04:34 -0800</bug_when>
    <thetext>Created attachment 266950
Patch v1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1147517</commentid>
    <comment_count>7</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2015-12-08 16:08:45 -0800</bug_when>
    <thetext>https://trac.webkit.org/changeset/193792</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>266950</attachid>
            <date>2015-12-08 16:04:34 -0800</date>
            <delta_ts>2015-12-08 16:06:56 -0800</delta_ts>
            <desc>Patch v1</desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <size>1893</size>
            <attacher name="Brady Eidson">beidson</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0xheW91dFRlc3RzL0NoYW5nZUxvZyBiL0xheW91dFRlc3RzL0NoYW5nZUxv
ZwppbmRleCAwMTE3YTE2Li45YzUzOWE5IDEwMDY0NAotLS0gYS9MYXlvdXRUZXN0cy9DaGFuZ2VM
b2cKKysrIGIvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCkBAIC0xLDUgKzEsMTggQEAKIDIwMTUtMTIt
MDggIEJyYWR5IEVpZHNvbiAgPGJlaWRzb25AYXBwbGUuY29tPgogCisgICAgICAgIE1vZGVybiBJ
REI6IElEQlRyYW5zYWN0aW9uOjpoYXNQZW5kaW5nQWN0aXZpdHkoKSB3YXMgd3JvbmcsIGxlYWRp
bmcgdG8gcHJlbWF0dXJlIEdDIG9mIHRoZSB3cmFwcGVyLgorICAgICAgICBodHRwczovL2J1Z3Mu
d2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTUxNTA3CisKKyAgICAgICAgUmV2aWV3ZWQgYnkg
Tk9CT0RZIChPT1BTISkuCisKKyAgICA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FbENhcGl0YW4td2sxIG9ubHkuCiBbIEVsQ2FwaXRhbisgXSBm
YXN0L3JlcGxhY2VkL3JlcGxhY2VkLWJyZWFraW5nLmh0bWwgWyBGYWlsdXJlIF0KIAotd2Via2l0
Lm9yZy9iLzE1MTIxOSBzdG9yYWdlL2luZGV4ZWRkYi9tb2Rlcm4vaWRiaW5kZXgtcHJvcGVydGll
cy1iYXNpYy5odG1sIFsgUGFzcyBUaW1lb3V0IF0KLQotd2Via2l0Lm9yZy9iLzE1MTM2NCBzdG9y
YWdlL2luZGV4ZWRkYi9tb2Rlcm4vZ2V0LWluZGV4LWZhaWx1cmVzLmh0bWwgWyBQYXNzIFRpbWVv
dXQgXQotCi13ZWJraXQub3JnL2IvMTUxMzg5IHN0b3JhZ2UvaW5kZXhlZGRiL21vZGVybi9hYm9y
dGVkLXB1dC5odG1sIFsgUGFzcyBUaW1lb3V0IF0KLQotd2Via2l0Lm9yZy9iLzE1MTQ0OCBzdG9y
YWdlL2luZGV4ZWRkYi9tb2Rlcm4vY3Vyc29yLTIuaHRtbCBbIFBhc3MgVGltZW91dCBdCi13ZWJr
aXQub3JnL2IvMTUxNDQ4IHN0b3JhZ2UvaW5kZXhlZGRiL21vZGVybi9jdXJzb3ItMy5odG1sIFsg
UGFzcyBUaW1lb3V0IF0KLXdlYmtpdC5vcmcvYi8xNTE0NDggc3RvcmFnZS9pbmRleGVkZGIvbW9k
ZXJuL2N1cnNvci00Lmh0bWwgWyBQYXNzIFRpbWVvdXQgXQotCiAjIyMgRU5EIE9GICgyKSBGYWls
dXJlcyB3aXRob3V0IGJ1ZyByZXBvcnRzCiAjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj
IyMjIyMjIyMjCiAK
</data>
<flag name="review"
          id="291976"
          type_id="1"
          status="+"
          setter="bdakin"
    />
          </attachment>
      

    </bug>

</bugzilla>