Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7f8613c028df85e2bde63c58c44a492061879148
      
https://github.com/WebKit/WebKit/commit/7f8613c028df85e2bde63c58c44a492061879148
  Author: Elijah Sawyers <[email protected]>
  Date:   2025-02-05 (Wed, 05 Feb 2025)

  Changed paths:
    M Source/WebKit/WebProcess/Extensions/API/Cocoa/WebExtensionAPIEventCocoa.mm

  Log Message:
  -----------
  Crash in com.apple.WebKit.WebContent at com.apple.WebKit: 
WebKit::WebExtensionAPIEvent::removeAllListeners
https://bugs.webkit.org/show_bug.cgi?id=287095
rdar://144211832

Reviewed by Timothy Hatcher and Brian Weinstein.

This patch is a speculative fix for a crash introduced by 289222@main, as I
have been unable to reproduce the problem.

The crash is almost certainly happening because we're dereferencing a nullptr,
so the fix is to simply add null checks prior to dereferencing.

* Source/WebKit/WebProcess/Extensions/API/Cocoa/WebExtensionAPIEventCocoa.mm:
(WebKit::WebExtensionAPIEvent::addListener):
(WebKit::WebExtensionAPIEvent::removeListener):
(WebKit::WebExtensionAPIEvent::removeAllListeners):

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



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

Reply via email to