2006-06-26 Anders Carlsson <acarlsson@apple.com>
authorandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Jun 2006 21:26:43 +0000 (21:26 +0000)
committerandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Jun 2006 21:26:43 +0000 (21:26 +0000)
commit0f8e4ebf9c8382b67f80d2433029b1f65bb13520
treedf8ec216fc9d4f6b72a70daddbe957aa15cc1f1d
parent6ec3f31e5079fa0ac61bbbf26e83135ea073e389
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
WebCore/ChangeLog
WebCore/page/Frame.cpp
WebCore/page/Frame.h
WebCore/page/Page.cpp