Changeset 196089 in webkit
- Timestamp:
- Feb 3, 2016 4:00:24 PM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r196088 r196089 1 2016-02-03 Jer Noble <jer.noble@apple.com> 2 3 [Win] Pass entire request (rather than just URL) to clients of WebCoreAVCFResourceLoader 4 https://bugs.webkit.org/show_bug.cgi?id=153653 5 6 Reviewed by Brent Fulgham. 7 8 This will allow those clients to see the byte-range request ("Range:") header and respond 9 appropriately. 10 11 * platform/graphics/avfoundation/cf/WebCoreAVCFResourceLoader.cpp: 12 (WebCore::WebCoreAVCFResourceLoader::startLoading): 13 1 14 2016-02-03 Jer Noble <jer.noble@apple.com> 2 15 -
trunk/Source/WebCore/platform/graphics/avfoundation/cf/WebCoreAVCFResourceLoader.cpp
r195816 r196089 70 70 71 71 RetainPtr<CFURLRequestRef> urlRequest = AVCFAssetResourceLoadingRequestGetURLRequest(m_avRequest.get()); 72 URL requestURL = CFURLRequestGetURL(urlRequest.get());73 72 74 73 // ContentSecurityPolicyImposition::DoPolicyCheck is a placeholder value. It does not affect the request since Content Security Policy does not apply to raw resources. 75 CachedResourceRequest request(ResourceRequest( requestURL), ResourceLoaderOptions(SendCallbacks, DoNotSniffContent, BufferData, DoNotAllowStoredCredentials, DoNotAskClientForCrossOriginCredentials, ClientDidNotRequestCredentials, DoSecurityCheck, UseDefaultOriginRestrictionsForType, DoNotIncludeCertificateInfo, ContentSecurityPolicyImposition::DoPolicyCheck, DefersLoadingPolicy::AllowDefersLoading, CachingPolicy::DisallowCaching));74 CachedResourceRequest request(ResourceRequest(urlRequest.get()), ResourceLoaderOptions(SendCallbacks, DoNotSniffContent, BufferData, DoNotAllowStoredCredentials, DoNotAskClientForCrossOriginCredentials, ClientDidNotRequestCredentials, DoSecurityCheck, UseDefaultOriginRestrictionsForType, DoNotIncludeCertificateInfo, ContentSecurityPolicyImposition::DoPolicyCheck, DefersLoadingPolicy::AllowDefersLoading, CachingPolicy::DisallowCaching)); 76 75 77 76 request.mutableResourceRequest().setPriority(ResourceLoadPriority::Low); … … 81 80 m_resource->addClient(this); 82 81 else { 83 LOG_ERROR("Failed to start load for media at url %s", requestURL.string().ascii().data());82 LOG_ERROR("Failed to start load for media at url %s", URL(CFURLRequestGetURL(urlRequest.get())).string().ascii().data()); 84 83 RetainPtr<CFErrorRef> error = adoptCF(CFErrorCreate(kCFAllocatorDefault, kCFErrorDomainCFNetwork, kCFURLErrorUnknown, nullptr)); 85 84 AVCFAssetResourceLoadingRequestFinishLoadingWithError(m_avRequest.get(), error.get());
Note: See TracChangeset
for help on using the changeset viewer.