RESOLVED FIXED 25491
WebFrame leak when a subframe removes itself
https://bugs.webkit.org/show_bug.cgi?id=25491
Summary WebFrame leak when a subframe removes itself
Darin Adler
Reported 2009-04-30 13:15:10 PDT
Steps to reproduce: 1. Download attached main.html and subframe.html. 2. Open main.html is a debug Safari build. 3. Close it. Results: an alert says that a WebFrame leaked.
Attachments
main document (53 bytes, text/html)
2009-04-30 13:22 PDT, Darin Adler
no flags
subframe (103 bytes, text/html)
2009-04-30 13:23 PDT, Darin Adler
no flags
patch (6.65 KB, patch)
2009-04-30 13:23 PDT, Darin Adler
no flags
Darin Adler
Comment 1 2009-04-30 13:15:33 PDT
Darin Adler
Comment 2 2009-04-30 13:22:55 PDT
Created attachment 29916 [details] main document
Darin Adler
Comment 3 2009-04-30 13:23:07 PDT
Created attachment 29917 [details] subframe
Darin Adler
Comment 4 2009-04-30 13:23:24 PDT
Brady Eidson
Comment 5 2009-04-30 15:59:19 PDT
Comment on attachment 29918 [details] patch As with all FrameLoader voodoo, I'm not 100% sure on this one - but it seems quite safe and reasonable, and fixes the bug. I think it's a shame the FrameLoadDelegate dumping that DRT does doesn't make an effort to dump the error for didFailLoadWithError, but that enhancement is outside the scope of this patch. r+
Darin Adler
Comment 6 2009-04-30 17:07:51 PDT
Darin Adler
Comment 8 2009-05-02 11:51:44 PDT
Comment on attachment 29918 [details] patch Clearing review flag since this caused regression test failures.
Darin Adler
Comment 9 2009-05-02 12:59:31 PDT
Note You need to log in before you can comment on or make changes to this bug.