Skip to content
  • aa@chromium.org's avatar
    Rework script context creation/release notifications · f9531f1c
    aa@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=67828
    
    Reviewed by Adam Barth.
    
    Source/WebCore:
    
    * bindings/v8/V8DOMWindowShell.cpp:
    (WebCore::V8DOMWindowShell::disposeContextHandles):
    (WebCore::V8DOMWindowShell::initContextIfNeeded):
    * bindings/v8/V8IsolatedContext.cpp:
    (WebCore::V8IsolatedContext::V8IsolatedContext):
    (WebCore::V8IsolatedContext::destroy):
    * bindings/v8/V8IsolatedContext.h:
    * loader/EmptyClients.h:
    (WebCore::EmptyFrameLoaderClient::didCreateScriptContext):
    (WebCore::EmptyFrameLoaderClient::willReleaseScriptContext):
    * loader/FrameLoaderClient.h:
    
    Source/WebKit/chromium:
    
    * public/WebFrameClient.h:
    (WebKit::WebFrameClient::didCreateScriptContext):
    (WebKit::WebFrameClient::didDestroyScriptContext):
    (WebKit::WebFrameClient::willReleaseScriptContext):
    * src/FrameLoaderClientImpl.cpp:
    (WebKit::FrameLoaderClientImpl::didCreateScriptContext):
    (WebKit::FrameLoaderClientImpl::willReleaseScriptContext):
    * src/FrameLoaderClientImpl.h:
    * tests/WebFrameTest.cpp:
    (WebKit::TEST_F):
    (WebKit::ContextLifetimeTestWebFrameClient::Notification::Notification):
    (WebKit::ContextLifetimeTestWebFrameClient::Notification::~Notification):
    (WebKit::ContextLifetimeTestWebFrameClient::Notification::Equals):
    (WebKit::ContextLifetimeTestWebFrameClient::~ContextLifetimeTestWebFrameClient):
    (WebKit::ContextLifetimeTestWebFrameClient::reset):
    (WebKit::ContextLifetimeTestWebFrameClient::didCreateScriptContext):
    (WebKit::ContextLifetimeTestWebFrameClient::willReleaseScriptContext):
    * tests/data/context_notifications_test.html: Added.
    * tests/data/context_notifications_test_frame.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95560 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    f9531f1c