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

Changeset 271192 in webkit


Ignore:
Timestamp:
Jan 5, 2021, 9:29:40 PM (6 years ago)
Author:
Kate Cheney
Message:

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:
Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r271189 r271192  
     12021-01-05  Kate Cheney  <katherine_cheney@apple.com>
     2
     3        NSCrossWebsiteTrackingUsageDescription is not working on Mac, ITP is always enabled
     4        https://bugs.webkit.org/show_bug.cgi?id=220190
     5        <rdar://problem/72744909>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        * wtf/PlatformUse.h:
     10
    1112021-01-05  Chris Dumez  <cdumez@apple.com>
    212
  • trunk/Source/WTF/wtf/PlatformUse.h

    r270377 r271192  
    327327#define USE_OPENXR 0
    328328#endif
     329
     330#if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 140000) || PLATFORM(MACCATALYST)
     331// FIXME: Include macOS once <rdar://problem/72817121> is fixed.
     332#define USE_ITP_TCC_CHECK 1
     333#endif
  • trunk/Source/WebKit/ChangeLog

    r271190 r271192  
     12021-01-05  Kate Cheney  <katherine_cheney@apple.com>
     2
     3        NSCrossWebsiteTrackingUsageDescription is not working on Mac, ITP is always enabled
     4        https://bugs.webkit.org/show_bug.cgi?id=220190
     5        <rdar://problem/72744909>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        Consider the presence of the NSCrossWebsiteTrackingUsageDescription
     10        key as an indication to disable ITP for WKWebView until we implement
     11        a mechanism for disabling it in WKWebView like we do for iOS to avoid
     12        compatibility bugs.
     13
     14        * Shared/Cocoa/DefaultWebBrowserChecks.mm:
     15        (WebKit::determineITPStateInternal):
     16
    1172021-01-05  Aditya Keerthi  <akeerthi@apple.com>
    218
  • trunk/Source/WebKit/Shared/Cocoa/DefaultWebBrowserChecks.mm

    r271040 r271192  
    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.