2011-02-03 Mihai Parparita <mihaip@chromium.org>
authormihaip@chromium.org <mihaip@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Feb 2011 00:40:23 +0000 (00:40 +0000)
committermihaip@chromium.org <mihaip@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Feb 2011 00:40:23 +0000 (00:40 +0000)
commit3ef34ff14f5f94f0230c07f657c758c9b53cfcad
treebe6fcc99946183b1cfa661612aa3d9ea863fa6ae
parent213c8039ab056c69b7d2f91c195b37eb553f43c7
2011-02-03  Mihai Parparita  <mihaip@chromium.org>

        Reviewed by Alexey Proskuryakov.

        REGRESSION (r77355): Page cache layout tests crash
        https://bugs.webkit.org/show_bug.cgi?id=53648

        Add test that calls setTimeout during a pagehide event handler (the
        timeout should not fire while the document is in the page cache).

        Skipped for Chromium since it doesn't use the page cache.

        * fast/events/pagehide-timeout-expected.txt: Added.
        * fast/events/pagehide-timeout.html: Added.
        * fast/events/resources/pagehide-timeout-go-back.html: Added.
        * platform/chromium/test_expectations.txt:
2011-02-03  Mihai Parparita  <mihaip@chromium.org>

        Reviewed by Alexey Proskuryakov.

        REGRESSION (r77355): Page cache layout tests crash
        https://bugs.webkit.org/show_bug.cgi?id=53648

        Test: fast/events/pagehide-timeout.html

        Suspend active DOM objects after all pagehide event handlers have run,
        otherwise it's possible for them to create more objects that weren't
        getting suspended.

        * history/CachedFrame.cpp:
        (WebCore::CachedFrame::CachedFrame):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77559 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/events/pagehide-timeout-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/pagehide-timeout.html [new file with mode: 0644]
LayoutTests/fast/events/resources/pagehide-timeout-go-back.html [new file with mode: 0644]
LayoutTests/platform/chromium/test_expectations.txt
Source/WebCore/ChangeLog
Source/WebCore/history/CachedFrame.cpp