Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1b14cad85c50d04e85e45bec3e2af0c94ebb7a66
      
https://github.com/WebKit/WebKit/commit/1b14cad85c50d04e85e45bec3e2af0c94ebb7a66
  Author: Antonio Tanzola <[email protected]>
  Date:   2026-10-08 (Thu, 08 Oct 2026)

  Changed paths:
    M Source/WebCore/platform/cocoa/ParentalControlsURLFilter.mm

  Log Message:
  -----------
  ParentalControlsURLFilter::workQueueSingleton() asserts main thread but is 
called from its own work queue
rdar://189412406
https://bugs.webkit.org/show_bug.cgi?id=326676

Reviewed by Abrar Rahman Protyasha and Jessica Lee.

WebParentalControlsURLFilter::ensureWebContentFilter() runs on the filter's 
work queue and calls assertIsCurrent(workQueueSingleton()), but 
workQueueSingleton() was a MainThreadNeverDestroyed, so calling it from that 
queue failed its main-thread assertion and crashed the network process in Debug 
builds with web content filtering enabled. The queue is reached from both the 
main thread and the queue itself, so make it a NeverDestroyed<Ref<WorkQueue>>, 
as other WorkQueue singletons are.

No new tests, the assertion only fires in Debug iOS builds with web content 
filtering enabled.

* Source/WebCore/platform/cocoa/ParentalControlsURLFilter.mm:
(WebCore::ParentalControlsURLFilter::workQueueSingleton):

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



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

Reply via email to