Bug: Intermittent browser/components/sessionstore/test/browser_async_window_flushing.js | browser_sessionHistory.js | Uncaught exception - [Exception... "(null)"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "<unknown>"  data:
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2020-05-27 02:22:24+00:00
Resolved: 2020-08-19 04:13:07+00:00

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

---

```
[task 2020-05-27T01:33:07.548Z] 01:33:07     INFO - TEST-START | browser/components/sessionstore/test/browser_async_window_flushing.js
[task 2020-05-27T01:33:08.320Z] 01:33:08     INFO - TEST-INFO | started process screentopng
[task 2020-05-27T01:33:08.651Z] 01:33:08     INFO - TEST-INFO | screentopng: exit 0
[task 2020-05-27T01:33:08.652Z] 01:33:08     INFO - Buffered messages logged at 01:33:07
[task 2020-05-27T01:33:08.652Z] 01:33:08     INFO - Entering test bound test_add_interesting_window
[task 2020-05-27T01:33:08.652Z] 01:33:08     INFO - Buffered messages finished
[task 2020-05-27T01:33:08.653Z] 01:33:08     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_async_window_flushing.js | Uncaught exception - [Exception... "(null)"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "<unknown>"  data: no]
[task 2020-05-27T01:33:08.653Z] 01:33:08     INFO - Leaving test bound test_add_interesting_window
[task 2020-05-27T01:33:08.653Z] 01:33:08     INFO - Entering test bound test_remove_uninteresting_window
[task 2020-05-27T01:33:09.380Z] 01:33:09     INFO - TEST-PASS | browser/components/sessionstore/test/browser_async_window_flushing.js | We should have added the window to the closed windows array - 
[task 2020-05-27T01:33:09.416Z] 01:33:09     INFO - TEST-PASS | browser/components/sessionstore/test/browser_async_window_flushing.js | domwindowclosed should already be handled here - 
[task 2020-05-27T01:33:09.418Z] 01:33:09     INFO - TEST-PASS | browser/components/sessionstore/test/browser_async_window_flushing.js | We should have removed the window from the closed windows array - 
[task 2020-05-27T01:33:09.418Z] 01:33:09     INFO - Leaving test bound test_remove_uninteresting_window
[task 2020-05-27T01:33:09.418Z] 01:33:09     INFO - Entering test bound test_synchronously_remove_window_state
[task 2020-05-27T01:33:09.418Z] 01:33:09     INFO - TEST-PASS | browser/components/sessionstore/test/browser_async_window_flushing.js | Make sure we can get the state - 
[task 2020-05-27T01:33:09.993Z] 01:33:09     INFO - TEST-PASS | browser/components/sessionstore/test/browser_async_window_flushing.js | The new window to be in the state - 
[task 2020-05-27T01:33:09.997Z] 01:33:09     INFO - TEST-PASS | browser/components/sessionstore/test/browser_async_window_flushing.js | The new window should have been removed from the state - 
[task 2020-05-27T01:33:10.053Z] 01:33:10     INFO - Leaving test bound test_synchronously_remove_window_state
[task 2020-05-27T01:33:10.070Z] 01:33:10     INFO - GECKO(9895) | MEMORY STAT | vsize 2955MB | residentFast 388MB | heapAllocated 170MB
[task 2020-05-27T01:33:10.071Z] 01:33:10     INFO - TEST-OK | browser/components/sessionstore/test/browser_async_window_flushing.js | took 2526ms
[task 2020-05-27T01:33:10.095Z] 01:33:10     INFO - checking window state
[task 2020-05-27T01:33:10.096Z] 01:33:10     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-05-27T01:33:10.096Z] 01:33:10     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_async_window_flushing.js | Found an unexpected browser window at the end of test run - 
[task 2020-05-27T01:33:10.097Z] 01:33:10     INFO - GECKO(9895) | must wait for focus
[task 2020-05-27T01:33:10.187Z] 01:33:10     INFO - GECKO(9895) | Completed ShutdownLeaks collections in process 9895
[task 2020-05-27T01:33:10.187Z] 01:33:10     INFO - TEST-START | Shutdown
```