[COOP] reporting: factorize the "sanitized URL" logic.
Sensitive information are removed from URLs sent with COOP. This was duplicated several time and way more are coming to support access-reporting. This patch: 1. Factorize the logic inside SanitizedURL(url) 2. Clear the #fragment part of the URL. Developers need to know the document's URL, not which part of it the user scrolled into. 3. Clear non HTTP/HTTPS urls. 4. As in the ReportingServiceImpl, use GetAsReferrer() instead. This is slightly more optimized. 5. Remove the useless sanitization in QueueNavigationReport. Bug: 1090273 Change-Id: I4b2a23dcb3ed218c58d8a940bed1a34fe42a7fc8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2401025Reviewed-by:Camille Lamy <clamy@chromium.org> Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org> Cr-Commit-Position: refs/heads/master@{#806703}
Showing
Please register or sign in to comment