Skip to content
  • jam@chromium.org's avatar
    WebCore: · 9e5f0f8f
    jam@chromium.org authored
    2009-09-15  John Abd-El-Malek  <jam@chromium.org>
    
            Reviewed by Darin Fisher.
    
            Prevent sleeps in unload handlers.
            https://bugs.webkit.org/show_bug.cgi?id=29193
    
            Test: fast/dom/Window/slow_unload_handler.html
    
            * WebCore.gypi:
            * bindings/v8/DateExtension.cpp: Added.
            (WebCore::DateExtension::DateExtension):
            (WebCore::DateExtension::get):
            (WebCore::DateExtension::setAllowSleep):
            (WebCore::DateExtension::GetNativeFunction):
            (WebCore::DateExtension::weakCallback):
            (WebCore::DateExtension::GiveEnableSleepDetectionFunction):
            (WebCore::DateExtension::OnSleepDetected):
            * bindings/v8/DateExtension.h: Added.
            * bindings/v8/V8AbstractEventListener.cpp:
            (WebCore::V8AbstractEventListener::invokeEventHandler):
            * bindings/v8/V8Proxy.cpp:
            (WebCore::V8Proxy::createNewContext):
            (WebCore::V8Proxy::registerExtensionWithV8):
            (WebCore::V8Proxy::registeredExtensionWithV8):
            * bindings/v8/V8Proxy.h:
    
    
    LayoutTests:
    2009-09-15  John Abd-El-Malek  <jam@chromium.org>
    
            Reviewed by Darin Fisher.
    
            Prevent sleeps in unload handlers.
            https://bugs.webkit.org/show_bug.cgi?id=29193
    
            * fast/dom/Window/resources/slow_unload_handler1.html: Added.
            * fast/dom/Window/slow_unload_handler-expected.txt: Added.
            * fast/dom/Window/slow_unload_handler.html: Added.
            * platform/gtk/Skipped:
            * platform/mac/Skipped:
            * platform/qt/Skipped:
            * platform/win/Skipped:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48612 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    9e5f0f8f