[webkit-changes] [WebKit/WebKit] 7f19d5: Handle the case where an extension could be unload...

Brian Weinstein noreply at github.com
Fri Mar 22 16:29:07 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7f19d5a29be35074f1b14a16a768786d64fa95d9
      https://github.com/WebKit/WebKit/commit/7f19d5a29be35074f1b14a16a768786d64fa95d9
  Author: Brian Weinstein <bweinstein at apple.com>
  Date:   2024-03-22 (Fri, 22 Mar 2024)

  Changed paths:
    M Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionContextCocoa.mm

  Log Message:
  -----------
  Handle the case where an extension could be unloaded after compiling DNR rules
https://bugs.webkit.org/show_bug.cgi?id=271493
rdar://123900589

Reviewed by Timothy Hatcher.

If the extension has been unloaded, iterating the user content controllers will lead to a crash.

* Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionContextCocoa.mm:
(WebKit::WebExtensionContext::addDeclarativeNetRequestRulesToPrivateUserContentControllers):
(WebKit::WebExtensionContext::compileDeclarativeNetRequestRules):

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



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


More information about the webkit-changes mailing list