Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5582b1eafa6591c6e5068b7c68b2ae74b9685c5e
      
https://github.com/WebKit/WebKit/commit/5582b1eafa6591c6e5068b7c68b2ae74b9685c5e
  Author: Alex Christensen <achristen...@apple.com>
  Date:   2025-03-24 (Mon, 24 Mar 2025)

  Changed paths:
    M Source/WebKit/UIProcess/Cocoa/NavigationState.mm
    M Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm
    M Source/WebKit/WebProcess/WebPage/mac/WebPageMac.mm
    M Source/WebKitLegacy/mac/WebView/WebView.mm

  Log Message:
  -----------
  Null check URL before passing to NSURLConnection.canHandleRequest
https://bugs.webkit.org/show_bug.cgi?id=290334
rdar://147774977

Reviewed by Brent Fulgham.

Though unrelated, and though I'm unable to reproduce, I definitely saw a crash 
from this
when investigating rdar://147452176.  Ever since the introduction of the 
linked-on-or-after
check SDKAlignedBehavior::ConvertsInvalidURLsToNull it is possible to get an 
NSURLRequest
with a nil URL, and I've added checks at all other interfaces with CFNetwork.

* Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::platformCanHandleRequest):
* Source/WebKit/WebProcess/WebPage/mac/WebPageMac.mm:
(WebKit::WebPage::platformCanHandleRequest):

Canonical link: https://commits.webkit.org/292622@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to