Closed Bug 1709320 Opened 5 years ago Closed 4 years ago

HTTPS-Only mode: HSTS Response leads to error page

Categories

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

defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: t.yavor, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [domsecurity-backlog1])

Attachments

(2 files)

To reproduce:
mozregression --pref dom.security.https_only_mode:true -a http://bugs.debian.org/wnpp --launch 2021-05-01

Severity: -- → S2
Status: NEW → ASSIGNED
Priority: -- → P2
Whiteboard: [domsecurity-active]
Blocks: 1683015
No longer depends on: 1683015
Depends on: 1709540
Attached image First request —

That's the first request

Attached image After reloading page —

Request that is successful

STR:

  1. enable https-only mode
  2. visit http://bugs.debian.org/wnpp

Expected : receive hsts and redirect to https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=wnpp;dist=unstable
Result: Error Page

Annotiation:

  • website answers really slow
  • we receive an NS_ERROR_NOT_IMPLEMENTED

The response with an hsts header is send too slow. Which is in the page responsibility and leads to a timeout before we can examine the hsts header.
Currently, even an increase of the timeout timer to 5 seconds wouldn't prevent https-only from showing the https-only error page. But a 10 second timeout timer would (but is unreasonable).

As discussed, increasing the timeout is not really an option at this point since we have empirically evaluated the 3000ms sweet spot. An individual end user however could increase that timeout by updating the pref dom.security.https_only_fire_http_request_background_timer_ms.

I'll mark this bus as WONTFIX.

Assignee: lyavor → nobody
Severity: S2 → S4
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Priority: P2 → P3
Resolution: --- → WONTFIX
Whiteboard: [domsecurity-active] → [domsecurity-backlog1]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: