+2009-01-02 Darin Adler <darin@apple.com>
+
+ * loader/FrameLoader.cpp:
+ (WebCore::FrameLoader::loadItem): One small thing I forgot in my last check-in.
+ This cuts down on the number of hash table operations during loading.
+
2009-01-02 Dmitry Titov <dimich@chromium.org>
Reviewed and landed by Darin.
void FrameLoader::dispatchWillSendRequest(DocumentLoader* loader, unsigned long identifier, ResourceRequest& request, const ResourceResponse& redirectResponse)
{
+ StringImpl* oldRequestURL = request.url().string().impl();
m_documentLoader->didTellClientAboutLoad(request.url());
+
m_client->dispatchWillSendRequest(loader, identifier, request, redirectResponse);
- m_documentLoader->didTellClientAboutLoad(request.url());
+
+ // If the URL changed, then we want to put that new URL in the "did tell client" set too.
+ if (oldRequestURL != request.url().string().impl())
+ m_documentLoader->didTellClientAboutLoad(request.url());
if (Page* page = m_frame->page())
page->inspectorController()->willSendRequest(loader, identifier, request, redirectResponse);