Closed Bug 1906590 Opened 1 year ago Closed 1 year ago

HTTPS-Only/First shouldn't try to downgrade pages on 3s timer that have HTTPS RR enabled

Categories

(Core :: Networking: HTTP, defect, P2)

defect
Points:
3

Tracking

()

RESOLVED FIXED
137 Branch
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.

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.

Blocks: httpssvc
Component: DOM: Security → Networking: HTTP
See Also: → 1722489
Severity: -- → S3
Priority: -- → P2
Whiteboard: [domsecurity-active] → [domsecurity-active][necko-triaged][necko-priority-new]
Whiteboard: [domsecurity-active][necko-triaged][necko-priority-new] → [domsecurity-active][necko-triaged][necko-priority-next]
Points: --- → 3
Rank: 3
Whiteboard: [domsecurity-active][necko-triaged][necko-priority-next] → [domsecurity-active][necko-triaged][necko-priority-queue]
Assignee: nobody → edgul
Attachment #9428832 - Attachment description: Bug 1906590 - Make HTTPS-Only/First not downgrade when HTTPS RR is enabled r?valentin,simonf → WIP: Bug 1906590 - Make HTTPS-Only/First not downgrade when HTTPS RR is enabled r?valentin,simonf
Duplicate of this bug: 1937983

The path forward on this is not clear to me. Can someone please advise?

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?

Attachment #9428832 - Attachment description: WIP: Bug 1906590 - Make HTTPS-Only/First not downgrade when HTTPS RR is enabled r?valentin,simonf → WIP: Bug 1906590 - Make HTTPS-Only/First not downgrade when HTTPS RR is enabled
Attachment #9428832 - Attachment description: WIP: Bug 1906590 - Make HTTPS-Only/First not downgrade when HTTPS RR is enabled → Bug 1906590: Stop HTTPS-First downgrade when HTTPS RR exists r=edgul,valentin
Assignee: edgul → nobody
Assignee: nobody → sfriedberger
Status: NEW → ASSIGNED
Pushed by sfriedberger@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/02bc8b92025d Stop HTTPS-First downgrade when HTTPS RR exists r=valentin,necko-reviewers,edgul,kershaw

Backed out for causing mochitests failures in browser_https_rr_no_downgrade.js.

Flags: needinfo?(sfriedberger)
Flags: needinfo?(sfriedberger)
Pushed by sfriedberger@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1bf7d34d6bcd Stop HTTPS-First downgrade when HTTPS RR exists r=valentin,necko-reviewers,edgul,kershaw
See Also: → 1950094

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.

Flags: needinfo?(sfriedberger)
Pushed by sfriedberger@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cc187638a970 Stop HTTPS-First downgrade when HTTPS RR exists r=valentin,necko-reviewers,edgul,kershaw
Regressions: 1950553
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
Duplicate of this bug: 1711518
See Also: → 1971798
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: