Closed Bug 1653586 Opened 5 years ago Closed 4 years ago

network.cookie.lifetimePolicy=2 deletes cookies too early

Categories

(Core :: Storage: localStorage & sessionStorage, defect)

78 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1453699

People

(Reporter: lukas.meuerer, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Steps to reproduce:

  1. Start Firefox with a new profile (to use the default settings).
  2. Set network.cookie.lifetimePolicy=2 (Preferences -> Privacy & Security -> Delete cookies and site data when Firefox is closed)
  3. Easiest way to reproduce this: Open a web page that shows a cookie banner (e. g. https://www.heise.de or https://forum.xda-developers.com).
  4. Accept the cookie banner.
  5. Open the same page URL in a different (new) Firefox window.

Actual results:

Although the cookie banner was accepted, the banner is shown again.

The cookies that store this information seem to be deleted too early not only when Firefox is closed.

Expected results:

With network.cookie.lifetimePolicy=2, cookies should not be deleted or expire before Firefox is closed.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Networking: Cookies
Product: Firefox → Core

I debugged this issue quickly but it seems that the issue is in the localStorage. The key '_cmpRepromptOptions' is deleted when the window is dismissed. This doesn't happen in nightly.

Flags: needinfo?(bugmail)

I can confirm that the issue seems to be gone in 80.0a1.
In 79.0b9 it still exists.

Weird.
When I tested 80.0a1 last month, I was 100% sure that the problem is gone in that version. Today I tested the 80.0 final from mozilla.org, but the problem still exists in this build. Then I tried 81.0b2 and the problem doesn't seem to exist any more.

Was the fix removed between 80.0a1 and 80.0 final? Or are there any other differences?
How likely is it that 81 final will fix that issue?

Problem still exists in Firefox 81.

Andrea has found the cause of this issue 2 month ago. Is there a chance that this annoying bug gets fixed soon?

Bug still exists in Firefox 82.0.

Problem still exists in 83.0.
Is there anything I can do to help getting this fixed?

Bug still exists in Firefox 84.0.

This should be fixed in FF 89. Bug 1703310 introduced auto-enabling of LSNG when network.cookie.lifetimePolicy=2.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Flags: needinfo?(bugmail)
Resolution: --- → DUPLICATE
Component: Networking: Cookies → Storage: localStorage & sessionStorage
You need to log in before you can comment on or make changes to this bug.