fix(emulate): correct Firefox 147+ Accept-Language q-value - #178
Merged
Merged
Conversation
Firefox 147 changed how Accept-Language q-values are generated: the list used to divide 1.0 across its entries, giving q=0.5 for a two-entry list, and now decrements by 0.1 per entry, giving q=0.9. See Bugzilla 2000765 (target milestone 147 Branch), landed in mozilla-firefox 0e050ae5116d. The Firefox 147 through 152 profiles still emitted the pre-147 value. Profiles below 147 are unchanged. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0x676e67
approved these changes
Sep 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #177.
Firefox 147 changed how
Accept-Languageq-values are generated. The list used to divide 1.0 across its entries, givingq=0.5for a two-entry list, and now decrements by 0.1 per entry, givingq=0.9.0e050ae5116dThe Firefox 147 through 152 profiles still emit the pre-147 value, so they differ from the browser they emulate by that one header.
Changes
header_firefox_accept!gains azstd_q09arm, and the arms now share a common@buildarm instead of repeating the three insertsheader_initializer_with_zstd_q09, identical toheader_initializer_with_zstdapart from the q-valueNote on CI
crates/wreq-utilis not a workspace member, so CI compiles it as a patched dependency but does not execute its test targets. The added test was run locally against thewreqrev this branch pins, both with and withoutemulation-compression.🤖 Generated with Claude Code