Speculation-rules prefetch is used for a navigation that differs in a non-ASCII query key listed in No-Vary-Search `except`
Categories
(Core :: DOM: Networking, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox161 | --- | fixed |
People
(Reporter: smayya, Assigned: acreskey)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged][fxpe])
Attachments
(1 external file, 1 obsolete file)
speculation-rules/prefetch/no-vary-search/prefetch-single.https.html?29-29 fails with the patches for bug 2070841:
Don't use the prefetched URL. Non-ASCII key - 2 UTF-8 code units. Vary the response on the non-ASCII key.: assert_equals: Navigation used the prefetched response! expected (undefined) undefined but got (string) "prefetch"
The prefetched response has No-Vary-Search: params, except=("%C2%A2"). The prefetch uses ?¢=3 and the navigation uses ?¢=4, so the URLs differ in the one key that must not be ignored, and the prefetch should not be used. The navigation matches it anyway, which suggests the except key isn't compared correctly when it's a percent-encoded non-ASCII key.
| Reporter | ||
Updated•1 month ago
|
| Reporter | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
The same patch will fix all three of these
prefetch-single.https.html?27-27
prefetch-single.https.html?28-28
prefetch-single.https.html?29-29
| Assignee | ||
Comment 2•1 month ago
|
||
| Assignee | ||
Comment 3•1 month ago
|
||
Query names were decoded but header keys weren't, so encoded keys like "%C2%A2" never matched (draft section 5.3).
Updated•1 month ago
|
Updated•26 days ago
|
Comment 7•25 days ago
|
||
| bugherder | ||
Updated•20 days ago
|
Description
•