If load the following HTML into OS X Safari and use heap to count the number of HTMLDocuments, you will see the number keeps growing, which indicates HTMLDocuments are not released. <html> <script type="text/javascript"> window.addEventListener('DOMContentLoaded', function () { setTimeout(function() {location.reload();}, 100); for (var k=0; k<2000; k++) { setTimeout(function () { for (var i=0; i<20; i++) { var bubble = document.createElement('img'); bubble.src = "http://www.myfakeserver.com/fake_image.png"; document.getElementById('map_439582365').appendChild(bubble); } }, k*25/10); } }, false); </script> <div id="map_439582365"> </div> </body></html>
rdar://problem/12910603
Created attachment 181811 [details] Also deref the element in dispatchPendingLoadEvent and dispatchPendingErrorEvent if the document was detached.
Comment on attachment 181811 [details] Also deref the element in dispatchPendingLoadEvent and dispatchPendingErrorEvent if the document was detached. Great catch!
<rdar://problem/12910603>
Comment on attachment 181811 [details] Also deref the element in dispatchPendingLoadEvent and dispatchPendingErrorEvent if the document was detached. thanks ap!
Comment on attachment 181811 [details] Also deref the element in dispatchPendingLoadEvent and dispatchPendingErrorEvent if the document was detached. Clearing flags on attachment: 181811 Committed r139209: <http://trac.webkit.org/changeset/139209>
All reviewed patches have been landed. Closing bug.