Now that the work on the Private Click Measurement standard is approaching consensus we need to make the setting available to clients. (See <https://github.com/privacycg/private-click-measurement> for background on the feature). This patch creates a WebKit preference that developers can use to disable PCM if they do not wish their applications to participate in such measurements.
<rdar://problem/70502198>
Created attachment 416018 [details] Patch
Comment on attachment 416018 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=416018&action=review > Source/WebKit/UIProcess/API/C/WKPreferencesRef.h:356 > +WK_EXPORT bool WKPreferencesGetPrivateClickMeasurementEnabled(WKPreferencesRef preferencesRef); Let's not add more C API unless we really need it.
Created attachment 416042 [details] Patch for landing
Committed r270710: <https://trac.webkit.org/changeset/270710> All reviewed patches have been landed. Closing bug and clearing flags on attachment 416042 [details].
Comment on attachment 416042 [details] Patch for landing View in context: https://bugs.webkit.org/attachment.cgi?id=416042&action=review > Source/WebKit/WebProcess/WebPage/WebPage.cpp:3791 > + settings.setPrivateClickMeasurementEnabled(store.getBoolValueForKey(WebPreferencesKey::privateClickMeasurementEnabledKey())); This line is not necessary and is duplicating work done by the generated preferences code.