NEW 56647
Resource load delegates invoked too early
https://bugs.webkit.org/show_bug.cgi?id=56647
Summary Resource load delegates invoked too early
Antti Koivisto
Reported 2011-03-18 08:27:31 PDT
ResourceLoadScheduler constructs SubresourceLoader object when it learns about a new resource load. SubresourceLoader::create() calls init() which invokes the delegates. This means that delegates may be invoked well before the load actually starts, making clients show wrong information. They also get invoked even when the ResourceLoadScheduler is suspended.
Attachments
Alexey Proskuryakov
Comment 1 2011-03-18 09:08:52 PDT
I'm wondering if this is the reason for bug 53828.
Nate Chapin
Comment 2 2011-03-18 09:42:43 PDT
See also http://trac.webkit.org/changeset/74453, which made the case for calling willSendRequest() in init(). It looks like either clients show wrong information because of willSendRequest() being called before scheduling, or we have to schedule based on dubious information because willSendRequest() hasn't been given a chance to modify the ResourceRequest.
Note You need to log in before you can comment on or make changes to this bug.