Changeset 173017 in webkit


Ignore:
Timestamp:
Aug 27, 2014, 2:17:27 PM (11 years ago)
Author:
Antti Koivisto
Message:

REGRESSION(r172946): Plugin tests asserting on Yosemite debug bot
https://bugs.webkit.org/show_bug.cgi?id=136301

Reviewed by Alexey Proskuryakov.

Don't pull the priority from the platform request if it is not defined.

  • platform/network/cf/ResourceRequestCFNet.cpp:

(WebCore::ResourceRequest::doUpdateResourceRequest):

  • platform/network/cocoa/ResourceRequestCocoa.mm:

(WebCore::ResourceRequest::doUpdateResourceRequest):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/Source/WebCore/ChangeLog

    r173016 r173017  
     12014-08-27  Antti Koivisto  <antti@apple.com>
     2
     3        REGRESSION(r172946): Plugin tests asserting on Yosemite debug bot
     4        https://bugs.webkit.org/show_bug.cgi?id=136301
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        Don't pull the priority from the platform request if it is not defined.
     9
     10        * platform/network/cf/ResourceRequestCFNet.cpp:
     11        (WebCore::ResourceRequest::doUpdateResourceRequest):
     12        * platform/network/cocoa/ResourceRequestCocoa.mm:
     13        (WebCore::ResourceRequest::doUpdateResourceRequest):
     14
    1152014-08-27  Timothy Hatcher  <timothy@apple.com>
    216
  • TabularUnified trunk/Source/WebCore/platform/network/cf/ResourceRequestCFNet.cpp

    r172946 r173017  
    278278    m_allowCookies = CFURLRequestShouldHandleHTTPCookies(m_cfRequest.get());
    279279
    280     if (resourcePrioritiesEnabled())
    281         m_priority = toResourceLoadPriority(wkGetHTTPRequestPriority(m_cfRequest.get()));
     280    if (resourcePrioritiesEnabled()) {
     281        auto priority = toResourceLoadPriority(wkGetHTTPRequestPriority(m_cfRequest.get()));
     282        if (priority > ResourceLoadPriorityUnresolved)
     283            m_priority = priority;
     284    }
    282285
    283286    m_httpHeaderFields.clear();
  • TabularUnified trunk/Source/WebCore/platform/network/cocoa/ResourceRequestCocoa.mm

    r172946 r173017  
    7979    m_allowCookies = [m_nsRequest.get() HTTPShouldHandleCookies];
    8080
    81     if (ResourceRequest::resourcePrioritiesEnabled())
    82         m_priority = toResourceLoadPriority(wkGetHTTPRequestPriority([m_nsRequest.get() _CFURLRequest]));
     81    if (resourcePrioritiesEnabled()) {
     82        auto priority = toResourceLoadPriority(wkGetHTTPRequestPriority([m_nsRequest.get() _CFURLRequest]));
     83        if (priority > ResourceLoadPriorityUnresolved)
     84            m_priority = priority;
     85    }
    8386
    8487    NSDictionary *headers = [m_nsRequest.get() allHTTPHeaderFields];
Note: See TracChangeset for help on using the changeset viewer.