Support purging of session storage area

Desktop / Chromium - Siddhartha [chromium.org] - 14 July 2017 01:01 EDT

Discussion at crrev.com/10983063. The comments at crrev.com/10983063#msg16 says that the only issue with supporting PurgeMemory for session storage is it would set is_initial_import_done_ to false and this could potentially cause an import if GetItem is called. So, the fix should just be not setting import_done_ to false if map is empty. For the case when a SetItem is called before Purge, PurgeMemory would be noop since it has uncommitted changes.

BUG=696112

Change-Id: I1a57c49dea41e030f5770b9d74742984b920f1d1 Reviewed-on: https://chromium-review.googlesource.com/560722 Commit-Queue: Siddhartha S

2f67c62 Support purging of session storage area
content/browser/dom_storage/dom_storage_area.cc | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)

Upstream: git.chromium.org


  • Share