Calls to WebsiteDataStore::removeData() should remove Ad Click Attribution data.
<rdar://problem/47668988>
Created attachment 368076 [details] Patch
Comment on attachment 368076 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=368076&action=review > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:181 > + m_unconvertedAdClickAttributionMap.removeIf([domain = domain](auto& keyAndValue) { domain = domain should be &domain > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:182 > + if (keyAndValue.key.first.registrableDomain == domain || keyAndValue.key.second.registrableDomain == domain) could be written on one line: return keyAndValue.key.first.registrableDomain == domain || keyAndValue.key.second.registrableDomain == domain; > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:187 > + m_convertedAdClickAttributionMap.removeIf([domain = WTFMove(domain)](auto& keyAndValue) { ditto, should be &domain. > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:188 > + if (keyAndValue.key.first.registrableDomain == domain || keyAndValue.key.second.registrableDomain == domain) ditto, could be written on 1 line.
(In reply to Chris Dumez from comment #3) > Comment on attachment 368076 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=368076&action=review > > > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:181 > > + m_unconvertedAdClickAttributionMap.removeIf([domain = domain](auto& keyAndValue) { > > domain = domain > should be > &domain > > > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:182 > > + if (keyAndValue.key.first.registrableDomain == domain || keyAndValue.key.second.registrableDomain == domain) > > could be written on one line: > return keyAndValue.key.first.registrableDomain == domain || > keyAndValue.key.second.registrableDomain == domain; > > > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:187 > > + m_convertedAdClickAttributionMap.removeIf([domain = WTFMove(domain)](auto& keyAndValue) { > > ditto, should be &domain. > > > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:188 > > + if (keyAndValue.key.first.registrableDomain == domain || keyAndValue.key.second.registrableDomain == domain) > > ditto, could be written on 1 line. Thank you, I will fix all these things.
Created attachment 368086 [details] Patch for landing
Comment on attachment 368086 [details] Patch for landing Clearing flags on attachment: 368086 Committed r244572: <https://trac.webkit.org/changeset/244572>
All reviewed patches have been landed. Closing bug.