ChatGPT website broken (if network.http.dictionaries.enable is true and network.http.accept-encoding.secure includes "br")
Categories
(Web Compatibility :: Site Reports, defect)
Tracking
(Webcompat Score:1, firefox147 verified, firefox148 verified, firefox149 verified)
| Webcompat Score | 1 |
People
(Reporter: vanni.totaro, Unassigned, NeedInfo)
References
Details
(Keywords: webcompat:platform-bug)
User Story
user-impact-score:0
Attachments
(1 file)
|
192.28 KB,
text/plain
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0
Steps to reproduce:
Trying to use ChatGPT website as usual.
Actual results:
Stopped showing chats. After logout, no way to relogin.
| Reporter | ||
Comment 1•10 months ago
|
||
Comment 2•10 months ago
|
||
Vanni, thanks for reporting this issue. I suspect you might be seeing bug 1971874.
If you open Firefox's devtools console (Ctrl+Shift+K) and reload the chatgpt.com page, do you see a JavaScript error like the following in the console?
Uncaught (in promise) TypeError: Performance.measure: Given attribute end cannot be negative
Updated•10 months ago
|
| Reporter | ||
Comment 3•10 months ago
|
||
No, I see no JavaScript errors. IMHO that old bug is not relevant.
Instead I see a lot of GET requests failing with NS_INVALID_CONTENT_ENCODING under Network tab.
(I already put that webcompat/web-bugs issue in my first comment to this issue.)
| Reporter | ||
Comment 4•10 months ago
|
||
Many but not all GET requests to https://chatgpt.com/cdn/assets/*.js fail with NS_INVALID_CONTENT_ENCODING. All (failing and succeeding) requests have Content-Encoding: br in request headers. Maybe something about Brotli decoding?
I'm confident it's an issue with Firefox because the ChatGPT website is working well under Chrome.
Comment 5•10 months ago
|
||
I am also experiencing the issue, I also see a ton of NS_INVALID_CONTENT_ENCODING errors, see picture: https://github.com/webcompat/web-bugs/issues/201270#issuecomment-3757315248
Comment 6•10 months ago
|
||
Comment 7•10 months ago
|
||
This is the results from using mozregression in Windows 11. Seems the issue started with the following build (if I am interpreting the results correctly):
app_name: firefox
build_date: 2025-12-08 16:30:45.006000
build_file: <STRIPPED>\.mozilla\mozregression\persist\23fb10f3f916-shippable--mozilla-beta--target.zip
build_type: integration
build_url: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/ObRaD4dKTs6To_hWgIY-fw/runs/0/artifacts/public%2Fbuild%2Ftarget.zip
changeset: 23fb10f3f9165c1cec151635147cf38bd281a996
pushlog_url: https://hg.mozilla.org/releases/mozilla-beta/pushloghtml?fromchange=91a40befe10ae445b16d84243653fb12c030a785&tochange=23fb10f3f9165c1cec151635147cf38bd281a996
repo_name: mozilla-beta
repo_url: https://hg.mozilla.org/releases/mozilla-beta
task_id: ObRaD4dKTs6To_hWgIY-fw
Seems that the above build is where brotli compression was introduced?
1ba472652b90ac9580bb46333dcc5f0c3d0d1b1a Kagami Sascha Rosylight — Bug 1921583 - Part 5: Refactor compression tests to cover brotli r=smaug
2f380b2498eb549ddbb8064f1306f3b6edd794d8 Kagami Sascha Rosylight — Bug 1921583 - Part 4: Support brotli in CompressionStream r=smaug
beb6ff283dd53a07216a11e3eb2e925a0ce7515e Kagami Sascha Rosylight — Bug 1921583 - Part 3: Build brotli encoder r=jfkthame
2d2eb89217a0992e0793715ef28e0fc261c84454 Kagami Sascha Rosylight — Bug 1921583 - Part 2: Support brotli in DecompressionStream r=smaug,webidl
Comment 8•10 months ago
|
||
| workaround | ||
might be related to bug 2009774 comment 11 where network.http.dictionaries.enable to false helped there
if so, bug 2009774 comment 15 has a nimbus rollout
Comment 9•10 months ago
|
||
Just tried it, network.http.dictionaries.enable works.
| Reporter | ||
Comment 10•10 months ago
|
||
Another workaround proposed here is to remove br from network.http.accept-encoding.secure
Comment 11•10 months ago
|
||
Bug 2010739 has a patch on the way, which should mitigate this via the pref-flip mentioned in comment 8. (This pref-flip mitigation is already deployed via nimbus for some portion of users with studies enabled, and bug 2010739 is adjusting the pref default value more directly in the codebase.)
Updated•10 months ago
|
Comment 12•10 months ago
|
||
Vanni the network.http.accept-encoding.secure workaround is effective, but indirect and so not recommended. It will also likely affect performance on many more websites. The cause of the problem is more directly affected by compression dictionary support.
Concretely, this is down to a choice to use self-referential compression rather than a simple HTTP 304, hitting the wrong code path. Because the file in question contains critical JS for the site, it breaks. This is something that either ChatGPT or Cloudflare (as their CDN operator) did in their implementation. My understanding is that this is a valid thing to do. Though I haven't fully confirmed that the encoding is valid, Chromium browsers get a 304, so I can't be sure that the server is completely correct.
For now, setting network.http.dictionaries.enable to false is the best option. People with studies enabled should already have this set correctly. We're also looking at updating Firefox so that you don't need to enable studies or tinker in about:config.
Updated•10 months ago
|
Updated•10 months ago
|
Comment 14•10 months ago
|
||
Verified as fixed on the Firefox for Android 147.0.1 build, and on the latest Firefox for Android Nightly 149.0a1 from 1/16, with the following devices:
- Samsung Galaxy S22 Ultra (Android 16),
- Xiaomi Redmi9C NFC (Android 10),
- Honor Magic V2 (Android 14),
- Samsung Galaxy S24 Ultra (Android 16).
Comment 15•10 months ago
|
||
Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.
Comment 18•10 months ago
|
||
Verified on Firefox 147.0.1, Firefox 148.0b3(treeherder build), or on Firefox 149.0a1 (2026-01-16)(treeherder build).
Tests were performed under Ubuntu 24.04, Windows 11 and macOS 10.15.
Chatgpt is working as expected with network.http.dictionaries.enable set to 'false' and it does not working with the pref set to 'true'.
Updated•10 months ago
|
Comment 19•10 months ago
|
||
I was able to replicate this bug on Android version 147 using a Samsung Galaxy S24, Android version 15.
My issue is I can type a query into ChatGPT, but not submit it
Comment 24•10 months ago
|
||
Justin, the fix hit the 147.0.1 Firefox for Android build.
Could you test on your device on this version?
Thank you!
Description
•