Closed Bug 1891185 Opened 6 months ago Closed 5 months ago

HTTPS-First Telemetry is collecting bad downgrade time

Categories

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

defect

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox124 --- unaffected
firefox125 --- wontfix
firefox126 --- wontfix
firefox127 --- fixed

People

(Reporter: maltejur, Assigned: maltejur)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [domsecurity-active])

Attachments

(1 file)

Something seems to be wrong with the httpsfirst.downgrade_time and httpsfirst.downgrade_time_schemeless metrics. We have collected downgrade times as high as 35000s, and downgrade times generally seem to be much higher for schemeless HTTPS-First than for normal HTTPS-First, which we didn't expect.

Set release status flags based on info from the regressing bug 1868380

It does not make sense to collect the "downgrade time" as we currently do it when a upgrade was caused by a faster http request on a timer. We can not compare the navigation start timestamp with the current time, as the replacing http channel has started loading earlier than the current time. Instead, collecting the configured value of the timer (3s) makes more sense, as it accurately reflects the time overhead caused by HTTPS-First.

Severity: -- → S4
Priority: -- → P3
Whiteboard: [domsecurity-active]

Set release status flags based on info from the regressing bug 1868380

Pushed by mjurgens@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/754af9f77b63 Collect different downgrade time on timer for HTTPS-First telemetry r=freddyb

Backed out for causing mochitest failures on browser_httpsfirst.js

[task 2024-04-29T12:53:09.635Z] 12:53:09     INFO - TEST-PASS | dom/security/test/https-first/browser_httpsfirst.js | undefined assertion name - 
[task 2024-04-29T12:53:09.636Z] 12:53:09     INFO - Buffered messages finished
[task 2024-04-29T12:53:09.637Z] 12:53:09     INFO - TEST-UNEXPECTED-FAIL | dom/security/test/https-first/browser_httpsfirst.js | Summed downgrade time should be above 2 and below 30 seconds (is 0.10s) - 
[task 2024-04-29T12:53:09.637Z] 12:53:09     INFO - Stack trace:
[task 2024-04-29T12:53:09.638Z] 12:53:09     INFO - chrome://mochikit/content/browser-test.js:test_ok:1592
[task 2024-04-29T12:53:09.638Z] 12:53:09     INFO - chrome://mochitests/content/browser/dom/security/test/https-first/browser_httpsfirst.js:null:102
[task 2024-04-29T12:53:09.638Z] 12:53:09     INFO - chrome://mochikit/content/browser-test.js:handleTask:1139
[task 2024-04-29T12:53:09.638Z] 12:53:09     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1211
[task 2024-04-29T12:53:09.638Z] 12:53:09     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1353
[task 2024-04-29T12:53:09.638Z] 12:53:09     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1128
[task 2024-04-29T12:53:09.638Z] 12:53:09     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-04-29T12:53:09.639Z] 12:53:09     INFO - TEST-PASS | dom/security/test/https-first/browser_httpsfirst.js | undefined assertion name - 
[task 2024-04-29T12:53:09.639Z] 12:53:09     INFO - Leaving test bound 
[task 2024-04-29T12:53:09.761Z] 12:53:09     INFO - GECKO(2847) | MEMORY STAT | vsize 11322MB | residentFast 353MB | heapAllocated 180MB
[task 2024-04-29T12:53:09.762Z] 12:53:09     INFO - TEST-OK | dom/security/test/https-first/browser_httpsfirst.js | took 7061ms
Flags: needinfo?(mjurgens)
Flags: needinfo?(mjurgens)
Pushed by mjurgens@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2deb5d0fae7d Collect different downgrade time on timer for HTTPS-First telemetry r=freddyb
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch

The patch landed in nightly and beta is affected.
:mjurgens, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox126 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(mjurgens)
Duplicate of this bug: 1907543
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: