HTTPS-Only/First shouldn't try to downgrade pages on 3s timer that have HTTPS RR enabled
Categories
(Core :: Networking: HTTP, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox137 | --- | fixed |
People
(Reporter: simonf, Assigned: simonf)
References
(Blocks 3 open bugs)
Details
(Whiteboard: [domsecurity-active][necko-triaged][necko-priority-queue])
Attachments
(1 file)
We have the same for HSTS in bug 1903292 but HTTPS RR is more involved and the spec draft is not clear yet.
Comment 1•1 year ago
|
||
After the fix for Bug 1903292 lands, the only thing we would need to do to fix this it to move the HTTPS RR check before the one for HTTPS-Only (similar to what was done in Bug 1722489).
Also moving this to the Necko component, as they have worked on HTTPS RR so far.
| Assignee | ||
Comment 2•1 year ago
|
||
In case it's helpful, I created this trace last week: https://pernos.co/debug/5J3YSwQVXnayn8k6g0SNRw/index.html#f{m[B1Fs,VxQc_,t[AQ,kuc_,f{e[B1Fs,VxIZ_,s{ae5ONgAAA,bAZI,uBBvVLw,oBCjD/Q___/
Updated•1 year ago
|
Updated•1 year ago
|
The path forward on this is not clear to me. Can someone please advise?
Comment 6•1 year ago
|
||
To recap, HTTPS-First is changing request protocols to HTTPS and if the request does not succeed (or takes longer than 3s), we fall back to HTTPS.
When the site uses HTTPS RR, then it is clearly signaling that the browser MUST use HTTPS and we should not fall back. Similar to how we respect HSTS and do not fall back to HTTP.
The bug is that we don't fully respect HTTPS RR by introducing the fallback to HTTP after 3 seconds. Bug 1903292 has more info about the HSTS-case.
Does that answer your question?
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Comment 8•1 year ago
|
||
Backed out for causing mochitests failures in browser_https_rr_no_downgrade.js.
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | dom/security/test/https-first/browser_https_rr_no_downgrade.js | Should upgrade - Got 8, expected 1
| Assignee | ||
Updated•1 year ago
|
Comment 10•1 year ago
|
||
Backed out for causing failures at browser_https_rr_no_downgrade.js.
Backout link: https://hg.mozilla.org/integration/autoland/rev/5891b5225371504454654e425f593a673427693e
Failure log: https://firefoxci.taskcluster-artifacts.net/K9cDNB-7QeO_YweyowHi_w/0/public/logs/live_backing.log
Failure line: TEST-UNEXPECTED-FAIL | dom/security/test/https-first/browser_https_rr_no_downgrade.js | For example.org we pretend to have an HTTPS RR and don't downgrade. - false == true -
| Assignee | ||
Comment 11•1 year ago
•
|
||
I've disabled the test for MacOS 10.15. I assume the test failed there because it did not have support for HTTPS RR yet.
Comment 12•1 year ago
|
||
Comment 13•1 year ago
|
||
| bugherder | ||
Description
•