Bug: Intermittent browser/components/sessionstore/test/browser_revive_crashed_bg_tabs.js | A promise chain failed to handle a rejection: SSWindowStateReady listener not removed before the end of test - stack: (No stack available.)
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-09-12 12:14:09+00:00
Resolved: 2021-10-05 17:03:20+00:00

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

---
```
[task 2021-09-12T10:14:09.266Z] 10:14:09     INFO - TEST-START | browser/components/sessionstore/test/browser_revive_crashed_bg_tabs.js
[task 2021-09-12T10:14:09.320Z] 10:14:09     INFO - GECKO(1790) | Et tu, Brute?
[task 2021-09-12T10:14:54.414Z] 10:14:54     INFO - TEST-INFO | started process screencapture
[task 2021-09-12T10:14:54.534Z] 10:14:54     INFO - TEST-INFO | screencapture: exit 0
[task 2021-09-12T10:14:54.535Z] 10:14:54     INFO - Buffered messages logged at 10:14:09
[task 2021-09-12T10:14:54.535Z] 10:14:54     INFO - Entering test bound setup
[task 2021-09-12T10:14:54.536Z] 10:14:54     INFO - Leaving test bound setup
[task 2021-09-12T10:14:54.536Z] 10:14:54     INFO - Entering test bound test_revive_bg_tabs_on_demand
[task 2021-09-12T10:14:54.537Z] 10:14:54     INFO - Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "data:text/html,<html><body>A%20regular,%20everyday,%20normal%20page." line: 0}]
[task 2021-09-12T10:14:54.538Z] 10:14:54     INFO - Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "data:text/html,<html><body>Another%20regular,%20everyday,%20normal%20page." line: 0}]
[task 2021-09-12T10:14:54.538Z] 10:14:54     INFO - Buffered messages finished
[task 2021-09-12T10:14:54.538Z] 10:14:54     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_revive_crashed_bg_tabs.js | Test timed out - 
[task 2021-09-12T10:14:54.539Z] 10:14:54     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-09-12T10:14:54.540Z] 10:14:54     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_revive_crashed_bg_tabs.js | A promise chain failed to handle a rejection: SSWindowStateReady listener not removed before the end of test - stack: (No stack available.)
[task 2021-09-12T10:14:54.540Z] 10:14:54     INFO - Rejection date: Sun Sep 12 2021 10:14:54 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 285
[task 2021-09-12T10:14:54.540Z] 10:14:54     INFO - Stack trace:
[task 2021-09-12T10:14:54.540Z] 10:14:54     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:285
[task 2021-09-12T10:14:54.540Z] 10:14:54     INFO - chrome://mochikit/content/browser-test.js:nextTest:625
[task 2021-09-12T10:14:54.540Z] 10:14:54     INFO - GECKO(1790) | JavaScript error: resource://testing-common/PromiseTestUtils.jsm, line 131: uncaught exception: SSWindowStateReady listener not removed before the end of test
[task 2021-09-12T10:14:54.541Z] 10:14:54     INFO - Console message: [JavaScript Error: "uncaught exception: SSWindowStateReady listener not removed before the end of test" {file: "resource://testing-common/PromiseTestUtils.jsm" line: 131}]
[task 2021-09-12T10:14:54.541Z] 10:14:54     INFO - GECKO(1790) | MEMORY STAT | vsize 16865MB | residentFast 614MB | heapAllocated 131MB
[task 2021-09-12T10:14:54.542Z] 10:14:54     INFO - TEST-OK | browser/components/sessionstore/test/browser_revive_crashed_bg_tabs.js | took 45154ms
[task 2021-09-12T10:14:54.542Z] 10:14:54     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-09-12T10:14:54.543Z] 10:14:54     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_revive_crashed_bg_tabs.js | Found a tab after previous test timed out: data:text/html,<html><body>Another%20regular,%20everyday,%20normal%20page. - 
[task 2021-09-12T10:14:54.543Z] 10:14:54     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-09-12T10:14:54.544Z] 10:14:54     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_revive_crashed_bg_tabs.js | Found a tab after previous test timed out: data:text/html,<html><body>A%20regular,%20everyday,%20normal%20page. - 
[task 2021-09-12T10:14:54.544Z] 10:14:54     INFO - checking window state
[task 2021-09-12T10:14:54.545Z] 10:14:54     INFO - TEST-START | browser/components/sessionstore/test/browser_scrollPositionsReaderMode.js
```