[Webkit-unassigned] [Bug 207543] New: WKContentRuleList rules does not allow you to block ThirdParty cookies
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Feb 11 06:42:56 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=207543
Bug ID: 207543
Summary: WKContentRuleList rules does not allow you to block
ThirdParty cookies
Product: WebKit
Version: WebKit Nightly Build
Hardware: iPhone / iPad
OS: iOS 13
Status: NEW
Severity: Enhancement
Priority: P2
Component: WebKit API
Assignee: webkit-unassigned at lists.webkit.org
Reporter: bthomas at brave.com
Created attachment 390362
--> https://bugs.webkit.org/attachment.cgi?id=390362&action=review
Example where it throws an error
If you call `WKContentRuleStore.compileContentRuleList` with the rules:
```
[{
"trigger": {
"url-filter": ".*",
"load-type": "thirdparty"
},
"action": {
"type": "block-cookies"
}
}]
```
It will say `"Error Domain=WKErrorDomain Code=6 "(null)" UserInfo={NSHelpAnchor=Rule list compilation failed: Invalid trigger flags array.}"`
Because the `load-type` is set to `thirdparty` for `block-cookies` action type. Sample application uploaded.
Expected Behaviour: Should allow developers to block ThirdParty cookies using the content rules list because WKWebView's HTTPCookieStore set to `never` does NOT work.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200211/25a12077/attachment.htm>
More information about the webkit-unassigned
mailing list