Summary: | [WPE][GTK] Investigate AdvancedPrivacyProtections | ||
---|---|---|---|
Product: | WebKit | Reporter: | Michael Catanzaro <mcatanzaro> |
Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW --- | ||
Severity: | Normal | CC: | bugs-noreply, mcatanzaro, wenson_hsieh |
Priority: | P2 | ||
Version: | Other | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Description
Michael Catanzaro
2024-05-29 09:34:04 PDT
This one line patch (for testing purposes only, not a serious patch) significantly improves our performance on https://coveryourtracks.eff.org/ diff --git a/Source/WebKit/UIProcess/API/glib/WebKitWebsitePolicies.cpp b/Source/WebKit/UIProcess/API/glib/WebKitWebsitePolicies.cpp index fd2a94767aca..7c4b5cd3bec2 100644 --- a/Source/WebKit/UIProcess/API/glib/WebKitWebsitePolicies.cpp +++ b/Source/WebKit/UIProcess/API/glib/WebKitWebsitePolicies.cpp @@ -52,6 +52,7 @@ struct _WebKitWebsitePoliciesPrivate { _WebKitWebsitePoliciesPrivate() : websitePolicies(API::WebsitePolicies::create()) { + websitePolicies->setAdvancedPrivacyProtections({ WebCore::AdvancedPrivacyProtections::BaselineProtections, WebCore::AdvancedPrivacyProtections::FingerprintingProtections }); } RefPtr<API::WebsitePolicies> websitePolicies; }; We go from "Our tests indicate that you have some protection against Web tracking, but it has some gaps" to "Our tests indicate that you have strong protection against Web tracking." The changes I see are: * Fake screen size * Canvas, WebGL, AudioContext fingerprints randomized by first-party domain However, it all depends on API::WebsitePolicies. The GTK/WPE API website policies API probably needs to be deprecated and replaced, bug #259577. There is now a detailed blog post explaining things: https://webkit.org/blog/15697/private-browsing-2-0/ |