Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ed98ad21fc2b2c47f42e87023ce95cb316fdd4e8
      
https://github.com/WebKit/WebKit/commit/ed98ad21fc2b2c47f42e87023ce95cb316fdd4e8
  Author: Wenson Hsieh <[email protected]>
  Date:   2025-10-10 (Fri, 10 Oct 2025)

  Changed paths:
    M Source/WebCore/page/ScriptTrackingPrivacyCategory.cpp
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/ScriptTrackingPrivacyTests.mm

  Log Message:
  -----------
  REGRESSION (iOS 26): Popups timed incorrectly on websites using Hubspot CTA 
due to localStorage access being blocked
https://bugs.webkit.org/show_bug.cgi?id=299531
rdar://161424408

Reviewed by Sihui Liu.

Add script-written cookie expiry capping and `localStorage` blocking to the 
list of privacy
protections to only enable when Advanced Privacy Protections are enabled. Given 
that these three
script categories have been the cause of the nearly all compatibility issues 
caused by these source
tracking privacy protections thus far, it makes more sense to (at least) only 
enable them by
default, only when the user has a straightforward way of temporarily disabling 
these protections
(via `Reload with reduced protections`).

Test: Tools/TestWebKitAPI/Tests/WebKitCocoa/ScriptTrackingPrivacyTests.mm

* Source/WebCore/page/ScriptTrackingPrivacyCategory.cpp:
(WebCore::shouldEnableScriptTrackingPrivacy):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/ScriptTrackingPrivacyTests.mm:

Adjust an existing API test to verify that these protections still apply when 
advanced privacy
protections are enabled.

(-[WKWebsiteDataStore deleteAllCookiesAndLocalStorage]):
(TestWebKitAPI::(ScriptTrackingPrivacyTests, ScriptWrittenCookies)):
(TestWebKitAPI::(ScriptTrackingPrivacyTests, LocalStorage)):
(-[WKWebsiteDataStore deleteAllCookies]): Deleted.

Canonical link: https://commits.webkit.org/301327@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