New issue
Advanced search Search tips

Issue 896781 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Ensure BrowserContext::SaveSessionState preserves all storage types

Project Member Reported by jsb...@chromium.org, Oct 18

Issue description

BrowserContext::SaveSessionState is called to override the behavior of "clear on exit" / session-only storage for all or particular origins, when a "session" is not really a session (e.g. Android app termination)

This is hooked up for cookies, WebSQL, DOM Storage, and Indexed DB by calling into the appropriate context and setting a flag. It looks like this is not hooked up for filesystem, cache storage, service workers, and potentially other types.


 
Components: Privacy
Components: Blink>Storage>CacheStorage Blink>Storage>FileSystem Blink>ServiceWorker
Labels: -Pri-3 Pri-2
Status: Available (was: Untriaged)
Tests are in chrome/browser/sessions/better_session_restore_browsertest.cc but don't cover most of the storage types.

Cc: dullweber@chromium.org
https://cs.chromium.org/chromium/src/chrome/browser/browsing_data/browsing_data_remover_browsertest.cc?l=1100&rcl=394e487383529b54c0f09d1a2fb0dcca79654bc2

There is a ClearOnExit test here that is capable of covering all data types. We could make a version that sets BrowserContext::SaveSessionState to check if data is kept.

Sign in to add a comment