Accept-Encoding should include 'dcb' and 'dcz'
Categories
(Core :: Networking: Cache, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox147 | --- | fixed |
People
(Reporter: louis.vancraen, Assigned: jesup, NeedInfo)
References
Details
(Whiteboard: [necko-triaged])
Attachments
(3 external files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Steps to reproduce:
I visited the site: https://fireclown.myshopify.com/cart/31358403117112:1.
I then added a header to fetch a specific version of this site.
I reloaded the site.
In Chrome, I receive 'dcb' encoded assets. In Firefox, I receive 'br' encoded assets.
Actual results:
I received brotli ('br') encoded assets.
The "Accept-Encoding" was 'gzip, deflate, br, zstd'.
Expected results:
I expected to receive dictionary compressed brotli ('dcb') encoded assets.
I expected the "Accept-Encoding" to be 'gzip, deflate, br, zstd, dcb, dcz'.
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Internationalization' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•1 year ago
|
| Assignee | ||
Comment 2•1 year ago
|
||
What version of firefox are you using? Compression Dictionaries are only supported right now in Nightly (147). We hope to let it go to beta and then release in 147, but that decision hasn't been made yet.
We will send an Accept-Encoding with dcb and dcz if we have a stored dictionary for that resource being fetched (but only in that case), when we also will send an Available-Dictionary header. If there's no dictionary for a match value (and match-id) that would apply to the resource, we won't send Available-Dictionary (or dcb/dcz Accept-Encoding).
I know shopify is using dictionaries, but my understanding is they only use it for checkout flows (which your url may be)
| Assignee | ||
Updated•1 year ago
|
| Reporter | ||
Comment 3•1 year ago
|
||
Sorry, I should've specified. I'm using the Nightly version 147.0a1 (2025-11-21).
This is indeed a checkout flow on a Shopify store.
Is there a way for me to see what's in the dictionary? (a la Chrome's chrome://net-internals/#sharedDictionary)
| Assignee | ||
Comment 4•1 year ago
•
|
||
You can check if there are dictionaries saved by looking in about:cache for "dict:" entries:
about:cache-entry?storage=disk&context=&eid=dict:&uri=https://shop.app/
should show you the shopify dictionaries
Looking at that URL, I see match= patterns of things like app.*.js. This does not match https://shop.app/cdn/shopifycloud/checkout-web/assets/c1/app.d3ZVRK4C.js for example, because when combined with https://shop.com/ (per the spec), it would only match things in the root of shop.com. To match https://shop.app/cdn/shopifycloud/checkout-web/assets/c1/app.d3ZVRK4C.js it would need to be something like match=/*/app.*.js (or even match=/*app.*.js)
I suspect this is a bug in Chrome which shopify has accidentally required
See also https://urlpattern.com/
| Assignee | ||
Comment 5•1 year ago
|
||
Also about:cache-entry?storage=disk&context=&eid=dict:&uri=https://checkout.shopify.com/
| Assignee | ||
Comment 6•1 year ago
|
||
This is due to not passing the mURI for the DictionaryCacheEntry to URLPattern. The WPT tests don't cover patterns or the interface between URLPattern and Compression Dictionaries well. The case is covered in the spec in 2.2.2, step 2
| Assignee | ||
Comment 7•1 year ago
|
||
In the spec, section 2.2.2 step 2
Updated•1 year ago
|
Comment 10•1 year ago
|
||
Backed out for causing xpc faliures @test_dictionary_compression_dcb.js.
Comment 11•1 year ago
|
||
Comment 12•1 year ago
|
||
Comment 13•1 year ago
|
||
Backed out for causing xpc failures at test_dictionary_compression_dcb.js.
Backout link: https://hg-edge.mozilla.org/integration/autoland/rev/35961df577431ddeae14a432b6f4451d1fd3732d
Failure log: https://treeherder.mozilla.org/logviewer?job_id=537438883&repo=autoland&task=I6wnwAbFTmaJrnSXjn9p3A.0&lineNumber=5019
Comment 14•1 year ago
|
||
| Assignee | ||
Comment 15•1 year ago
|
||
Comment 16•1 year ago
|
||
Comment 17•1 year ago
|
||
| Assignee | ||
Comment 18•1 year ago
|
||
Comment 19•1 year ago
|
||
Comment 20•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/d9828f771202
https://hg.mozilla.org/mozilla-central/rev/a0237bf63a38
https://hg.mozilla.org/mozilla-central/rev/e4c3de2c88d6
https://hg.mozilla.org/mozilla-central/rev/9e123fe48f4c
Updated•11 months ago
|
Updated•10 months ago
|
Updated•10 months ago
|
Description
•