Bug 27402 - Page will never finish loading if ResourceHandle::create() fails
Summary: Page will never finish loading if ResourceHandle::create() fails
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-17 18:31 PDT by Grace Kloba
Modified: 2009-07-17 18:31 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grace Kloba 2009-07-17 18:31:34 PDT
The frame is not completed until all the outstanding requests are finished. In loader.cpp load(...), it calls incrementRequestCount(). decrementRequestCount() will be called when a resource is fulled loaded or failed.

In Loader::Host::servePendingRequests(..), SubresourceLoader::create(..) calls into ResourceLoader::load(..). If ResourceHandle::create(..) fails, it still returns true.

If this ever happen, the page will always think that there is outstanding requests.

I don't have a way to reproduce it. But if you can hard code ResourceHandle::start(..) to return false, you can see the bug.

I think the return of ResourceLoader::load(..) should be "m_handle != NULL".