Bug 218167 - private API _setCookieAcceptPolicy failure in iOS14
Summary: private API _setCookieAcceptPolicy failure in iOS14
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit API (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-10-25 23:18 PDT by zhanqianXu
Modified: 2020-10-26 14:59 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zhanqianXu 2020-10-25 23:18:34 PDT
I set it up in iOS13 using private methods.
This is code:
[self.webView.configuration.processPool performSelector:@selector(_setCookieAcceptPolicy:) withObject:NSHTTPCookieAcceptPolicyAlways afterDelay:0];

On iOS13.It's working and policy is always.But on iOS14.It's failure and policy is never.Even though I set it NSHTTPCookieAcceptPolicyAlways.
So I think it is failure in iOS14 and I change my code,This code has been deleted.But when I updated my App,It‘s not working on iOS14!!!
I should uninstall my App and install,It can be works.
So is there any way to change it in iOS14? In addition to uninstall.
Comment 1 Smoley 2020-10-26 13:15:17 PDT
Thanks for filing, can you please attach a test case and specific steps to reproduce this?
Comment 2 Radar WebKit Bug Importer 2020-10-26 13:15:27 PDT
<rdar://problem/70692213>
Comment 3 Alexey Proskuryakov 2020-10-26 14:59:59 PDT
We do not recommend using SPIs. If you can describe the overall goal, there may be a supported way that we can recommend.

webkit-help mailing list or Slack would be a better venue for this question, as changing an SPI behavior is not a WebKit bug.