⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 276206 in webkit


Ignore:
Timestamp:
Apr 17, 2021, 1:59:39 PM (5 years ago)
Author:
Brent Fulgham
Message:

Perform port blocking earlier in the load
https://bugs.webkit.org/show_bug.cgi?id=224525
<rdar://problem/75440591>

Unreviewed follow-up (suggested by David Kilzer)

  • loader/DocumentLoader.cpp:

(WebCore::DocumentLoader::willSendRequest): Restore an m_frame nullptr check.,

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r276205 r276206  
     12021-04-17  Brent Fulgham  <bfulgham@apple.com>
     2
     3        Perform port blocking earlier in the load
     4        https://bugs.webkit.org/show_bug.cgi?id=224525
     5        <rdar://problem/75440591>
     6
     7        Unreviewed follow-up (suggested by David Kilzer)
     8
     9        * loader/DocumentLoader.cpp:
     10        (WebCore::DocumentLoader::willSendRequest): Restore an m_frame nullptr check.,
     11
    1122021-04-17  Basuke Suzuki  <basuke.suzuki@sony.com>
    213
  • trunk/Source/WebCore/loader/DocumentLoader.cpp

    r276193 r276206  
    633633        if (!portAllowed(newRequest.url())) {
    634634            RELEASE_LOG_IF_ALLOWED("willSendRequest: canceling - redirecting to a URL with a blocked port");
    635             FrameLoader::reportBlockedLoadFailed(*m_frame, newRequest.url());
     635            if (m_frame)
     636                FrameLoader::reportBlockedLoadFailed(*m_frame, newRequest.url());
    636637            cancelMainResourceLoad(frameLoader()->blockedError(newRequest));
    637638            return completionHandler(WTFMove(newRequest));
Note: See TracChangeset for help on using the changeset viewer.