Consolidate the session store storage for session storage format with the how session storage stores its values
Categories
(Firefox :: Session Restore, enhancement)
Tracking
()
People
(Reporter: farre, Assigned: farre)
References
Details
Attachments
(2 files)
In Bug 1710004 we introduce a timer in CanonicalBrowsingContext to flush session storage to session store that is due to navigation. In the same bug we also introduce a work-around because of how values in session storage are store in the parent.
What we would want is to either change the storage format in session store to store the session storage values keyed on the same keys as in the SessionStorageManagerBase class, which is (originAttributes x originKey) or change SessionStorageManagerBase to use the same key as session store, which is the origin (including origin attributes).
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Comment 1•3 years ago
|
||
This is a nice-to-have that we should do soon, but is not a blocker for Fission release experiment so moving to MVP.
Assignee | ||
Comment 3•3 years ago
|
||
By storing the PrincipalInfo in the parent copy it is possible to
query the BackgroundSessionStorageManager withouth the need of a
preprocessing step matching resulting data to principals using the
browsing context tree. Instead the result from the query contains the
principal info.
To be able to initialize the parent actor lazily with a principal
info, it was needed to make clearing the storage be a less fine
grained transaction. Instead of sending updates per cache, we after
clearing in the child process we send a message to the parent that in
turn performs the same steps.
Assignee | ||
Comment 4•3 years ago
|
||
Previously we've removed data from the session store that aren't
currently in the current browsing context tree, but this is different
from what BackgroundSessionStorageManager considers to be a
session. After part 1 in this patch series, session store will save
exactly the view BackgroundSessionStorageManager has of the current
sessionStorage state.
Depends on D125680
Comment 6•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/9c9950b72aa7
https://hg.mozilla.org/mozilla-central/rev/734ea92aef27
Comment 7•3 years ago
|
||
Setting status-firefox93=wontfix because we don't need to uplift this session store fix to Beta 93.
Description
•