Title: [276206] trunk/Source/WebCore
Revision
276206
Author
[email protected]
Date
2021-04-17 13:59:39 -0700 (Sat, 17 Apr 2021)

Log 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.,

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (276205 => 276206)


--- trunk/Source/WebCore/ChangeLog	2021-04-17 20:16:22 UTC (rev 276205)
+++ trunk/Source/WebCore/ChangeLog	2021-04-17 20:59:39 UTC (rev 276206)
@@ -1,3 +1,14 @@
+2021-04-17  Brent Fulgham  <[email protected]>
+
+        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.,
+
 2021-04-17  Basuke Suzuki  <[email protected]>
 
         [clang 11] Remove warning when converting WebCore::maxValueForCssLength from int to float

Modified: trunk/Source/WebCore/loader/DocumentLoader.cpp (276205 => 276206)


--- trunk/Source/WebCore/loader/DocumentLoader.cpp	2021-04-17 20:16:22 UTC (rev 276205)
+++ trunk/Source/WebCore/loader/DocumentLoader.cpp	2021-04-17 20:59:39 UTC (rev 276206)
@@ -632,7 +632,8 @@
         }
         if (!portAllowed(newRequest.url())) {
             RELEASE_LOG_IF_ALLOWED("willSendRequest: canceling - redirecting to a URL with a blocked port");
-            FrameLoader::reportBlockedLoadFailed(*m_frame, newRequest.url());
+            if (m_frame)
+                FrameLoader::reportBlockedLoadFailed(*m_frame, newRequest.url());
             cancelMainResourceLoad(frameLoader()->blockedError(newRequest));
             return completionHandler(WTFMove(newRequest));
         }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to