Bug 217132

Summary: NSCrossWebsiteTrackingUsageDescription does not prompt to allow or block ITP
Product: WebKit Reporter: Spambit <sarkar.sambit>
Component: FramesAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Major CC: bfulgham, katherine_cheney, sarkar.sambit, wilander
Priority: P1 Keywords: HTML5
Version: WebKit Nightly Build   
Hardware: iPhone / iPad   
OS: iOS 13   

Description Spambit 2020-09-30 11:00:47 PDT
I am working on WKWebView in iOS 14. I put NSCrossWebsiteTrackingUsageDescription in info.plist and could see ITP toggle button in app specific settings. But I wonder should it not prompt user with system popups like permissions consent? I don't see any such popup. Is it bug in iOS14? The reason I ask because if it does not show anything to user what's the purpose of taking a string for the key in info.plist.
Comment 1 Kate Cheney 2020-10-01 16:29:22 PDT
(In reply to Spambit from comment #0)
> I am working on WKWebView in iOS 14. I put
> NSCrossWebsiteTrackingUsageDescription in info.plist and could see ITP
> toggle button in app specific settings. But I wonder should it not prompt
> user with system popups like permissions consent? I don't see any such
> popup. Is it bug in iOS14? The reason I ask because if it does not show
> anything to user what's the purpose of taking a string for the key in
> info.plist.

Hi! Thanks for filing this. This behavior is expected, there is no prompt that should appear when adding NSCrossWebsiteTrackingUsageDescription to the Info.plist. The purpose of the purpose string is to let an app request to show the ITP toggle, but the only way to change it is if the user does it themselves in Settings.
Comment 2 Spambit 2020-10-03 08:57:47 PDT
Ok, that is good to know. I guess you can close this issue then. Thanks for your prompt reply.