Bug: Intermittent browser_sma_open_private_browser_window.js | A promise chain failed to handle a rejection: ok is not defined - stack: @chrome://*/browser/toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/head.js:27:3
Status: RESOLVED
Priority: --
Resolution: INVALID
Created: 2020-07-18 11:20:46+00:00
Resolved: 2020-07-21 07:47:56+00:00

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

---

```
[task 2020-07-18T10:46:35.492Z] 10:46:35     INFO - TEST-START | toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/browser_sma_open_private_browser_window.js
[task 2020-07-18T10:46:35.493Z] 10:46:35     INFO - GECKO(2357) | [Parent 2357: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 0x130e71400 == 9 [pid = 2357] [id = {941bf61c-1aec-7540-8638-49d6d0432e7a}]
[task 2020-07-18T10:46:35.493Z] 10:46:35     INFO - GECKO(2357) | [Parent 2357: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 17 (0x1569422b0) [pid = 2357] [serial = 17] [outer = 0x0]
[task 2020-07-18T10:46:35.493Z] 10:46:35     INFO - GECKO(2357) | [Parent 2357: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 18 (0x156909c00) [pid = 2357] [serial = 18] [outer = 0x1569422b0]
[task 2020-07-18T10:46:35.495Z] 10:46:35     INFO - GECKO(2357) | JavaScript error: chrome://mochitests/content/browser/toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/head.js, line 27: ReferenceError: ok is not defined
[task 2020-07-18T10:46:35.495Z] 10:46:35     INFO - GECKO(2357) | [Parent 2357, Main Thread] WARNING: NS_ENSURE_TRUE(rootFrame) failed: file /builds/worker/checkouts/gecko/dom/base/nsGlobalWindowOuter.cpp, line 4244
[task 2020-07-18T10:46:35.829Z] 10:46:35     INFO - GECKO(2357) | [Parent 2357: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 0x12b424800 == 10 [pid = 2357] [id = {2d5646ce-cd41-ca40-be0e-d93236a5e838}]
[task 2020-07-18T10:46:35.829Z] 10:46:35     INFO - GECKO(2357) | [Parent 2357: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 19 (0x156942480) [pid = 2357] [serial = 19] [outer = 0x0]
[task 2020-07-18T10:46:35.868Z] 10:46:35     INFO - GECKO(2357) | [Child 2362: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 0x12755e800 == 5 [pid = 2362] [id = {72f036b6-be1e-ec4d-b0b4-956f11c09e83}]
[task 2020-07-18T10:46:35.869Z] 10:46:35     INFO - GECKO(2357) | [Child 2362: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 13 (0x11fd226a0) [pid = 2362] [serial = 13] [outer = 0x0]
[task 2020-07-18T10:46:35.869Z] 10:46:35     INFO - GECKO(2357) | [Child 2362: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 14 (0x12755f800) [pid = 2362] [serial = 14] [outer = 0x11fd226a0]
[task 2020-07-18T10:46:35.926Z] 10:46:35     INFO - GECKO(2357) | [Parent 2357: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 20 (0x1349b3c00) [pid = 2357] [serial = 20] [outer = 0x156942480]
[task 2020-07-18T10:46:36.141Z] 10:46:36     INFO - GECKO(2357) | [Parent 2357, Main Thread] WARNING: NS_ENSURE_TRUE(mPresShell) failed: file /builds/worker/checkouts/gecko/layout/generic/nsFrameSelection.cpp, line 1605
[task 2020-07-18T10:46:36.262Z] 10:46:36     INFO - GECKO(2357) | [Child 2362, Main Thread] WARNING: NS_ENSURE_TRUE(request) failed: file /builds/worker/checkouts/gecko/netwerk/base/nsLoadGroup.cpp, line 595
[task 2020-07-18T10:46:36.285Z] 10:46:36     INFO - GECKO(2357) | [Parent 2357, Main Thread] WARNING: 'aOwner->IsDiscarded()', file /builds/worker/workspace/obj-build/dist/include/mozilla/dom/SyncedContextInlines.h, line 37
[task 2020-07-18T10:46:36.325Z] 10:46:36     INFO - GECKO(2357) | [Parent 2357, Main Thread] WARNING: 'aOwner->IsDiscarded()', file /builds/worker/workspace/obj-build/dist/include/mozilla/dom/SyncedContextInlines.h, line 37
[task 2020-07-18T10:46:36.326Z] 10:46:36     INFO - TEST-INFO | started process screencapture
[task 2020-07-18T10:46:36.468Z] 10:46:36     INFO - TEST-INFO | screencapture: exit 0
[task 2020-07-18T10:46:36.468Z] 10:46:36     INFO - Buffered messages logged at 10:46:35
[task 2020-07-18T10:46:36.468Z] 10:46:36     INFO - Entering test bound test_OPEN_PRIVATE_BROWSER_WINDOW
[task 2020-07-18T10:46:36.469Z] 10:46:36     INFO - Console message: [JavaScript Error: "ReferenceError: ok is not defined" {file: "chrome://mochitests/content/browser/toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/head.js" line: 27}]
[task 2020-07-18T10:46:36.469Z] 10:46:36     INFO - TEST-PASS | toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/browser_sma_open_private_browser_window.js | Schema loaded succesfully - 
[task 2020-07-18T10:46:36.469Z] 10:46:36     INFO - TEST-PASS | toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/browser_sma_open_private_browser_window.js | should be a valid action of type OPEN_PRIVATE_BROWSER_WINDOW - 
[task 2020-07-18T10:46:36.469Z] 10:46:36     INFO - Console message: OpenGL compositor Initialized Succesfully.
[task 2020-07-18T10:46:36.469Z] 10:46:36     INFO - Version: 2.1 INTEL-12.9.22
[task 2020-07-18T10:46:36.469Z] 10:46:36     INFO - Vendor: Intel Inc.
[task 2020-07-18T10:46:36.469Z] 10:46:36     INFO - Renderer: Intel Iris OpenGL Engine
[task 2020-07-18T10:46:36.469Z] 10:46:36     INFO - FBO Texture Target: TEXTURE_2D
[task 2020-07-18T10:46:36.469Z] 10:46:36     INFO - Buffered messages logged at 10:46:36
[task 2020-07-18T10:46:36.469Z] 10:46:36     INFO - TEST-PASS | toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/browser_sma_open_private_browser_window.js | should open a private browsing window - 
[task 2020-07-18T10:46:36.469Z] 10:46:36     INFO - Buffered messages finished
[task 2020-07-18T10:46:36.469Z] 10:46:36     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/browser_sma_open_private_browser_window.js | A promise chain failed to handle a rejection: ok is not defined - stack: @chrome://mochitests/content/browser/toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/head.js:27:3
[task 2020-07-18T10:46:36.469Z] 10:46:36     INFO - Rejection date: Sat Jul 18 2020 10:46:35 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 265
[task 2020-07-18T10:46:36.469Z] 10:46:36     INFO - Stack trace:
[task 2020-07-18T10:46:36.470Z] 10:46:36     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:265
[task 2020-07-18T10:46:36.470Z] 10:46:36     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1095
[task 2020-07-18T10:46:36.470Z] 10:46:36     INFO - Leaving test bound test_OPEN_PRIVATE_BROWSER_WINDOW
[task 2020-07-18T10:46:36.470Z] 10:46:36     INFO - GECKO(2357) | MEMORY STAT | vsize 7718MB | residentFast 431MB | heapAllocated 197MB
[task 2020-07-18T10:46:36.470Z] 10:46:36     INFO - TEST-OK | toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/browser_sma_open_private_browser_window.js | took 865ms
```