diff options
author | Steve Block <steveblock@google.com> | 2010-09-29 17:32:26 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2010-09-29 17:35:08 +0100 |
commit | 68513a70bcd92384395513322f1b801e7bf9c729 (patch) | |
tree | 161b50f75a5921d61731bb25e730005994fcec85 /WebCore/loader/SubresourceLoader.cpp | |
parent | fd5c6425ce58eb75211be7718d5dee960842a37e (diff) | |
download | external_webkit-68513a70bcd92384395513322f1b801e7bf9c729.zip external_webkit-68513a70bcd92384395513322f1b801e7bf9c729.tar.gz external_webkit-68513a70bcd92384395513322f1b801e7bf9c729.tar.bz2 |
Merge WebKit at r67908: Initial merge by Git
Change-Id: I43a553e7b3299b28cb6ee8aa035ed70fe342b972
Diffstat (limited to 'WebCore/loader/SubresourceLoader.cpp')
-rw-r--r-- | WebCore/loader/SubresourceLoader.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/WebCore/loader/SubresourceLoader.cpp b/WebCore/loader/SubresourceLoader.cpp index a389082..5377382 100644 --- a/WebCore/loader/SubresourceLoader.cpp +++ b/WebCore/loader/SubresourceLoader.cpp @@ -71,9 +71,7 @@ PassRefPtr<SubresourceLoader> SubresourceLoader::create(Frame* frame, Subresourc ResourceRequest newRequest = request; - if (securityCheck == DoSecurityCheck - && SecurityOrigin::restrictAccessToLocal() - && !SecurityOrigin::canDisplay(request.url(), String(), frame->document())) { + if (securityCheck == DoSecurityCheck && !frame->document()->securityOrigin()->canDisplay(request.url())) { FrameLoader::reportLocalLoadFailed(frame, request.url().string()); return 0; } @@ -142,7 +140,7 @@ void SubresourceLoader::didReceiveResponse(const ResourceResponse& r) // After the first multipart section is complete, signal to delegates that this load is "finished" m_documentLoader->subresourceLoaderFinishedLoadingOnePart(this); - didFinishLoadingOnePart(); + didFinishLoadingOnePart(0); } } @@ -170,7 +168,7 @@ void SubresourceLoader::didReceiveCachedMetadata(const char* data, int length) m_client->didReceiveCachedMetadata(this, data, length); } -void SubresourceLoader::didFinishLoading() +void SubresourceLoader::didFinishLoading(double finishTime) { if (cancelled()) return; @@ -187,7 +185,7 @@ void SubresourceLoader::didFinishLoading() if (cancelled()) return; m_documentLoader->removeSubresourceLoader(this); - ResourceLoader::didFinishLoading(); + ResourceLoader::didFinishLoading(finishTime); } void SubresourceLoader::didFail(const ResourceError& error) |