New items in LocalStorage are only accessible by tabs/windows that are open when the value was set in session-only mode
Categories
(Core :: Storage: localStorage & sessionStorage, defect, P3)
Tracking
()
People
(Reporter: mike.borman, Unassigned)
References
Details
Reporter | ||
Comment 1•7 years ago
|
||
![]() |
||
Updated•7 years ago
|
Updated•7 years ago
|
Reporter | ||
Comment 4•6 years ago
|
||
Updated•6 years ago
|
Comment 5•6 years ago
|
||
Comment 6•6 years ago
|
||
Comment 7•6 years ago
|
||
Comment 8•6 years ago
|
||
Updated•6 years ago
|
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
Comment 13•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 16•5 years ago
|
||
Bug is still present for me using Firefox 71.0.
Not being able to share localStorage data between tabs when this setting is enabled is really problematic. A lot of Single Page Applications use localStorage to persist authentication data (access/refresh tokens) and preferences, so when you open new tabs by middle clicking links, you lose all context and need to re authenticate, rendering tab-based browsing unusable on the website.
Comment 17•5 years ago
|
||
(In reply to Maxime Rossini from comment #16)
Bug is still present for me using Firefox 71.0.
Not being able to share localStorage data between tabs when this setting is enabled is really problematic. A lot of Single Page Applications use localStorage to persist authentication data (access/refresh tokens) and preferences, so when you open new tabs by middle clicking links, you lose all context and need to re authenticate, rendering tab-based browsing unusable on the website.
Hi Maxime, we are still stabilizing LSNG (which solves this issue) such that it is not on by default in releases (only in beta and nightly). You can switch it on using the pref dom.storage.next_gen
set to true.
Comment 18•5 years ago
|
||
Yep, this is definitely a valid solution for me, but not for the users of my application :)
Is there any expected release version for the fix to become automatically propagated to normal users?
Comment 19•5 years ago
|
||
This issue comes up occasionally on SUMO. The workaround for the end user is to create a site-specific "Allow" cookie permission, for example, via the Page Info dialog. (Call up Page Info using Ctrl+i or on Mac Command+i, click the Permissions icon, scroll down to the Set Cookie row, uncheck the box for Use default, click Allow, then you can close the dialog.)
For example, in recent months, when a user opened a message in a new window on the OWA platform for Office 365/Outlook.com/Live/Hotmail, it was blank or said "you can close this window now." Sample threads:
I'm here now because today a user reported repeated location permission nags in new tabs on a site with session-only cookies. https://support.mozilla.org/questions/1294490 Same issue: they put their flag in local storage.
Fingers crossed LSNG is done soon!
Comment 20•4 years ago
|
||
Hi Maxime, we are still stabilizing LSNG (which solves this issue) such that it is not on by default in releases (only in beta and nightly). You can switch it on using the pref dom.storage.next_gen set to true.
IS this ISSUE FIXED ? We are still seeing this issue in some machines.
Comment 21•4 years ago
|
||
(In reply to Maxime Rossini from comment #16)
Bug is still present for me using Firefox 71.0.
Not being able to share localStorage data between tabs when this setting is enabled is really problematic. A lot of Single Page Applications use localStorage to persist authentication data (access/refresh tokens) and preferences, so when you open new tabs by middle clicking links, you lose all context and need to re authenticate, rendering tab-based browsing unusable on the website.
Still present for me in FF 84. SPA problem above is exactly my problem, new tabs have empty localStorage, and a reauth-sequence in a new tab, even makes the FIRST TAB log out when the first tab tries to fetch an auth token from LS!
Comment 22•4 years ago
|
||
Hello,
the bug is still present for me (using Firefox 86.0).
Is there any news on that? Some of my clients are complaining that they can't open a new tab without signing in with my current implementation - which depends heavily on localStorage for several reasons.
Comment 23•4 years ago
|
||
The private browsing situation described here was fixed by bug 1669437 in Firefox 84 which moved the legacy LocalStorage implementation to retain data in memory of the parent process. Unfortunately, the approach used for private browsing cannot trivially be reused for both complexity reasons and concerns about unbounded memory usage growth in the parent process. (Which is not to say there aren't concerns about unbounded memory use in the parent process for private browsing, but the ability to clear private browsing storage when its last window are closed while retaining the normal browsing windows helps bound the lifetime of the data in non-permanent-private-browsing scenarios.)
Bug 1681493 tracks obsoleting the current session-only cookie behavior mode to instead use the sanitizing mechanisms that is used by LocalStorage NG. Practically speaking I think that may depend on either moving to LSNG or having Legacy LS expose a mechanism for enumerating its stored principals in https://searchfox.org/mozilla-central/source/toolkit/components/cleardata/PrincipalsCollector.jsm. This information is already known via mOriginsHavingData. In the case where legacy LS is expanded, the session dataset could be removed. This would slightly change the experience of a user who toggles session-only browsing for an origin multiple times during a single browsing session, but arguably the behavior of session-only cookies for LocalStorage are a bit nonsensical. (Specifically, session-only LocalStorage loads the on-disk state of LocalStorage for the origin last saved before the user transitioned to session-only mode for the origin.)
Comment 25•4 years ago
|
||
This should be fixed in FF 89. Bug 1703310 introduced auto-enabling of LSNG when network.cookie.lifetimePolicy=2.
Updated•2 years ago
|
Comment 26•2 years ago
|
||
The severity field for this bug is relatively low, S3. However, the bug has 3 duplicates.
:jjalkanen, could you consider increasing the bug severity?
For more information, please visit auto_nag documentation.
Comment 27•2 years ago
|
||
(In reply to Jan Varga [:janv] from comment #25)
This should be fixed in FF 89. Bug 1703310 introduced auto-enabling of LSNG when network.cookie.lifetimePolicy=2.
Closing as LSNG is now always enabled. Feel free to file a new bug if you encounter still issues and thanks for your support.
Description
•