Changeset 290497 in webkit


Ignore:
Timestamp:
Feb 25, 2022, 12:16:21 AM (4 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r290338 - PingLoader is failing to call completion handler in error case
https://bugs.webkit.org/show_bug.cgi?id=237062
<rdar://50157253>

Reviewed by Chris Dumez.

The completion handler was not being called in the case of a PingLoad being redirected to
a non-HTTP(S) scheme.

  • NetworkProcess/PingLoad.cpp:

(WebKit::PingLoad::willPerformHTTPRedirection):

Location:
releases/WebKitGTK/webkit-2.36/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.36/Source/WebKit/ChangeLog

    r290434 r290497  
     12022-02-22  Brent Fulgham  <bfulgham@apple.com>
     2
     3        PingLoader is failing to call completion handler in error case
     4        https://bugs.webkit.org/show_bug.cgi?id=237062
     5        <rdar://50157253>
     6
     7        Reviewed by Chris Dumez.
     8
     9        The completion handler was not being called in the case of a PingLoad being redirected to
     10        a non-HTTP(S) scheme.
     11
     12        * NetworkProcess/PingLoad.cpp:
     13        (WebKit::PingLoad::willPerformHTTPRedirection):
     14
    1152022-02-23  Maxim Cournoyer  <maxim.cournoyer@gmail.com>
    216
  • releases/WebKitGTK/webkit-2.36/Source/WebKit/NetworkProcess/PingLoad.cpp

    r289018 r290497  
    135135    m_networkLoadChecker->checkRedirection(ResourceRequest { }, WTFMove(request), WTFMove(redirectResponse), nullptr, [this, completionHandler = WTFMove(completionHandler)] (auto&& result) mutable {
    136136        if (!result.has_value()) {
     137            this->didFinish(result.error());
    137138            completionHandler({ });
    138             this->didFinish(result.error());
    139139            return;
    140140        }
     
    142142        if (!request.url().protocolIsInHTTPFamily()) {
    143143            this->didFinish(ResourceError { String { }, 0, request.url(), "Redirection to URL with a scheme that is not HTTP(S)"_s, ResourceError::Type::AccessControl });
     144            completionHandler({ });
    144145            return;
    145146        }
Note: See TracChangeset for help on using the changeset viewer.