Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5b66b46f3a76192ea688f51edfabc09262edd7ee
      
https://github.com/WebKit/WebKit/commit/5b66b46f3a76192ea688f51edfabc09262edd7ee
  Author: Wenson Hsieh <[email protected]>
  Date:   2026-04-28 (Tue, 28 Apr 2026)

  Changed paths:
    M 
Source/WebKit/UIProcess/Cocoa/SOAuthorization/PopUpSOAuthorizationSession.mm
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SOAuthorizationTests.mm

  Log Message:
  -----------
  Fix an occasional UI process crash under SOAuthorizationSession::abort() 
after closing the web view
https://bugs.webkit.org/show_bug.cgi?id=313566
rdar://175108210

Reviewed by Aditya Keerthi and Abrar Rahman Protyasha.

Return early from a couple `PopUpSOAuthorizationSession` codepaths, in the case 
where the web view
has already been closed.

Test: SOAuthorizationPopUp.InterceptionCancelAfterClose

* Source/WebKit/UIProcess/Cocoa/SOAuthorization/PopUpSOAuthorizationSession.mm:
(WebKit::PopUpSOAuthorizationSession::abortInternal):
(WebKit::PopUpSOAuthorizationSession::completeInternal):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SOAuthorizationTests.mm:
(TestWebKitAPI::TEST(SOAuthorizationPopUp, InterceptionCancelAfterClose)):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to