<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Modern IDB: Ref-cycles and leaks"
   href="https://bugs.webkit.org/show_bug.cgi?id=154015#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Modern IDB: Ref-cycles and leaks"
   href="https://bugs.webkit.org/show_bug.cgi?id=154015">bug 154015</a>
              from <span class="vcard"><a class="email" href="mailto:beidson&#64;apple.com" title="Brady Eidson &lt;beidson&#64;apple.com&gt;"> <span class="fn">Brady Eidson</span></a>
</span></b>
        <pre>Next in line is IDBDatabase:

It has a couple of refs that come and go during event dispatch, all nicely balanced.

It's initial ref is held as the result of the OpenDBRequest. So as long as the open DB request is cleaned up, we're fine.

In the case of an upgrade needed, it's next ref is held by the version change IDBTransaction.

And, in fact, that ref lasts as long as the transaction object, which is &quot;a very very long time.&quot;

To see if there's anything circular there, I'll now dig in to the transaction lifetime.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>