stackoverflow.com - Redirects to login page when trying to access the full inbox
Categories
(Web Compatibility :: Site Reports, defect, P1)
Tracking
(Webcompat Score:10, Webcompat Priority:P1, firefox-esr115 affected, firefox-esr128 affected, firefox135 wontfix, firefox136 wontfix, firefox137 fixed, firefox138 fixed)
People
(Reporter: ctanase, Assigned: timhuang, NeedInfo)
References
(Regression, )
Details
(Keywords: regression, webcompat:platform-bug, webcompat:site-report, Whiteboard: [webcompat:sightline] [qa-triaged])
User Story
platform:windows,mac,linux,android impact:workflow-broken configuration:general affects:all branch:release diagnosis-team:privacy user-impact-score:2400
Attachments
(3 files)
Environment:
Operating system: OnePlus 6 A6000 (Android 11)
Firefox version: Nightly 137.0a1-20250218205441
Preconditions:
• Clean profile
• Must be logged in
Steps to reproduce:
- Go to https://stackoverflow.com
- Tap on the inbox/notifications button in the header.
- Tap on "Go to full inbox" button located at the bottom of the inbox menu.
Expected Behavior:
Redirected to the inbox page.
Actual Behavior:
Redirected to login page.
Notes:
- Screenshot attached
- Reproducible regardless of the ETP status
- Reproducible on Firefox Release as well
- Not reproducible on Chrome
- Issue found during WebCompat team [Top100] websites testing
Comment 1•1 month ago
|
||
Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.
Updated•1 month ago
|
Comment 2•27 days ago
|
||
They're redirecting to a different domain, but it's signed in in Chrome, so this might be something Cookie related.
Comment 3•26 days ago
|
||
I can repro on android and Windows, so it's not android only.
Ed: can you look at the cookies? Perhaps it has to do with 3pcc or chips?
Some quick notes, still poking around.
I am able to reproduce on today's desktop linux nightly and release 135.
Disabling CHIPS doesn't change anything.
Disabling 3rd party cookie deprecation doesn't change anything.
Disabling ETP doesn't change anything.
If I clear cookies and site data via stackoverflow's address bar, then re-login, then I can no longer reproduce.
I should clarify that in Comment 4 I wasn't clear on HOW I was clearing site data. I've updated this since it matters.
Some more notes about reproduction.
- Note first that there are two login portals one for
stackoverflow.com
and once formeta.stackexchange.com
- With a fresh profile and login through
stackoverflow.com
's portal then I can reproduce. - Clicking on the "go to full inbox" leads to login portal for the site
https://meta.stackexchange.com
- If you are not already logged into stackexchange, then you will see the bug here, but once logged in via stackexchange the bug does not reproduce.
- I noted above that that clearing data via stackoverflow's address bar doesn't change that fact.
- however clearing data via stackexchange's address bar DOES, (and we end up back at the reproducible state)
- we can also clear data via
about:preferences
, which accomplishes the necessary clearing (and then some for other sites) by clearing only "cookies and site data"
So it seems like we are not sending the login cookie to the stackexchange
because it's considered 3rd party. Still digging...
Going slowly through the steps to reproduce:
From fresh profile.
Login to stack overflow only.
Note that the cookieDB's raw entry for the login cookie is a PARTITIONED cookie with a stackexchange Domain attribute (samesite=None):
38 ^partitionKey=%28https%2Cstackoverflow.com%29 acct <value> .stackexchange.com / 1756156315 1740517915669428 1740517915669428 1 1 0 0 0 2 0
After logging into the stackexchange portal then we note a similar, but UNPARTITIONED cookie:
57 <empty partition> acct <value> .stackexchange.com / 1756156714 1740518314754910 1740518314754910 1 1 0 0 0 2 0
So again from fresh profile, I login only to stackoverflow
and then manually remove the partitionKey entry from the acct
cookie for .stackexchange
host in the cookie DB and restart firefox,
then the button from stackoverflow "go to full inbox" works!
Still need to look into the desired behaviour:
- Should the partitionkey have been set at all?
- Should the browser be sending it anyway?
During stackoverflow login we observe the exchange between stackexchange with:
- network.cookie.cookieBehavior.optInPartitioning = false
- network.cookie.CHIPS.enabled = false
request to stackexchange
Accept image/avif,image/webp,image/png,image/svg+xml,image/;q=0.8,/*;q=0.5
Accept-Encoding gzip, deflate, br, zstd
Accept-Language en-CA,en-US;q=0.7,en;q=0.3
Connection keep-alive
Host stackexchange.com
Origin https://stackoverflow.com
Priority u=5, i
Referer https://stackoverflow.com/
Sec-Fetch-Dest image
Sec-Fetch-Mode cors
Sec-Fetch-Site cross-site
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0
response from stackexchange
Set-Cookie: acct=some_unique_cookie_value; expires=Mon, 25 Aug 2025 21:58:03 GMT; domain=.stackexchange.com; path=/; secure; samesite=none; httponly
So since this is coming cookie is coming from stackexchange
, then we can expect the explicit domain setting to be fine for this.
The problem turns out to be that ETP partitions the cookie. I didn't detect this before because ETP needs to be disabled at the time of "first" login with stackoverflow
, not the "second" login with stackexchange
. I tested again with CHIPS and optInPartitioning enabled and everything works as expected when ETP cookies are disabled or by site exemption for ETP (provided previous cookies have been removed.
Tim, do you know the best path forward for this?
Assignee | ||
Comment 9•23 days ago
|
||
We need a shim script here to request storage access when a user tries to log in on stackoverflow.com
. I can work on the shim script.
Assignee | ||
Updated•23 days ago
|
Assignee | ||
Comment 10•23 days ago
|
||
Updated•20 days ago
|
Updated•20 days ago
|
Comment 11•19 days ago
|
||
Set release status flags based on info from the regressing bug 1776760
Updated•13 days ago
|
Comment 12•9 days ago
|
||
Comment 13•9 days ago
|
||
bugherder |
Comment 14•6 days ago
|
||
The patch landed in nightly and beta is affected.
:timhuang, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox137
towontfix
.
For more information, please visit BugBot documentation.
Assignee | ||
Comment 15•6 days ago
|
||
Tom, should we uplift the fix? I am not sure how uplift works for the WebCompat extension.
Comment 16•5 days ago
|
||
Updated•5 days ago
|
Comment 17•5 days ago
|
||
beta Uplift Approval Request
- User impact if declined: Signed-in StackOverflow users will not be able to access their full inbox.
- Code covered by automated testing: no
- Fix verified in Nightly: yes
- Needs manual QE test: yes
- Steps to reproduce for manual QE testing: 1) Visit https://stackoverflow.com 2) Click the inbox/notifications button in the header 3) Click on "Go to full inbox" button located at the bottom of the inbox menu 4) Verify that it works, and does not redirect to the login page.
- Risk associated with taking this patch: low
- Explanation of risk level: Only affects login on StackOverflow, and only contains changes to the webcompat built-in addon.
- String changes made/needed: none
- Is Android affected?: yes
Updated•5 days ago
|
Comment 18•5 days ago
|
||
uplift |
Updated•5 days ago
|
Updated•4 days ago
|
Description
•