Open Bug 2092600 Opened 6 days ago Updated 11 hours ago

Firefox 160 : All Google accounts are disconnected each time FF are reopened.

Categories

(Core :: Security: PSM, defect)

Firefox 160
defect

Tracking

()

UNCONFIRMED

People

(Reporter: patrice33740, Unassigned)

References

Details

Steps to reproduce

My Firefox opens my Google Calendar on startup.
I log in to my Google account to view the calendar.
The option to clear cookies on exit is disabled.
There is an exception to the rule against clearing cookies on www.google.com
I stop and restart Firefox 160.

Actual results

My Google Calendar appears to show that I'm connected.
Almost immediately, the page goes gray and a message appears saying: You are not connected. Sign in to continue using Calendar.

Expected results

My Google Calendar should have shown me as connected

Note: I have reverted to version 159, everything works correctly.

The Bugbug bot thinks this bug should belong to the 'Firefox::Firefox Accounts' component, but is not confident enough to move the bug to that component.

Component: Untriaged → General

The bug occurs on my PC, which is running Windows 11.
I have an older PC running Windows 10 that's synced to the same Firefox account.
Firefox just updated to version 160, and the bug isn't present there.

Component: General → Data Sanitization
Product: Firefox → Toolkit

This bug in update 160 is becoming a real issue; Google accounts shouldn't be disconnecting every 10 seconds. I can't even check my email because I have to sign in constantly. People keep suggesting that I check my cookies, settings, and so on—but those haven't been changed, and this bug has never happened before. Coincidentally, this started around the same time as the Microsoft bug, but that’s just a coincidence; I tested it in another browser, and my Google account stays signed in just fine, even after closing the browser. Please fix this soon—it’s been nearly a week since the update, and there’s still no sign of a patch to resolve it.

Is your exception set under "History -> Manage Exceptions"? Also, which domains exactly do you list under the exceptions? https://calendar.google.com for calendar?

