Bug: Intermittent browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2023-01-20 19:30:22+00:00
Resolved: 2024-12-02 06:42:47+00:00

**Filed by:** ctuns [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=403044021&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/e8U07zspQJCu6M-bolAUwA/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2023-01-20T18:18:24.660Z] 18:18:24     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js | browser.engagement.navigation.urlbar_persisted must not be recorded. - true == true - 
[task 2023-01-20T18:18:24.660Z] 18:18:24     INFO - Search for string: chocolate.
[task 2023-01-20T18:18:24.661Z] 18:18:24     INFO - Awaiting for the urlbar panel to open
[task 2023-01-20T18:18:24.661Z] 18:18:24     INFO - Console message: [JavaScript Warning: "Unknown category for SetEventRecordingEnabled: page_load"]
[task 2023-01-20T18:18:24.662Z] 18:18:24     INFO - Urlbar panel opened
[task 2023-01-20T18:18:24.662Z] 18:18:24     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”." {file: "https://www.example.com/?q=chocolate&pc=fake_code" line: 0}]
[task 2023-01-20T18:18:24.663Z] 18:18:24     INFO - Finished loading search.
[task 2023-01-20T18:18:24.663Z] 18:18:24     INFO - Buffered messages finished
[task 2023-01-20T18:18:24.664Z] 18:18:24     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js | browser.engagement.navigation.urlbar_persisted must be recorded. - false == true - JS frame :: resource://testing-common/TelemetryTestUtils.sys.mjs :: assertKeyedScalar :: line 42
[task 2023-01-20T18:18:24.664Z] 18:18:24     INFO - Stack trace:
[task 2023-01-20T18:18:24.665Z] 18:18:24     INFO - resource://testing-common/TelemetryTestUtils.sys.mjs:assertKeyedScalar:42
[task 2023-01-20T18:18:24.665Z] 18:18:24     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js:assertScalarSearchEnter:108
[task 2023-01-20T18:18:24.666Z] 18:18:24     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js:search_after_search:163
[task 2023-01-20T18:18:24.666Z] 18:18:24     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-01-20T18:18:24.666Z] 18:18:24     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js | Uncaught exception in test - at resource://testing-common/TelemetryTestUtils.sys.mjs:44 - TypeError: right-hand side of 'in' should be an object, got undefined
[task 2023-01-20T18:18:24.667Z] 18:18:24     INFO - Stack trace:
[task 2023-01-20T18:18:24.667Z] 18:18:24     INFO - assertKeyedScalar@resource://testing-common/TelemetryTestUtils.sys.mjs:44:1
[task 2023-01-20T18:18:24.667Z] 18:18:24     INFO - assertScalarSearchEnter@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js:108:22
[task 2023-01-20T18:18:24.667Z] 18:18:24     INFO - search_after_search@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js:163:26
[task 2023-01-20T18:18:24.667Z] 18:18:24     INFO - Leaving test bound search_after_search
[task 2023-01-20T18:18:24.667Z] 18:18:24     INFO - Entering test bound switch_to_tab_and_search
[task 2023-01-20T18:18:24.764Z] 18:18:24     INFO - Search for string: chocolate.
[task 2023-01-20T18:18:24.773Z] 18:18:24     INFO - Awaiting for the urlbar panel to open
[task 2023-01-20T18:18:24.795Z] 18:18:24     INFO - Urlbar panel opened
[task 2023-01-20T18:18:24.972Z] 18:18:24     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”." {file: "https://www.example.com/?q=chocolate&pc=fake_code" line: 0}]
[task 2023-01-20T18:18:24.990Z] 18:18:24     INFO - Finished loading search.
[task 2023-01-20T18:18:25.033Z] 18:18:25     INFO - Console message: [JavaScript Warning: "Unknown category for SetEventRecordingEnabled: page_load"]
[task 2023-01-20T18:18:25.405Z] 18:18:25     INFO - Loaded page: https://www.example.com/some-place
[task 2023-01-20T18:18:25.426Z] 18:18:25     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”." {file: "https://www.example.com/some-place" line: 0}]
[task 2023-01-20T18:18:25.433Z] 18:18:25     INFO - Console message: [JavaScript Warning: "Unknown category for SetEventRecordingEnabled: page_load"]
[task 2023-01-20T18:18:25.709Z] 18:18:25     INFO - Search for string: chocolate.
[task 2023-01-20T18:18:25.717Z] 18:18:25     INFO - Awaiting for the urlbar panel to open
[task 2023-01-20T18:18:25.738Z] 18:18:25     INFO - Urlbar panel opened
[task 2023-01-20T18:18:25.848Z] 18:18:25     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”." {file: "https://www.example.com/?q=chocolate&pc=fake_code" line: 0}]
[task 2023-01-20T18:18:25.886Z] 18:18:25     INFO - Finished loading search.
[task 2023-01-20T18:18:25.888Z] 18:18:25     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js | browser.engagement.navigation.urlbar_persisted must be recorded. - true == true - 
[task 2023-01-20T18:18:25.890Z] 18:18:25     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js | browser.engagement.navigation.urlbar_persisted must contain the 'search_enter' key. - true == true - 
[task 2023-01-20T18:18:25.893Z] 18:18:25     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js | browser.engagement.navigation.urlbar_persisted['search_enter'] must contain the expected value - 1 == 1 - 
[task 2023-01-20T18:18:25.894Z] 18:18:25     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js | The histogram SEARCH_COUNTS must contain other-MozSearch.urlbar-persisted. - true == true - 
[task 2023-01-20T18:18:25.896Z] 18:18:25     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js | The key other-MozSearch.urlbar-persisted must contain the expected sum in SEARCH_COUNTS. - 1 == 1 - 
[task 2023-01-20T18:18:25.897Z] 18:18:25     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js | parent must be in snapshot. Has [parent]. - true == true - 
[task 2023-01-20T18:18:25.900Z] 18:18:25     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-01-20T18:18:25.901Z] 18:18:25     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js | After filtering we must have the expected number of events. - 4 == 2 - JS frame :: resource://testing-common/TelemetryTestUtils.sys.mjs :: assertEvents :: line 237
[task 2023-01-20T18:18:25.901Z] 18:18:25     INFO - Stack trace:
[task 2023-01-20T18:18:25.901Z] 18:18:25     INFO - resource://testing-common/TelemetryTestUtils.sys.mjs:assertEvents:237
[task 2023-01-20T18:18:25.901Z] 18:18:25     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js:assertTelemetryEvents:122
[task 2023-01-20T18:18:25.902Z] 18:18:25     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js:switch_to_tab_and_search:203
[task 2023-01-20T18:18:25.903Z] 18:18:25     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js | category in event navigation#search#urlbar must match. - "navigation" matches "navigation" - 
[task 2023-01-20T18:18:25.908Z] 18:18:25     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js | method in event navigation#search#urlbar must match. - "search" matches "search" - 
[task 2023-01-20T18:18:25.909Z] 18:18:25     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js | object in event navigation#search#urlbar must match. - "urlbar" matches "urlbar" - 
[task 2023-01-20T18:18:25.909Z] 18:18:25     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js | value in event navigation#search#urlbar must match. - "enter" matches "enter" - 
[task 2023-01-20T18:18:25.910Z] 18:18:25     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js | Actual event navigation#search#urlbar expected to have extra. - true == true - 
[task 2023-01-20T18:18:25.911Z] 18:18:25     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js | Expected key engine must be in actual extra. Actual keys: [engine]. - true == true - 
[task 2023-01-20T18:18:25.911Z] 18:18:25     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js | extra[engine] must match in event navigation#search#urlbar. - "other-MozSearch" matches "other-MozSearch" - 
[task 2023-01-20T18:18:25.913Z] 18:18:25     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js | category in event navigation#search#urlbar must match. - "navigation" matches "navigation" - 
[task 2023-01-20T18:18:25.916Z] 18:18:25     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js | method in event navigation#search#urlbar must match. - "search" matches "search" - 
[task 2023-01-20T18:18:25.919Z] 18:18:25     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-01-20T18:18:25.920Z] 18:18:25     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js | object in event navigation#search#urlbar must match. - "urlbar" matches "urlbar_persisted" - JS frame :: resource://testing-common/TelemetryTestUtils.sys.mjs :: assertEvents :: line 272
[task 2023-01-20T18:18:25.920Z] 18:18:25     INFO - Stack trace:
[task 2023-01-20T18:18:25.920Z] 18:18:25     INFO - resource://testing-common/TelemetryTestUtils.sys.mjs:assertEvents:272
[task 2023-01-20T18:18:25.920Z] 18:18:25     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js:assertTelemetryEvents:122
[task 2023-01-20T18:18:25.920Z] 18:18:25     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js:switch_to_tab_and_search:203
[task 2023-01-20T18:18:25.922Z] 18:18:25     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_urlbar_telemetry_persisted.js | value in event navigation#search#urlbar must match. - "enter" matches "enter" - 
```