Some web platform features (in the content layer), notably Clear-Site-Data, currently perform browsing data deletion by calling
ContentBrowserClient::ClearCookies()
ContentBrowserClient::ClearCache()
ContentBrowserClient::ClearSiteData()
This means an unnecessary roundtrip through the embedder at worst, and no or invalid functionality (if the embedder does not have proper implementation of these methods) at worst.
This should not be the case. Cookies and cache are known to the content layer, and web platform features should know how to delete them, and should do so regardless of the embedder.
See this document: https://docs.google.com/document/d/1I6m4QwbTNhG6wdtazamhTnArJN-UMUGqpvwH6InBEaM/ for more details.
Comment 1 by bugdroid1@chromium.org
, Dec 13 2016