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

Changeset 271251 in webkit


Ignore:
Timestamp:
Jan 7, 2021, 12:01:50 PM (6 years ago)
Author:
Russell Epstein
Message:

Cherry-pick r271192. rdar://problem/72894099

NSCrossWebsiteTrackingUsageDescription is not working on Mac, ITP is always enabled
https://bugs.webkit.org/show_bug.cgi?id=220190
<rdar://problem/72744909>

Reviewed by Brent Fulgham.

Source/WebKit:

Consider the presence of the NSCrossWebsiteTrackingUsageDescription
key as an indication to disable ITP for WKWebView until we implement
a mechanism for disabling it in WKWebView like we do for iOS to avoid
compatibility bugs.

  • Shared/Cocoa/DefaultWebBrowserChecks.mm: (WebKit::determineITPStateInternal):

Source/WTF:

  • wtf/PlatformUse.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@271192 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-610.4.3.1-branch/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-610.4.3.1-branch/Source/WTF/ChangeLog

    r270915 r271251  
     12021-01-07  Russell Epstein  <repstein@apple.com>
     2
     3        Cherry-pick r271192. rdar://problem/72894099
     4
     5    NSCrossWebsiteTrackingUsageDescription is not working on Mac, ITP is always enabled
     6    https://bugs.webkit.org/show_bug.cgi?id=220190
     7    <rdar://problem/72744909>
     8   
     9    Reviewed by Brent Fulgham.
     10   
     11    Source/WebKit:
     12   
     13    Consider the presence of the NSCrossWebsiteTrackingUsageDescription
     14    key as an indication to disable ITP for WKWebView until we implement
     15    a mechanism for disabling it in WKWebView like we do for iOS to avoid
     16    compatibility bugs.
     17   
     18    * Shared/Cocoa/DefaultWebBrowserChecks.mm:
     19    (WebKit::determineITPStateInternal):
     20   
     21    Source/WTF:
     22   
     23    * wtf/PlatformUse.h:
     24   
     25    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@271192 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     26
     27    2021-01-05  Kate Cheney  <katherine_cheney@apple.com>
     28
     29            NSCrossWebsiteTrackingUsageDescription is not working on Mac, ITP is always enabled
     30            https://bugs.webkit.org/show_bug.cgi?id=220190
     31            <rdar://problem/72744909>
     32
     33            Reviewed by Brent Fulgham.
     34
     35            * wtf/PlatformUse.h:
     36
    1372020-12-16  Alan Coon  <alancoon@apple.com>
    238
  • branches/safari-610.4.3.1-branch/Source/WTF/wtf/PlatformUse.h

    r270548 r271251  
    315315#endif
    316316#endif
     317
     318#if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 140000) || PLATFORM(MACCATALYST)
     319// FIXME: Include macOS once <rdar://problem/72817121> is fixed.
     320#define USE_ITP_TCC_CHECK 1
     321#endif
  • branches/safari-610.4.3.1-branch/Source/WebKit/ChangeLog

    r271029 r271251  
     12021-01-07  Russell Epstein  <repstein@apple.com>
     2
     3        Cherry-pick r271192. rdar://problem/72894099
     4
     5    NSCrossWebsiteTrackingUsageDescription is not working on Mac, ITP is always enabled
     6    https://bugs.webkit.org/show_bug.cgi?id=220190
     7    <rdar://problem/72744909>
     8   
     9    Reviewed by Brent Fulgham.
     10   
     11    Source/WebKit:
     12   
     13    Consider the presence of the NSCrossWebsiteTrackingUsageDescription
     14    key as an indication to disable ITP for WKWebView until we implement
     15    a mechanism for disabling it in WKWebView like we do for iOS to avoid
     16    compatibility bugs.
     17   
     18    * Shared/Cocoa/DefaultWebBrowserChecks.mm:
     19    (WebKit::determineITPStateInternal):
     20   
     21    Source/WTF:
     22   
     23    * wtf/PlatformUse.h:
     24   
     25    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@271192 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     26
     27    2021-01-05  Kate Cheney  <katherine_cheney@apple.com>
     28
     29            NSCrossWebsiteTrackingUsageDescription is not working on Mac, ITP is always enabled
     30            https://bugs.webkit.org/show_bug.cgi?id=220190
     31            <rdar://problem/72744909>
     32
     33            Reviewed by Brent Fulgham.
     34
     35            Consider the presence of the NSCrossWebsiteTrackingUsageDescription
     36            key as an indication to disable ITP for WKWebView until we implement
     37            a mechanism for disabling it in WKWebView like we do for iOS to avoid
     38            compatibility bugs.
     39
     40            * Shared/Cocoa/DefaultWebBrowserChecks.mm:
     41            (WebKit::determineITPStateInternal):
     42
    1432020-12-21  Alan Coon  <alancoon@apple.com>
    244
  • branches/safari-610.4.3.1-branch/Source/WebKit/Shared/Cocoa/DefaultWebBrowserChecks.mm

    r267286 r271251  
    113113        return true;
    114114
    115     TCCAccessPreflightResult result = kTCCAccessPreflightDenied;
    116 #if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 140000) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 110000)
    117     result = TCCAccessPreflight(getkTCCServiceWebKitIntelligentTrackingPrevention(), nullptr);
     115#if USE(ITP_TCC_CHECK)
     116    TCCAccessPreflightResult result = TCCAccessPreflight(getkTCCServiceWebKitIntelligentTrackingPrevention(), nullptr);
     117    return result != kTCCAccessPreflightDenied;
     118#else
     119    return false;
    118120#endif
    119     return result != kTCCAccessPreflightDenied;
    120121}
    121122
Note: See TracChangeset for help on using the changeset viewer.