⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 280575 in webkit


Ignore:
Timestamp:
Aug 2, 2021, 5:55:12 PM (5 years ago)
Author:
Kate Cheney
Message:

[App Privacy Report] Domains are deleted for ephemeral website data stores
​https://bugs.webkit.org/show_bug.cgi?id=228708
<rdar://problem/81282432>

Reviewed by Alex Christensen.

No new tests. Since this data is not stored in WebKit, we have no
way to test when it gets deleted or not. I tested manually and requested
an automated test at the correct networking layer.

Only clear Privacy Report data if the website data store is
persistent. Safari calls the SPI to remove website data for ephemeral
data stores in some cases that are unrelated to a user clearing
website data or history and thus should not clear App Privacy Report
data. Additionally, it is unexpected that clearing an ephemeral data
store would clear disk data, as website data is only stored in memory
in this case.

  • NetworkProcess/cocoa/NetworkSessionCocoa.mm:

(WebKit::NetworkSessionCocoa::removeNetworkWebsiteData):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r280573 r280575  
     12021-08-02  Kate Cheney  <katherine_cheney@apple.com>
     2
     3        [App Privacy Report] Domains are deleted for ephemeral website data stores
     4        https://bugs.webkit.org/show_bug.cgi?id=228708
     5        <rdar://problem/81282432>
     6
     7        Reviewed by Alex Christensen.
     8
     9        No new tests. Since this data is not stored in WebKit, we have no
     10        way to test when it gets deleted or not. I tested manually and requested
     11        an automated test at the correct networking layer.
     12
     13        Only clear Privacy Report data if the website data store is
     14        persistent. Safari calls the SPI to remove website data for ephemeral
     15        data stores in some cases that are unrelated to a user clearing
     16        website data or history and thus should not clear App Privacy Report
     17        data. Additionally, it is unexpected that clearing an ephemeral data
     18        store would clear disk data, as website data is only stored in memory
     19        in this case.
     20
     21        * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
     22        (WebKit::NetworkSessionCocoa::removeNetworkWebsiteData):
     23
    1242021-08-02  Jean-Yves Avenard  <jya@apple.com>
    225
  • trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm

    r280567 r280575  
    18321832{
    18331833#if ENABLE(APP_PRIVACY_REPORT) && HAVE(SYMPTOMS_FRAMEWORK)
     1834    // FIXME: Add automated test for this once rdar://81420753 is resolved.
     1835    if (sessionID().isEphemeral()) {
     1836        completionHandler();
     1837        return;
     1838    }
     1839
    18341840    auto bundleID = WebCore::applicationBundleIdentifier();
    18351841    if (!isParentProcessAFullWebBrowser(networkProcess()) && !isActingOnBehalfOfAFullWebBrowser(bundleID))
Note: See TracChangeset for help on using the changeset viewer.