Changeset 196089 in webkit


Ignore:
Timestamp:
Feb 3, 2016 4:00:24 PM (8 years ago)
Author:
jer.noble@apple.com
Message:

[Win] Pass entire request (rather than just URL) to clients of WebCoreAVCFResourceLoader
https://bugs.webkit.org/show_bug.cgi?id=153653

Reviewed by Brent Fulgham.

This will allow those clients to see the byte-range request ("Range:") header and respond
appropriately.

  • platform/graphics/avfoundation/cf/WebCoreAVCFResourceLoader.cpp:

(WebCore::WebCoreAVCFResourceLoader::startLoading):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r196088 r196089  
     12016-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
    1142016-02-03  Jer Noble  <jer.noble@apple.com>
    215
  • trunk/Source/WebCore/platform/graphics/avfoundation/cf/WebCoreAVCFResourceLoader.cpp

    r195816 r196089  
    7070
    7171    RetainPtr<CFURLRequestRef> urlRequest = AVCFAssetResourceLoadingRequestGetURLRequest(m_avRequest.get());
    72     URL requestURL = CFURLRequestGetURL(urlRequest.get());
    7372
    7473    // 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));
    7675
    7776    request.mutableResourceRequest().setPriority(ResourceLoadPriority::Low);
     
    8180        m_resource->addClient(this);
    8281    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());
    8483        RetainPtr<CFErrorRef> error = adoptCF(CFErrorCreate(kCFAllocatorDefault, kCFErrorDomainCFNetwork, kCFURLErrorUnknown, nullptr));
    8584        AVCFAssetResourceLoadingRequestFinishLoadingWithError(m_avRequest.get(), error.get());
Note: See TracChangeset for help on using the changeset viewer.