Bug: Intermittent browser/components/urlbar/tests/engagementTelemetry/browser/browser_glean_telemetry_engagement_edge_cases.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2023-04-27 14:04:45+00:00
Resolved: 2024-06-03 12:03:09+00:00

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

---
```
[task 2023-04-27T12:03:04.597Z] 12:03:04     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use �<!DOCTYPE html>�." {file: "http://mochi.test:8888/?terms=exam" line: 0}]
[task 2023-04-27T12:03:04.597Z] 12:03:04     INFO - Buffered messages finished
[task 2023-04-27T12:03:04.615Z] 12:03:04     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/engagementTelemetry/browser/browser_glean_telemetry_engagement_edge_cases.js | Telemetry event length matches expected event length. - 0 == 1 - {"filename":"chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/head.js","name":"_assertGleanTelemetry","sourceId":751,"lineNumber":65,"columnNumber":10,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/head.js","name":"assertEngagementTelemetry","sourceId":751,"lineNumber":52,"columnNumber":24,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/browser_glean_telemetry_engagement_edge_cases.js","name":"engagement_before_showing_results/<","sourceId":754,"lineNumber":127,"columnNumber":30,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"resource://testing-common/BrowserTestUtils.sys.mjs","name":"withNewTab","sourceId":560,"lineNumber":154,"columnNumber":22,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/head.js","name":"doTest","sourceId":751,"lineNumber":210,"columnNumber":28,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/browser_glean_telemetry_engagement_edge_cases.js","name":"engagement_before_showing_results","sourceId":754,"lineNumber":107,"columnNumber":9,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"handleTask","sourceId":526,"lineNumber":1133,"columnNumber":26,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"_runTaskBasedTest","sourceId":526,"lineNumber":1205,"columnNumber":18,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"Tester_execTest","sourceId":526,"lineNumber":1347,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest/<","sourceId":526,"lineNumber":1122,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js","name":"SimpleTest.waitForFocus/<","sourceId":554,"lineNumber":1056,"columnNumber":13,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":null,"formattedStack":"SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"nextTest/<@chrome://mochikit/content/browser-test.js:1122:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"async*Tester_execTest@chrome://mochikit/content/browser-test.js:1347:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1122:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1205:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1347:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1122:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"async*handleTask@chrome://mochikit/content/browser-test.js:1133:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1205:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1347:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1122:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"async*engagement_before_showing_results@chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/browser_glean_telemetry_engagement_edge_cases.js:107:9\nasync*handleTask@chrome://mochikit/content/browser-test.js:1133:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1205:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1347:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1122:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"async*doTest@chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/head.js:210:28\nasync*engagement_before_showing_results@chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/browser_glean_telemetry_engagement_edge_cases.js:107:9\nasync*handleTask@chrome://mochikit/content/browser-test.js:1133:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1205:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1347:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1122:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"async*withNewTab@resource://testing-common/BrowserTestUtils.sys.mjs:154:22\nasync*doTest@chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/head.js:210:28\nasync*engagement_before_showing_results@chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/browser_glean_telemetry_engagement_edge_cases.js:107:9\nasync*handleTask@chrome://mochikit/content/browser-test.js:1133:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1205:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1347:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1122:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"engagement_before_showing_results/<@chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/browser_glean_telemetry_engagement_edge_cases.js:127:30\nasync*withNewTab@resource://testing-common/BrowserTestUtils.sys.mjs:154:22\nasync*doTest@chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/head.js:210:28\nasync*engagement_before_showing_results@chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/browser_glean_telemetry_engagement_edge_cases.js:107:9\nasync*handleTask@chrome://mochikit/content/browser-test.js:1133:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1205:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1347:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1122:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"assertEngagementTelemetry@chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/head.js:52:24\nengagement_before_showing_results/<@chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/browser_glean_telemetry_engagement_edge_cases.js:127:30\nasync*withNewTab@resource://testing-common/BrowserTestUtils.sys.mjs:154:22\nasync*doTest@chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/head.js:210:28\nasync*engagement_before_showing_results@chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/browser_glean_telemetry_engagement_edge_cases.js:107:9\nasync*handleTask@chrome://mochikit/content/browser-test.js:1133:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1205:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1347:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1122:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}},"formattedStack":"_assertGleanTelemetry@chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/head.js:65:10\nassertEngagementTelemetry@chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/head.js:52:24\nengagement_before_showing_results/<@chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/browser_glean_telemetry_engagement_edge_cases.js:127:30\nasync*withNewTab@resource://testing-common/BrowserTestUtils.sys.mjs:154:22\nasync*doTest@chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/head.js:210:28\nasync*engagement_before_showing_results@chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/browser_glean_telemetry_engagement_edge_cases.js:107:9\nasync*handleTask@chrome://mochikit/content/browser-test.js:1133:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1205:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1347:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1122:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13\n","nativeSavedFrame":{}}
[task 2023-04-27T12:03:04.615Z] 12:03:04     INFO - Stack trace:
[task 2023-04-27T12:03:04.615Z] 12:03:04     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/head.js:_assertGleanTelemetry:65
[task 2023-04-27T12:03:04.616Z] 12:03:04     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/head.js:assertEngagementTelemetry:52
[task 2023-04-27T12:03:04.616Z] 12:03:04     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/browser_glean_telemetry_engagement_edge_cases.js:engagement_before_showing_results/<:127
[task 2023-04-27T12:03:04.616Z] 12:03:04     INFO - resource://testing-common/BrowserTestUtils.sys.mjs:withNewTab:154
[task 2023-04-27T12:03:04.616Z] 12:03:04     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/head.js:doTest:210
[task 2023-04-27T12:03:04.616Z] 12:03:04     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/engagementTelemetry/browser/browser_glean_telemetry_engagement_edge_cases.js:engagement_before_showing_results:107
[task 2023-04-27T12:03:04.616Z] 12:03:04     INFO - chrome://mochikit/content/browser-test.js:handleTask:1133
[task 2023-04-27T12:03:04.616Z] 12:03:04     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1205
[task 2023-04-27T12:03:04.616Z] 12:03:04     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1347
[task 2023-04-27T12:03:04.616Z] 12:03:04     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1122
[task 2023-04-27T12:03:04.616Z] 12:03:04     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1056
[task 2023-04-27T12:03:04.617Z] 12:03:04     INFO - Leaving test bound engagement_before_showing_results
[task 2023-04-27T12:03:04.617Z] 12:03:04     INFO - Entering test bound engagement_after_closing_results
[task 2023-04-27T12:03:04.618Z] 12:03:04     INFO - GECKO(5588) | [Child 7248: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 260ca231000 == 0 [pid = 7248] [id = 0] [url = http://mochi.test:8888/?terms=exam]
[task 2023-04-27T12:03:04.626Z] 12:03:04     INFO - GECKO(5588) | [Child 7248: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (260ca237c00) [pid = 7248] [serial = 3] [outer = 0] [url = http://mochi.test:8888/?terms=exam]
[task 2023-04-27T12:03:04.627Z] 12:03:04     INFO - GECKO(5588) | [Child 7248: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (260c2c8af90) [pid = 7248] [serial = 1] [outer = 0] [url = http://mochi.test:8888/?terms=exam]
[task 2023-04-27T12:03:04.628Z] 12:03:04     INFO - GECKO(5588) | [Child 7248: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (260ca235400) [pid = 7248] [serial = 2] [outer = 0] [url = about:blank]
[task 2023-04-27T12:03:04.628Z] 12:03:04     INFO - GECKO(5588) | [Child 7248, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3426
[task 2023-04-27T12:03:04.631Z] 12:03:04     INFO - GECKO(5588) | [Child 7248, Main Thread] WARNING: NS_ENSURE_TRUE(InitStaticMembers()) failed: file /builds/worker/workspace/obj-build/dist/include/mozilla/Preferences.h:129
[task 2023-04-27T12:03:04.639Z] 12:03:04     INFO - GECKO(5588) | [Child 7248, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4688
[task 2023-04-27T12:03:05.665Z] 12:03:05     INFO - GECKO(5588) | [Child 9828: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 2ab54541000 == 2 [pid = 9828] [id = 47]
[task 2023-04-27T12:03:05.666Z] 12:03:05     INFO - GECKO(5588) | [Child 9828: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (2ab4d18ada0) [pid = 9828] [serial = 139] [outer = 0]
[task 2023-04-27T12:03:05.666Z] 12:03:05     INFO - GECKO(5588) | [Child 9828: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 4 (2ab54546800) [pid = 9828] [serial = 140] [outer = 2ab4d18ada0]
[task 2023-04-27T12:03:05.697Z] 12:03:05     INFO - GECKO(5588) | [Child 9828: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 5 (2ab54547c00) [pid = 9828] [serial = 141] [outer = 2ab4d18ada0]
[task 2023-04-27T12:03:06.041Z] 12:03:06     INFO - Awaiting for the urlbar panel to open
[task 2023-04-27T12:03:06.088Z] 12:03:06     INFO - Urlbar panel opened
```