Closed Bug 2095753 Opened 9 days ago Closed 9 days ago

browser_page_load_event_telemetry.js fails when run twice in the same browser, because its documents come from the HTTP cache

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 external file)

When dom/base/test/browser_page_load_event_telemetry.js runs a second time in the same browser session (as in the upcoming mochitest-repeat jobs), two tasks fail every time:

  • test_navigation_before_load_event: "It should still carry the response timing it did have."
  • test_proxy_type: "The proxy the document was loaded through is reported. - "0" == "1""

The documents they measure (file_redirect_before_load.html, empty.html?proxy_type) are in the HTTP cache by the second run. A cache hit has no response time and no proxy type, which is the expected product behavior. The fix is to load them from URLs that are unique to each run.

Blocks: 2092566
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/aba5f8dd8c92 https://hg.mozilla.org/integration/autoland/rev/1e2923d93642 Avoid HTTP cache hits in browser_page_load_event_telemetry.js when it runs a second time, r=denispal.
Status: ASSIGNED → RESOLVED
Closed: 9 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: