Support purging of session storage area

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

Discussion at The comments at 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.


Change-Id: I1a57c49dea41e030f5770b9d74742984b920f1d1 Reviewed-on: Commit-Queue: Siddhartha S

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


  • Share