Crash calling WebContext::clearResourceCaches(InMemoryResourceCachesOnly) before the Web
Process has finished launching. https://bugs.webkit.org/show_bug.cgi?id=56208 Reviewed by Adam Roben. Source/WebKit2: Only send the message if the Web Process is valid. * UIProcess/WebContext.cpp: (WebKit::WebContext::clearResourceCaches): Tools: * TestWebKitAPI/Tests/WebKit2/SendingMessagesToTheWebProcessBeforeItIsValid.cpp: Added. (TestWebKitAPI::TEST): Test that calling WKContextClearResourceCaches works with both options when called before the Web Process is valid. * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Add the new test. * TestWebKitAPI/win/TestWebKitAPI.vcproj: Ditto. git-svn-id: svn://svn.chromium.org/blink/trunk@80884 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment