Bug: Intermittent TV toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/browser_sma_open_spotlight_dialog.js | Uncaught exception in test - at resource://testing-common/sinon-7.2.7.js:3605 - TypeError: Attempted to wrap showSp
Status: RESOLVED
Priority: P1
Resolution: FIXED
Created: 2022-03-17 09:54:34+00:00
Resolved: 2022-03-21 06:43:55+00:00

**Filed by:** ccozmuta [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=371359325&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/CsmfIpbOTYqVb-mP0krSxA/runs/1/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/CsmfIpbOTYqVb-mP0krSxA/runs/1/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
[task 2022-03-17T07:41:45.979Z] 07:41:45     INFO - TEST-START | toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/browser_sma_open_spotlight_dialog.js
[task 2022-03-17T07:41:45.990Z] 07:41:45     INFO - TEST-INFO | started process screentopng
[task 2022-03-17T07:41:46.402Z] 07:41:46     INFO - TEST-INFO | screentopng: exit 0
[task 2022-03-17T07:41:46.404Z] 07:41:46     INFO - Buffered messages logged at 07:41:45
[task 2022-03-17T07:41:46.406Z] 07:41:46     INFO - Entering test bound test_OPEN_SPOTLIGHT_DIALOG
[task 2022-03-17T07:41:46.407Z] 07:41:46     INFO - Testing PB_NEWTAB_FOCUS_PROMO
[task 2022-03-17T07:41:46.407Z] 07:41:46     INFO - Buffered messages finished
[task 2022-03-17T07:41:46.409Z] 07:41:46     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/browser_sma_open_spotlight_dialog.js | Uncaught exception in test - at resource://testing-common/sinon-7.2.7.js:3605 - TypeError: Attempted to wrap showSpotlightDialog which is already wrapped
[task 2022-03-17T07:41:46.410Z] 07:41:46     INFO - Stack trace:
[task 2022-03-17T07:41:46.411Z] 07:41:46     INFO - checkWrappedMethod@resource://testing-common/sinon-7.2.7.js:3605:21
[task 2022-03-17T07:41:46.412Z] 07:41:46     INFO - wrapMethod@resource://testing-common/sinon-7.2.7.js:3653:31
[task 2022-03-17T07:41:46.413Z] 07:41:46     INFO - stub@resource://testing-common/sinon-7.2.7.js:3002:44
[task 2022-03-17T07:41:46.414Z] 07:41:46     INFO - stub@resource://testing-common/sinon-7.2.7.js:2099:33
[task 2022-03-17T07:41:46.415Z] 07:41:46     INFO - test_OPEN_SPOTLIGHT_DIALOG@chrome://mochitests/content/browser/toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/browser_sma_open_spotlight_dialog.js:19:33
[task 2022-03-17T07:41:46.416Z] 07:41:46     INFO - 
[task 2022-03-17T07:41:46.416Z] 07:41:46     INFO - --------------
[task 2022-03-17T07:41:46.417Z] 07:41:46     INFO - wrapMethod@resource://testing-common/sinon-7.2.7.js:3679:26
[task 2022-03-17T07:41:46.418Z] 07:41:46     INFO - stub@resource://testing-common/sinon-7.2.7.js:3002:44
[task 2022-03-17T07:41:46.419Z] 07:41:46     INFO - stub@resource://testing-common/sinon-7.2.7.js:2099:33
[task 2022-03-17T07:41:46.420Z] 07:41:46     INFO - test_OPEN_SPOTLIGHT_DIALOG@chrome://mochitests/content/browser/toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/browser_sma_open_spotlight_dialog.js:19:33
[task 2022-03-17T07:41:46.421Z] 07:41:46     INFO - Leaving test bound test_OPEN_SPOTLIGHT_DIALOG
[task 2022-03-17T07:41:46.422Z] 07:41:46     INFO - GECKO(6300) | MEMORY STAT | vsize 11441MB | residentFast 536MB | heapAllocated 256MB
[task 2022-03-17T07:41:46.423Z] 07:41:46     INFO - TEST-OK | toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/browser_sma_open_spotlight_dialog.js | took 64ms
[task 2022-03-17T07:41:46.424Z] 07:41:46     INFO - GECKO(6300) | [Child 6438: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7fc6905d5c00 == 2 [pid = 6438] [id = 1]
[task 2022-03-17T07:41:46.425Z] 07:41:46     INFO - GECKO(6300) | [Child 6438: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (7fc6aae7c900) [pid = 6438] [serial = 3] [outer = 0]
[task 2022-03-17T07:41:46.426Z] 07:41:46     INFO - GECKO(6300) | [Child 6438: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 4 (7fc6905d6000) [pid = 6438] [serial = 4] [outer = 7fc6aae7c900]
[task 2022-03-17T07:41:46.427Z] 07:41:46     INFO - checking window state
[task 2022-03-17T07:41:46.438Z] 07:41:46     INFO - GECKO(6300) | [Parent 6300: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 13 (7f0b0a609800) [pid = 6300] [serial = 13] [outer = 7f0b2f165900]
[task 2022-03-17T07:41:46.439Z] 07:41:46     INFO - GECKO(6300) | [Parent 6300, Main Thread] WARNING: NS_ENSURE_TRUE(presShell) failed: file /builds/worker/checkouts/gecko/dom/base/nsGlobalWindowOuter.cpp:4165
[task 2022-03-17T07:41:46.570Z] 07:41:46     INFO - GECKO(6300) | [Child 6438: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7fc6905d2c00 == 1 [pid = 6438] [id = 0] [url = about:blank]
[task 2022-03-17T07:41:46.631Z] 07:41:46     INFO - GECKO(6300) | [Child 6403: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7fc8996ca800 == 1 [pid = 6403] [id = 0] [url = about:blank]
[task 2022-03-17T07:41:46.631Z] 07:41:46     INFO - GECKO(6300) | [Child 6403: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7fc8996d2c00 == 0 [pid = 6403] [id = 1] [url = about:blank]
[task 2022-03-17T07:41:46.670Z] 07:41:46     INFO - GECKO(6300) | [Child 6403: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 5 (7fc8996cb000) [pid = 6403] [serial = 2] [outer = 0] [url = about:blank]
[task 2022-03-17T07:41:46.671Z] 07:41:46     INFO - GECKO(6300) | [Child 6403: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (7fc8996cc800) [pid = 6403] [serial = 3] [outer = 0] [url = about:blank]
[task 2022-03-17T07:41:46.735Z] 07:41:46     INFO - GECKO(6300) | [Child 6403: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (7fc8b3e7c200) [pid = 6403] [serial = 1] [outer = 0] [url = about:blank]
[task 2022-03-17T07:41:46.738Z] 07:41:46     INFO - GECKO(6300) | [Child 6403: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (7fc8b3e7c3c0) [pid = 6403] [serial = 5] [outer = 0] [url = about:blank]
[task 2022-03-17T07:41:46.816Z] 07:41:46     INFO - GECKO(6300) | [Child 6433: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7fc2c20d4000 == 0 [pid = 6433] [id = 0] [url = about:newtab]
[task 2022-03-17T07:41:46.822Z] 07:41:46     INFO - GECKO(6300) | [Child 6433, Main Thread] WARNING: NS_ENSURE_TRUE(!mHasOrHasHadOwnerWindow || mOwnerWindow) failed: file /builds/worker/checkouts/gecko/dom/events/DOMEventTargetHelper.cpp:306
[task 2022-03-17T07:41:46.827Z] 07:41:46     INFO - GECKO(6300) | [Child 6375: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f11b2fb2400 == 5 [pid = 6375] [id = 3] [url = moz-extension://6207d941-e4bd-46b5-bf27-556a006d5d07/_generated_background_page.html]
[task 2022-03-17T07:41:46.925Z] 07:41:46     INFO - GECKO(6300) | [Child 6375: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 17 (7f11b1e4fc00) [pid = 6375] [serial = 17] [outer = 0] [url = about:blank]
[task 2022-03-17T07:41:46.928Z] 07:41:46     INFO - GECKO(6300) | [Child 6375: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 16 (7f11b2fb3800) [pid = 6375] [serial = 10] [outer = 0] [url = about:blank]
[task 2022-03-17T07:41:46.931Z] 07:41:46     INFO - GECKO(6300) | [Child 6375: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 15 (7f11b2fb2800) [pid = 6375] [serial = 8] [outer = 0] [url = about:blank]
[task 2022-03-17T07:41:46.933Z] 07:41:46     INFO - GECKO(6300) | [Child 6375: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 14 (7f11b2fb1800) [pid = 6375] [serial = 6] [outer = 0] [url = about:blank]
[task 2022-03-17T07:41:46.935Z] 07:41:46     INFO - GECKO(6300) | [Child 6433: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (7fc2c20d4c00) [pid = 6433] [serial = 2] [outer = 0] [url = about:blank]
[task 2022-03-17T07:41:46.936Z] 07:41:46     INFO - GECKO(6300) | [Child 6375: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 13 (7f11b2faf800) [pid = 6375] [serial = 4] [outer = 0] [url = about:blank]
[task 2022-03-17T07:41:46.938Z] 07:41:46     INFO - GECKO(6300) | [Child 6375: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 12 (7f11b2fae400) [pid = 6375] [serial = 2] [outer = 0] [url = about:blank]
[task 2022-03-17T07:41:47.011Z] 07:41:47     INFO - GECKO(6300) | [Child 6375: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 11 (7f11b2712200) [pid = 6375] [serial = 7] [outer = 0] [url = moz-extension://6207d941-e4bd-46b5-bf27-556a006d5d07/_generated_background_page.html]
[task 2022-03-17T07:41:47.083Z] 07:41:47     INFO - GECKO(6300) | [Child 6433: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (7fc2dc97c740) [pid = 6433] [serial = 1] [outer = 0] [url = about:newtab]
<...>
[task 2022-03-17T07:41:49.993Z] 07:41:49     INFO - GECKO(6300) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to /tmp/tmpdnt9n5ha.mozrunner/runtests_leaks_tab_pid6596.log
[task 2022-03-17T07:41:49.996Z] 07:41:49     INFO - GECKO(6300) | [6596, Main Thread] WARNING: XPCOM_MEM_BLOAT_LOG is set, disabling native allocations.: file /builds/worker/checkouts/gecko/tools/profiler/core/platform.cpp:282
[task 2022-03-17T07:41:50.024Z] 07:41:50     INFO - GECKO(6300) | [Child 6596, Main Thread] WARNING: could not set real-time limit in CubebUtils::InitLibrary: file /builds/worker/checkouts/gecko/dom/media/CubebUtils.cpp:693
[task 2022-03-17T07:41:51.772Z] 07:41:51     INFO - GECKO(6300) | [Parent 6300: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 10 (7f0b0a609800) [pid = 6300] [serial = 13] [outer = 0] [url = about:blank]
[task 2022-03-17T07:41:52.181Z] 07:41:52     INFO - GECKO(6300) | Completed ShutdownLeaks collections in process 6300
[task 2022-03-17T07:41:52.187Z] 07:41:52     INFO - TEST-START | Shutdown
```