Chromium Code Reviews
DescriptionIntroduce DATA_TYPE_DOM_STORAGE for DOM-Accessible storage
Clear-Site-Data specifies a "storage" datatype, representing DOM-accessible
storage. This corresponds to the 7 storage datatypes in BrowsingDataRemover,
and possibly others defined in the embedder.
We define the DATA_TYPE_EMBEDDER_DOM_STORAGE pseudo-datatype that serves as
a signal for the embedder delegate to delete its DOM-accessible storage.
Then, we define DATA_TYPE_DOM_STORAGE as a group datatype (bitmask) of the
abovementioned 7 storage datatypes and DATA_TYPE_EMBEDDER_STORAGE.
See the design doc for the rationale for this approach.
https://docs.google.com/document/d/1I6m4QwbTNhG6wdtazamhTnArJN-UMUGqpvwH6InBEaM/edit#heading=h.q2f5zo9hgn7o
Currently, the only datatype in Chrome that is related to DOM storage is
DURABLE_PERMISSION (considering that PLUGIN_DATA is currently deleted
by Clear-Site-Data as part of "cookies"). The other datatypes, such as
WEB_APP_DATA and SITE_USAGE_DATA are only metadata that Chrome keeps.
Therefore, replacing DATA_TYPE_SITE_DATA with DATA_TYPE_DOM_STORAGE in
ChromeContentBrowserClient::ClearSiteData() is also a functional change
to Clear-Site-Data, weakening it to only delete DOM-accessible storage.
BUG=668114
Review-Url: https://codereview.chromium.org/2745323004
Cr-Commit-Position: refs/heads/master@{#457046}
Committed: https://chromium.googlesource.com/chromium/src/+/f4ab8376fc0e86d3a8e6516256711c9da85002c3
Patch Set 1 #
Messages
Total messages: 25 (20 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||