Bug: Intermittent browser/components/newtab/test/browser/browser_newtab_ping.js | Uncaught exception in test - at chrome://mochitests/content/browser/<...>/browser_newtab_ping.js:48 - TypeError: can't access property "length", record is undefined
Status: RESOLVED
Priority: P1
Resolution: FIXED
Created: 2022-06-17 22:59:10+00:00
Resolved: 2022-06-28 16:19:02+00:00

**Filed by:** imoraru [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=381743204&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Wo6mCJsFToO1bgBzGFuElg/runs/0/artifacts/public/logs/live_backing.log
**Reftest URL:** https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Wo6mCJsFToO1bgBzGFuElg/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
[task 2022-06-17T21:09:28.250Z] 21:09:28     INFO - TEST-START | browser/components/newtab/test/browser/browser_newtab_ping.js
[task 2022-06-17T21:09:28.296Z] 21:09:28     INFO - GECKO(8577) | [Child 8735, Main Thread] WARNING: '!CanHandleWith(aPresContext)', file /builds/worker/checkouts/gecko/dom/events/IMEStateManager.cpp:498
[task 2022-06-17T21:09:28.570Z] 21:09:28     INFO - GECKO(8577) | [Child 8727: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7fead93c1000 == 8 [pid = 8727] [id = 19]
[task 2022-06-17T21:09:28.570Z] 21:09:28     INFO - GECKO(8577) | [Child 8727: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 35 (7fead7a5af60) [pid = 8727] [serial = 58] [outer = 0]
[task 2022-06-17T21:09:28.575Z] 21:09:28     INFO - GECKO(8577) | [Child 8727: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 36 (7fead93c1c00) [pid = 8727] [serial = 59] [outer = 7fead7a5af60]
[task 2022-06-17T21:09:28.620Z] 21:09:28     INFO - GECKO(8577) | [Child 8727: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 37 (7fead93be000) [pid = 8727] [serial = 60] [outer = 7fead7a5af60]
[task 2022-06-17T21:09:28.736Z] 21:09:28     INFO - TEST-INFO | started process screentopng
[task 2022-06-17T21:09:29.244Z] 21:09:29     INFO - TEST-INFO | screentopng: exit 0
[task 2022-06-17T21:09:29.244Z] 21:09:29     INFO - Buffered messages logged at 21:09:28
[task 2022-06-17T21:09:29.246Z] 21:09:29     INFO - Entering setup bound 
[task 2022-06-17T21:09:29.247Z] 21:09:29     INFO - Leaving setup bound 
[task 2022-06-17T21:09:29.248Z] 21:09:29     INFO - Entering test bound test_newtab_tab_close_sends_ping
[task 2022-06-17T21:09:29.249Z] 21:09:29     INFO - Buffered messages finished
[task 2022-06-17T21:09:29.250Z] 21:09:29     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/browser_newtab_ping.js | Uncaught exception in test - at chrome://mochitests/content/browser/browser/components/newtab/test/browser/browser_newtab_ping.js:48 - TypeError: can't access property "length", record is undefined
[task 2022-06-17T21:09:29.251Z] 21:09:29     INFO - Stack trace:
[task 2022-06-17T21:09:29.253Z] 21:09:29     INFO - test_newtab_tab_close_sends_ping@chrome://mochitests/content/browser/browser/components/newtab/test/browser/browser_newtab_ping.js:48:3
[task 2022-06-17T21:09:29.254Z] 21:09:29     INFO - Leaving test bound test_newtab_tab_close_sends_ping
[task 2022-06-17T21:09:29.255Z] 21:09:29     INFO - Entering test bound test_newtab_tab_nav_sends_ping
[task 2022-06-17T21:09:29.256Z] 21:09:29     INFO - GECKO(8577) | [Child 8727: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7feada738400 == 9 [pid = 8727] [id = 20]
[task 2022-06-17T21:09:29.257Z] 21:09:29     INFO - GECKO(8577) | [Child 8727: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 38 (7fead7a5b6a0) [pid = 8727] [serial = 61] [outer = 0]
[task 2022-06-17T21:09:29.258Z] 21:09:29     INFO - GECKO(8577) | [Child 8727: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 39 (7feada738800) [pid = 8727] [serial = 62] [outer = 7fead7a5b6a0]
[task 2022-06-17T21:09:29.396Z] 21:09:29     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_newtab_ping.js | Should only be one open - 1 == 1 - 
```