(In reply to Maryam from comment #4)

Is your exception set under "History -> Manage Exceptions"? Also, which domains exactly do you list under the exceptions? https://calendar.google.com for calendar?

In the exceptions, I allow all Google cookies:

  • google.com
  • accounts.google.com
  • calendar.google.com
  • conctacts.google.com
  • mail.google.com
    But the bug persists; Google accounts disconnect when Firefox is reopened and sometimes even while in use, as Rodrigo has observed!

In the exceptions, I allow all Google cookies:

Note there were changes in how the exceptions are set:

  • You now need to set the clear-on-shutdown exceptions to exempt sites from getting cleared on shutdown.
  • The cookie permission now only(*) affects exemptions to Total Cookie Protection (and blocking cookies overall), since bug 1767271

Does the discussion on bug 2065902 help you resolve this for your case? We intent to fix the unintutive way these permissions are set in settings.

Flags: needinfo?(patrice33740)

(In reply to Patrice33740 from comment #5)

(In reply to Maryam from comment #4)

Is your exception set under "History -> Manage Exceptions"? Also, which domains exactly do you list under the exceptions? https://calendar.google.com for calendar?

In the exceptions, I allow all Google cookies:

  • google.com
  • accounts.google.com
  • calendar.google.com
  • conctacts.google.com
  • mail.google.com
    But the bug persists; Google accounts disconnect when Firefox is reopened and sometimes even while in use, as Rodrigo has observed!

Yeah, seems like you're adding the exceptions in the wrong dialog, just what Manuel said in Comment 6, we're working on clearing up the confusion with a redesign of the dialogues

See Also: → 2065902

Patrice, here the error that appears when I'm in my email is this: "Oops... the system encountered a problem (#2005)". I looked for a solution and some tips appeared: Open a private window and enter your email and test it; if it stays connected, it might be a conflict in the settings or some extension. In my case, it stayed connected.

It was then suggested that, while in a normal browsing session, I should disable my extensions (in my case, it was an email management extension) and then log in to see if the connection remains stable. It stayed connected here too.

Another suggestion—which I also followed—was: "Check your TLS / 0-RTT connection: In certain specific network environments, Firefox’s 'zero-round-trip time' (0-RTT) connection resumption feature can cause intermittent failures with Google services. You can test disabling it by typing about:config into the address bar, searching for security.tls.enable_0rtt_data, and changing its value to false."

I haven't reactivated the extension since then.

(In reply to Rodrigo from comment #8)

Another suggestion—which I also followed—was: "Check your TLS / 0-RTT connection: In certain specific network environments, Firefox’s 'zero-round-trip time' (0-RTT) connection resumption feature can cause intermittent failures with Google services. You can test disabling it by typing about:config into the address bar, searching for security.tls.enable_0rtt_data, and changing its value to false."

I haven't reactivated the extension since then.

Thanks Rodrigo,
This single configuration change was enough for me.

Starting with Firefox 159:

  • without any cookie exceptions
  • by disabling "Clear cookies and site data when you close Firefox"
  • "security.tls.enable_0rtt_data" set to False
  • several extensions enabled

Updated to Firefox 160: everything works, Google accounts don't log out.

Patrice

Flags: needinfo?(patrice33740)

by disabling "Clear cookies and site data when you close Firefox"

^ this change seems to be much more likely to cause it to work again.

Sorry for jumping to conclusions. I reread the comment 0. You mention that you already had disabled clear data on shutdown before, so maybe something different cause than I assumed altogether. I'm not aware of any changes in security.tls.enable_0rtt_data, but also not an expert on it. This is unlikely to be an issue within Toolkit :: Data Sanitization.

  • security.tls.enable_0rtt_data hints towards Core :: Security: PSM (moving there for now)
  • but could also be networking related (more caching of Alt-Srv -> using 0rtt more often?),
  • or cookies.

I'll forward to other components for further triage to perhaps get better debugging steps.

Component: Data Sanitization → Security: PSM
Product: Toolkit → Core

Kershaw, any ideas?

Flags: needinfo?(kershaw)

(In reply to Patrice33740 from comment #9)

(In reply to Rodrigo from comment #8)

Another suggestion—which I also followed—was: "Check your TLS / 0-RTT connection: In certain specific network environments, Firefox’s 'zero-round-trip time' (0-RTT) connection resumption feature can cause intermittent failures with Google services. You can test disabling it by typing about:config into the address bar, searching for security.tls.enable_0rtt_data, and changing its value to false."

I haven't reactivated the extension since then.

Thanks Rodrigo,
This single configuration change was enough for me.

Starting with Firefox 159:

  • without any cookie exceptions
  • by disabling "Clear cookies and site data when you close Firefox"
  • "security.tls.enable_0rtt_data" set to False
  • several extensions enabled

Updated to Firefox 160: everything works, Google accounts don't log out.

Patrice

You’re welcome, no problem, Patrice! I’m glad it worked for you too. I found this information by searching on Google and looking into it carefully, making sure not to make the situation worse or lose any data. I’ll keep it set to false for now, as long as it doesn’t cause any issues elsewhere.

(In reply to Patrice33740 from comment #9)

(In reply to Rodrigo from comment #8)

Another suggestion—which I also followed—was: "Check your TLS / 0-RTT connection: In certain specific network environments, Firefox’s 'zero-round-trip time' (0-RTT) connection resumption feature can cause intermittent failures with Google services. You can test disabling it by typing about:config into the address bar, searching for security.tls.enable_0rtt_data, and changing its value to false."

I haven't reactivated the extension since then.

Thanks Rodrigo,
This single configuration change was enough for me.

Starting with Firefox 159:

  • without any cookie exceptions
  • by disabling "Clear cookies and site data when you close Firefox"
  • "security.tls.enable_0rtt_data" set to False
  • several extensions enabled

Updated to Firefox 160: everything works, Google accounts don't log out.

Patrice

Hi Patrice,

Thanks for testing this. An HTTP log would help us understand what goes wrong when 0-RTT is enabled. Could you capture one while reproducing the problem?

  1. Set security.tls.enable_0rtt_data back to true in about:config.
  2. Close Firefox, then follow these instructions to set up logging. Please also add cookie:5 to MOZ_LOG, since the issue involves cookies. I suspect the connections to Google are created during startup, so please set the environment variables before starting Firefox.
  3. Once you’ve reproduced the issue, close Firefox and send the log to necko@mozilla.com.

Thanks.

Flags: needinfo?(kershaw) → needinfo?(patrice33740)

(In reply to Kershaw Chang [:kershaw] from comment #14)

(In reply to Patrice33740 from comment #9)

(In reply to Rodrigo from comment #8)

Another suggestion—which I also followed—was: "Check your TLS / 0-RTT connection: In certain specific network environments, Firefox’s 'zero-round-trip time' (0-RTT) connection resumption feature can cause intermittent failures with Google services. You can test disabling it by typing about:config into the address bar, searching for security.tls.enable_0rtt_data, and changing its value to false."

I haven't reactivated the extension since then.

Thanks Rodrigo,
This single configuration change was enough for me.

Starting with Firefox 159:

  • without any cookie exceptions
  • by disabling "Clear cookies and site data when you close Firefox"
  • "security.tls.enable_0rtt_data" set to False
  • several extensions enabled

Updated to Firefox 160: everything works, Google accounts don't log out.

Patrice

Hi Patrice,

Thanks for testing this. An HTTP log would help us understand what goes wrong when 0-RTT is enabled. Could you capture one while reproducing the problem?

  1. Set security.tls.enable_0rtt_data back to true in about:config.
  2. Close Firefox, then follow these instructions to set up logging. Please also add cookie:5 to MOZ_LOG, since the issue involves cookies. I suspect the connections to Google are created during startup, so please set the environment variables before starting Firefox.
  3. Once you’ve reproduced the issue, close Firefox and send the log to necko@mozilla.com.

Thanks.
Hi,
Sorry, but after setting security.tls.enable_0rtt_data to true, the Google accounts continue to work; they don't log out.
If the bug recurs, I'll generate the logs.

Flags: needinfo?(patrice33740)
You need to log in before you can comment on or make changes to this bug.