Bug: Intermittent browser/components/newtab/test/browser/browser_asrouter_toolbarbadge.js | leaked 2 window(s) until shutdown [url = about:blank]
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-11-11 06:57:18+00:00
Resolved: 2023-11-06 12:01:06+00:00

**Filed by:** nfay [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=357727351&repo=mozilla-central
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/DHIErswqRC-5upb1F56HUQ/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2021-11-11T05:37:09.502Z] 05:37:09     INFO - TEST-START | browser/components/newtab/test/browser/browser_trigger_listeners.js
<...>
[task 2021-11-11T05:37:17.857Z] 05:37:17     INFO - GECKO(5384) | Completed ShutdownLeaks collections in process 4964
[task 2021-11-11T05:37:17.868Z] 05:37:17     INFO - TEST-START | Shutdown
[task 2021-11-11T05:37:17.868Z] 05:37:17     INFO - Browser Chrome Test Summary
[task 2021-11-11T05:37:17.869Z] 05:37:17     INFO - Passed:  570
[task 2021-11-11T05:37:17.869Z] 05:37:17     INFO - Failed:  0
[task 2021-11-11T05:37:17.870Z] 05:37:17     INFO - Todo:    0
[task 2021-11-11T05:37:17.870Z] 05:37:17     INFO - Mode:    e10s
[task 2021-11-11T05:37:17.871Z] 05:37:17     INFO - *** End BrowserChrome Test Results ***
<...>
[task 2021-11-11T05:37:19.907Z] 05:37:19     INFO - TEST-INFO | Main app process: exit 0
[task 2021-11-11T05:37:19.908Z] 05:37:19     INFO - TEST-INFO | Confirming we saw 196 DOCSHELL created and 196 destroyed log strings.
[task 2021-11-11T05:37:19.909Z] 05:37:19     INFO - TEST-INFO | Confirming we saw 536 DOMWINDOW created and 536 destroyed log strings.
[task 2021-11-11T05:37:19.909Z] 05:37:19    ERROR - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/browser_asrouter_toolbarbadge.js | leaked 2 window(s) until shutdown [url = about:blank]
[task 2021-11-11T05:37:19.912Z] 05:37:19     INFO - TEST-INFO | browser/components/newtab/test/browser/browser_asrouter_toolbarbadge.js | windows(s) leaked: [pid = 1428] [serial = 1], [pid = 1428] [serial = 2]
[task 2021-11-11T05:37:19.913Z] 05:37:19    ERROR - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/browser_asrouter_toolbarbadge.js | leaked 1 docShell(s) until shutdown
[task 2021-11-11T05:37:19.914Z] 05:37:19     INFO - TEST-INFO | browser/components/newtab/test/browser/browser_asrouter_toolbarbadge.js | docShell(s) leaked: [pid = 1428] [id = 0]
[task 2021-11-11T05:37:19.914Z] 05:37:19     INFO - TEST-INFO | browser/components/newtab/test/browser/browser_asrouter_toolbarbadge.js | This test created 1 hidden window(s)
[task 2021-11-11T05:37:19.915Z] 05:37:19     INFO - TEST-INFO | browser/components/newtab/test/browser/browser_asrouter_toolbarbadge.js | This test created 1 hidden docshell(s)
<...>
[task 2021-11-11T05:37:19.992Z] 05:37:19     INFO - zombiecheck | Checking for orphan process with PID: 6904
[task 2021-11-11T05:37:19.992Z] 05:37:19     INFO - Stopping web server
[task 2021-11-11T05:37:19.992Z] 05:37:19     INFO - Server shut down.
[task 2021-11-11T05:37:20.001Z] 05:37:20     INFO - Web server killed.
[task 2021-11-11T05:37:20.002Z] 05:37:20     INFO - Stopping web socket server
[task 2021-11-11T05:37:20.033Z] 05:37:20     INFO - Stopping ssltunnel
[task 2021-11-11T05:37:20.078Z] 05:37:20     INFO - leakcheck | Processing log file C:\Users\task_163660674164855\AppData\Local\Temp\tmpdfakwp07.mozrunner\runtests_leaks.log
[task 2021-11-11T05:37:20.080Z] 05:37:20     INFO - TEST-INFO | leakcheck | default process: leak threshold set at 0 bytes
[task 2021-11-11T05:37:20.080Z] 05:37:20     INFO - TEST-INFO | leakcheck | forkserver process: leak threshold set at 0 bytes
[task 2021-11-11T05:37:20.081Z] 05:37:20     INFO - TEST-INFO | leakcheck | gmplugin process: leak threshold set at 20000 bytes
[task 2021-11-11T05:37:20.081Z] 05:37:20     INFO - TEST-INFO | leakcheck | gpu process: leak threshold set at 0 bytes
[task 2021-11-11T05:37:20.082Z] 05:37:20     INFO - TEST-INFO | leakcheck | plugin process: leak threshold set at 0 bytes
[task 2021-11-11T05:37:20.082Z] 05:37:20     INFO - TEST-INFO | leakcheck | rdd process: leak threshold set at 0 bytes
[task 2021-11-11T05:37:20.083Z] 05:37:20     INFO - TEST-INFO | leakcheck | socket process: leak threshold set at 0 bytes
[task 2021-11-11T05:37:20.083Z] 05:37:20     INFO - TEST-INFO | leakcheck | tab process: leak threshold set at 1000 bytes
[task 2021-11-11T05:37:20.084Z] 05:37:20     INFO - TEST-INFO | leakcheck | vr process: leak threshold set at 0 bytes
[task 2021-11-11T05:37:20.084Z] 05:37:20     INFO - leakcheck | Processing leak log file C:\Users\task_163660674164855\AppData\Local\Temp\tmpdfakwp07.mozrunner\runtests_leaks.log
[task 2021-11-11T05:37:20.084Z] 05:37:20     INFO - 
[task 2021-11-11T05:37:20.085Z] 05:37:20     INFO - == BloatView: ALL (cumulative) LEAK AND BLOAT STATISTICS, default process 4964
[task 2021-11-11T05:37:20.085Z] 05:37:20     INFO - 
[task 2021-11-11T05:37:20.086Z] 05:37:20     INFO -      |<----------------Class--------------->|<-----Bytes------>|<----Objects---->|
[task 2021-11-11T05:37:20.086Z] 05:37:20     INFO -      |                                      | Per-Inst   Leaked|   Total      Rem|
[task 2021-11-11T05:37:20.087Z] 05:37:20     INFO -    0 |TOTAL                                 |       66        0|11797367        0|
[task 2021-11-11T05:37:20.088Z] 05:37:20     INFO - 
[task 2021-11-11T05:37:20.088Z] 05:37:20     INFO - nsTraceRefcnt::DumpStatistics: 2187 entries
[task 2021-11-11T05:37:20.088Z] 05:37:20     INFO - TEST-PASS | leakcheck | default no leaks detected!
```