Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5a8fe384cf60da92aba7b1a1d87bbd514495b6fe
      
https://github.com/WebKit/WebKit/commit/5a8fe384cf60da92aba7b1a1d87bbd514495b6fe
  Author: Jessica Lee <[email protected]>
  Date:   2026-02-05 (Thu, 05 Feb 2026)

  Changed paths:
    M Source/WebCore/platform/cocoa/ParentalControlsURLFilter.h
    M Source/WebCore/platform/cocoa/ParentalControlsURLFilter.mm
    M Source/WebKit/NetworkProcess/Downloads/PendingDownload.cpp
    M Source/WebKit/NetworkProcess/Downloads/PendingDownload.h

  Log Message:
  -----------
  Parental Controls should use mainframe's URL as criteria to check if a 
download is allowed.
https://bugs.webkit.org/show_bug.cgi?id=306002
rdar://168636046

Reviewed by Sihui Liu.

PendingDownloads should also check the mainframe URL in its criteria to allow 
downloads or not.

No new tests needed.

* Source/WebCore/platform/cocoa/ParentalControlsURLFilter.h:
* Source/WebCore/platform/cocoa/ParentalControlsURLFilter.mm:
(WebCore::ParentalControlsURLFilter::isURLAllowed):
* Source/WebKit/NetworkProcess/Downloads/PendingDownload.cpp:
(WebKit::PendingDownload::PendingDownload):
(WebKit::PendingDownload::willSendRedirectedRequest):
(WebKit::PendingDownload::mainDocumentURL const):
* Source/WebKit/NetworkProcess/Downloads/PendingDownload.h:

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



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

Reply via email to