Bug 140871

Summary: [Win] Layout Tests failures due to cached page document not matching main frame document
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: cdumez, ddkilzer
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description Brent Fulgham 2015-01-25 11:34:57 PST
The following layout test fails on Windows:

fast/loader/non-deferred-substitute-load.html

Probable cause:

An assertion is firing:

    ASSERT(cachedPage->document() == m_frame.document());

The stack trace looks like:

 	WTF.dll!WTFCrash() Line 321	C++
>	WebKit.dll!WebCore::HistoryController::invalidateCurrentItemCachedPage() Line 248	C++
 	WebKit.dll!WebCore::FrameLoader::receivedMainResourceError(const WebCore::ResourceError & error) Line 2726	C++
 	WebKit.dll!WebCore::DocumentLoader::mainReceivedError(const WebCore::ResourceError & error) Line 267	C++
 	WebKit.dll!WebCore::DocumentLoader::notifyFinished(WebCore::CachedResource * resource) Line 384	C++
 	WebKit.dll!WebCore::CachedResource::checkNotify() Line 296	C++
 	WebKit.dll!WebCore::CachedResource::cancelLoad() Line 333	C++
 	WebKit.dll!WebCore::SubresourceLoader::didCancel(const WebCore::ResourceError & __formal) Line 432	C++
 	WebKit.dll!WebCore::ResourceLoader::cancel(const WebCore::ResourceError & error) Line 449	C++
 	WebKit.dll!WebCore::DocumentLoader::cancelMainResourceLoad(const WebCore::ResourceError & resourceError) Line 1484	C++
 	WebKit.dll!WebCore::DocumentLoader::stopLoading() Line 328	C++
 	WebKit.dll!WebCore::FrameLoader::stopAllLoaders(WebCore::ClearProvisionalItemPolicy clearProvisionalItemPolicy) Line 1616	C++
 	WebKit.dll!WebFrame::stopLoading() Line 709	C++
 	DumpRenderTree.dll!runTest(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & inputLine) Line 1179	C++
 	DumpRenderTree.dll!main(int argc, const char * * argv) Line 1484	C++
 	DumpRenderTree.dll!dllLauncherEntryPoint(int argc, const char * * argv) Line 1514	C++
 	DumpRenderTree.exe!main(int argc, const char * * argv) Line 239	C++
 	[External Code]
Comment 1 Brent Fulgham 2015-02-20 08:59:18 PST
Note also that fast/history/page-cache-clearing.html fails, which might be related.
Comment 2 Brent Fulgham 2015-10-12 12:11:48 PDT
Note that 'fast/history/page-cache-clearing.html' now passes.