Closed Bug 1715253 Opened 3 years ago Closed 3 years ago

HTTPS-First ends up in an redirecting endless loop for https://radio.garden/visit/berlin/6lcXHtKK

Categories

(Core :: DOM: Security, defect, P2)

defect

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: t.yavor, Assigned: ckerschb)

References

(Blocks 1 open bug)

Details

(Whiteboard: [domsecurity-active])

Attachments

(3 files, 1 obsolete file)

STR:
mozregression --pref dom.security.https_first:true -a https://radio.garden/visit/berlin/6lcXHtKK --launch 2021-06-07

expected: a downgrade to http.
result: endless loop

Attached image Error

Redirection error in combination with http/2

The websites tries to redirect to its http site if it is called by an https request which isn't "Native".
So we get in kind of an odd loop I guess. Because the website supports https but tries to downgrade us. We receive responses to our https requests, so we won't downgrade.
Summarized:

  1. We request https://radio.garden/visit/berlin/6lcXHtKK
  2. https://radio.garden/visit/berlin/6lcXHtKK checks from which place we are calling it
  3. Page wants to downgrade us by redirecting us to http://radio.garden/visit/berlin/6lcXHtKK
  4. We upgrade the redirection and start again from stage (1)
Severity: -- → S2
Status: NEW → ASSIGNED
Priority: -- → P2
Whiteboard: [domsecurity-active]

I am driving that one over the finishing line for us

Assignee: lyavor → ckerschb
Attachment #9226147 - Attachment is obsolete: true
Pushed by mozilla@christophkerschbaumer.com: https://hg.mozilla.org/integration/autoland/rev/63e5df9ef639 Break endless upgrade downgrade loops within https-first r=necko-reviewers,kershaw
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: