2006-06-26 Anders Carlsson <acarlsson@apple.com>
Reviewed by Darin.
http://bugzilla.opendarwin.org/show_bug.cgi?id=9031
REGRESSION: Crash when closing tabs on newegg.com
* page/Frame.cpp:
(WebCore::Frame::pageDestroyed):
* page/Frame.h:
Add new method which is invoked when the frame's page has been destroyed.
Currently this function disassociates the JS Window object with the frame,
stopping any running JS timers.
* page/Page.cpp:
(WebCore::Page::~Page):
Call pageDestroyed on all frames.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15048
268f45cc-cd09-0410-ab3c-
d52691b4dbfc