Bug: Intermittent browser/components/customizableui/test/browser_reset_dom_events.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2023-07-08 05:08:38+00:00
Resolved: 2023-07-08 08:13:14+00:00

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

---
```
[task 2023-07-08T03:22:18.996Z] 03:22:18     INFO - TEST-START | browser/components/customizableui/test/browser_reset_dom_events.js
[task 2023-07-08T03:22:19.003Z] 03:22:19     INFO - GECKO(3263) | [Parent 3263: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 13bcf4c00 == 9 [pid = 3263] [id = 174]
[task 2023-07-08T03:22:19.004Z] 03:22:19     INFO - GECKO(3263) | [Parent 3263: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 21 (175acbd40) [pid = 3263] [serial = 365] [outer = 0]
[task 2023-07-08T03:22:19.004Z] 03:22:19     INFO - GECKO(3263) | [Parent 3263: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 22 (141ed5800) [pid = 3263] [serial = 366] [outer = 175acbd40]
[task 2023-07-08T03:22:19.031Z] 03:22:19     INFO - TEST-INFO | started process screencapture
[task 2023-07-08T03:22:19.144Z] 03:22:19     INFO - TEST-INFO | screencapture: exit 0
[task 2023-07-08T03:22:19.144Z] 03:22:19     INFO - Buffered messages logged at 03:22:19
[task 2023-07-08T03:22:19.145Z] 03:22:19     INFO - Entering test bound test_reset_dom_events
[task 2023-07-08T03:22:19.145Z] 03:22:19     INFO - Buffered messages finished
[task 2023-07-08T03:22:19.147Z] 03:22:19     INFO - TEST-UNEXPECTED-FAIL | browser/components/customizableui/test/browser_reset_dom_events.js | uncaught exception - TypeError: aBrowser.addEventListener is not a function at Thumbnails_delayedCapture@chrome://browser/content/browser-thumbnails.js:144:16
[task 2023-07-08T03:22:19.147Z] 03:22:19     INFO - Thumbnails_handleEvent@chrome://browser/content/browser-thumbnails.js:77:14
[task 2023-07-08T03:22:19.147Z] 03:22:19     INFO - updateCurrentBrowser@chrome://browser/content/tabbrowser.js:1329:16
[task 2023-07-08T03:22:19.147Z] 03:22:19     INFO - _setupEventListeners/<@chrome://browser/content/tabbrowser.js:5935:16
[task 2023-07-08T03:22:19.147Z] 03:22:19     INFO - set selectedIndex@chrome://global/content/elements/tabbox.js:236:14
[task 2023-07-08T03:22:19.147Z] 03:22:19     INFO - set selectedPanel@chrome://global/content/elements/tabbox.js:246:54
[task 2023-07-08T03:22:19.147Z] 03:22:19     INFO - set selectedIndex@chrome://global/content/elements/tabbox.js:599:9
[task 2023-07-08T03:22:19.148Z] 03:22:19     INFO - set selectedItem@chrome://global/content/elements/tabbox.js:617:35
[task 2023-07-08T03:22:19.148Z] 03:22:19     INFO - set selectedTab@chrome://global/content/elements/tabbox.js:80:11
[task 2023-07-08T03:22:19.148Z] 03:22:19     INFO - set selectedTab@chrome://browser/content/tabbrowser.js:359:7
[task 2023-07-08T03:22:19.148Z] 03:22:19     INFO - addTab@chrome://browser/content/tabbrowser.js:2848:9
[task 2023-07-08T03:22:19.148Z] 03:22:19     INFO - enter@resource:///modules/CustomizeMode.sys.mjs:283:22
[task 2023-07-08T03:22:19.148Z] 03:22:19     INFO - startCustomizing@chrome://mochitests/content/browser/browser/components/customizableui/test/head.js:259:26
[task 2023-07-08T03:22:19.148Z] 03:22:19     INFO - test_reset_dom_events@chrome://mochitests/content/browser/browser/components/customizableui/test/browser_reset_dom_events.js:20:9
[task 2023-07-08T03:22:19.148Z] 03:22:19     INFO - handleTask@chrome://mochikit/content/browser-test.js:1131:26
[task 2023-07-08T03:22:19.148Z] 03:22:19     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18
[task 2023-07-08T03:22:19.148Z] 03:22:19     INFO - Tester_execTest@chrome://mochikit/content/browser-test.js:1345:14
[task 2023-07-08T03:22:19.148Z] 03:22:19     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1120:14
[task 2023-07-08T03:22:19.148Z] 03:22:19     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13
[task 2023-07-08T03:22:19.148Z] 03:22:19     INFO - 
[task 2023-07-08T03:22:19.148Z] 03:22:19     INFO - Stack trace:
[task 2023-07-08T03:22:19.149Z] 03:22:19     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:simpletestOnerror:2003
[task 2023-07-08T03:22:19.149Z] 03:22:19     INFO - chrome://browser/content/tabbrowser.js:updateCurrentBrowser:1329
[task 2023-07-08T03:22:19.149Z] 03:22:19     INFO - chrome://browser/content/tabbrowser.js:_setupEventListeners/<:5935
[task 2023-07-08T03:22:19.149Z] 03:22:19     INFO - chrome://global/content/elements/tabbox.js:set selectedIndex:236
[task 2023-07-08T03:22:19.149Z] 03:22:19     INFO - chrome://global/content/elements/tabbox.js:set selectedPanel:246
[task 2023-07-08T03:22:19.149Z] 03:22:19     INFO - chrome://global/content/elements/tabbox.js:set selectedIndex:599
[task 2023-07-08T03:22:19.149Z] 03:22:19     INFO - chrome://global/content/elements/tabbox.js:set selectedItem:617
[task 2023-07-08T03:22:19.149Z] 03:22:19     INFO - chrome://global/content/elements/tabbox.js:set selectedTab:80
[task 2023-07-08T03:22:19.149Z] 03:22:19     INFO - chrome://browser/content/tabbrowser.js:set selectedTab:359
[task 2023-07-08T03:22:19.149Z] 03:22:19     INFO - chrome://browser/content/tabbrowser.js:addTab:2848
[task 2023-07-08T03:22:19.149Z] 03:22:19     INFO - resource:///modules/CustomizeMode.sys.mjs:enter:283
[task 2023-07-08T03:22:19.149Z] 03:22:19     INFO - chrome://mochitests/content/browser/browser/components/customizableui/test/head.js:startCustomizing:259
[task 2023-07-08T03:22:19.149Z] 03:22:19     INFO - chrome://mochitests/content/browser/browser/components/customizableui/test/browser_reset_dom_events.js:test_reset_dom_events:20
[task 2023-07-08T03:22:19.149Z] 03:22:19     INFO - chrome://mochikit/content/browser-test.js:handleTask:1131
[task 2023-07-08T03:22:19.149Z] 03:22:19     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1203
[task 2023-07-08T03:22:19.149Z] 03:22:19     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1345
[task 2023-07-08T03:22:19.149Z] 03:22:19     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1120
[task 2023-07-08T03:22:19.149Z] 03:22:19     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1056
[task 2023-07-08T03:22:19.150Z] 03:22:19     INFO - GECKO(3263) | JavaScript error: chrome://browser/content/browser-thumbnails.js, line 144: TypeError: aBrowser.addEventListener is not a function
[task 2023-07-08T03:22:19.152Z] 03:22:19     INFO - Console message: [JavaScript Error: "TypeError: aBrowser.addEventListener is not a function" {file: "chrome://browser/content/browser-thumbnails.js" line: 144}]
[task 2023-07-08T03:22:19.152Z] 03:22:19     INFO - Thumbnails_delayedCapture@chrome://browser/content/browser-thumbnails.js:144:16
[task 2023-07-08T03:22:19.152Z] 03:22:19     INFO - Thumbnails_handleEvent@chrome://browser/content/browser-thumbnails.js:77:14
[task 2023-07-08T03:22:19.152Z] 03:22:19     INFO - updateCurrentBrowser@chrome://browser/content/tabbrowser.js:1329:16
[task 2023-07-08T03:22:19.152Z] 03:22:19     INFO - _setupEventListeners/<@chrome://browser/content/tabbrowser.js:5935:16
[task 2023-07-08T03:22:19.152Z] 03:22:19     INFO - set selectedIndex@chrome://global/content/elements/tabbox.js:236:14
[task 2023-07-08T03:22:19.152Z] 03:22:19     INFO - set selectedPanel@chrome://global/content/elements/tabbox.js:246:54
[task 2023-07-08T03:22:19.152Z] 03:22:19     INFO - set selectedIndex@chrome://global/content/elements/tabbox.js:599:9
[task 2023-07-08T03:22:19.152Z] 03:22:19     INFO - set selectedItem@chrome://global/content/elements/tabbox.js:617:35
[task 2023-07-08T03:22:19.152Z] 03:22:19     INFO - set selectedTab@chrome://global/content/elements/tabbox.js:80:11
[task 2023-07-08T03:22:19.152Z] 03:22:19     INFO - set selectedTab@chrome://browser/content/tabbrowser.js:359:7
[task 2023-07-08T03:22:19.152Z] 03:22:19     INFO - addTab@chrome://browser/content/tabbrowser.js:2848:9
[task 2023-07-08T03:22:19.152Z] 03:22:19     INFO - enter@resource:///modules/CustomizeMode.sys.mjs:283:22
[task 2023-07-08T03:22:19.152Z] 03:22:19     INFO - startCustomizing@chrome://mochitests/content/browser/browser/components/customizableui/test/head.js:259:26
[task 2023-07-08T03:22:19.152Z] 03:22:19     INFO - test_reset_dom_events@chrome://mochitests/content/browser/browser/components/customizableui/test/browser_reset_dom_events.js:20:9
[task 2023-07-08T03:22:19.152Z] 03:22:19     INFO - handleTask@chrome://mochikit/content/browser-test.js:1131:26
[task 2023-07-08T03:22:19.152Z] 03:22:19     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18
[task 2023-07-08T03:22:19.152Z] 03:22:19     INFO - Tester_execTest@chrome://mochikit/content/browser-test.js:1345:14
[task 2023-07-08T03:22:19.152Z] 03:22:19     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1120:14
[task 2023-07-08T03:22:19.152Z] 03:22:19     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13
[task 2023-07-08T03:22:19.153Z] 03:22:19     INFO - 
[task 2023-07-08T03:22:19.211Z] 03:22:19     INFO - GECKO(3263) | [Child 3280: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 128f56000 == 5 [pid = 3280] [id = 23] [url = about:pocket-signup?emailButton=false&utmSource=firefox_pocket_save_button&locale=en-US]
[task 2023-07-08T03:22:19.211Z] 03:22:19     INFO - GECKO(3263) | [Child 3280: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 12a3f4000 == 4 [pid = 3280] [id = 25] [url = about:blank]
[task 2023-07-08T03:22:19.212Z] 03:22:19     INFO - GECKO(3263) | [Child 3280: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 12a3f6000 == 3 [pid = 3280] [id = 26] [url = about:pocket-signup?emailButton=false&utmSource=firefox_pocket_save_button&locale=en-US]
[task 2023-07-08T03:22:19.214Z] 03:22:19     INFO - Resetting
[task 2023-07-08T03:22:19.317Z] 03:22:19     INFO - TEST-PASS | browser/components/customizableui/test/browser_reset_dom_events.js | Should've been notified of the mutation - 
```