Bug: Intermittent TV browser/components/screenshots/tests/browser/browser_screenshots_page_unload.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2023-02-21 22:51:58+00:00
Resolved: 2023-04-04 17:00:41+00:00

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

---
```
[task 2023-02-21T21:53:39.637Z] 21:53:39     INFO - TEST-START | browser/components/screenshots/tests/browser/browser_screenshots_page_unload.js
[task 2023-02-21T21:53:40.045Z] 21:53:40     INFO - TEST-INFO | started process screencapture
[task 2023-02-21T21:53:40.161Z] 21:53:40     INFO - TEST-INFO | screencapture: exit 0
[task 2023-02-21T21:53:40.161Z] 21:53:40     INFO - Buffered messages logged at 21:53:39
[task 2023-02-21T21:53:40.162Z] 21:53:40     INFO - Entering setup bound 
[task 2023-02-21T21:53:40.162Z] 21:53:40     INFO - TEST-PASS | browser/components/screenshots/tests/browser/browser_screenshots_page_unload.js | The screenshots button was added to the nav bar - {"_inheritedElements":null,"initializedAttributeInheritance":true} == true - 
[task 2023-02-21T21:53:40.163Z] 21:53:40     INFO - Leaving setup bound 
[task 2023-02-21T21:53:40.163Z] 21:53:40     INFO - Entering test bound test
[task 2023-02-21T21:53:40.163Z] 21:53:40     INFO - Buffered messages logged at 21:53:40
[task 2023-02-21T21:53:40.164Z] 21:53:40     INFO - TEST-PASS | browser/components/screenshots/tests/browser/browser_screenshots_page_unload.js | The screenshot toolbar button is visible - 
[task 2023-02-21T21:53:40.164Z] 21:53:40     INFO - Buffered messages finished
[task 2023-02-21T21:53:40.165Z] 21:53:40     INFO - TEST-UNEXPECTED-FAIL | browser/components/screenshots/tests/browser/browser_screenshots_page_unload.js | Uncaught exception in test bound test - at resource://testing-common/BrowserTestUtils.sys.mjs:333 - {}
[task 2023-02-21T21:53:40.165Z] 21:53:40     INFO - Stack trace:
[task 2023-02-21T21:53:40.165Z] 21:53:40     INFO - is_visible@resource://testing-common/BrowserTestUtils.sys.mjs:333:15
[task 2023-02-21T21:53:40.165Z] 21:53:40     INFO - test/</<@chrome://mochitests/content/browser/browser/components/screenshots/tests/browser/browser_screenshots_page_unload.js:33:35
[task 2023-02-21T21:53:40.165Z] 21:53:40     INFO - waitForMutationCondition@resource://testing-common/BrowserTestUtils.sys.mjs:1545:9
[task 2023-02-21T21:53:40.165Z] 21:53:40     INFO - test/<@chrome://mochitests/content/browser/browser/components/screenshots/tests/browser/browser_screenshots_page_unload.js:29:30
[task 2023-02-21T21:53:40.166Z] 21:53:40     INFO - Leaving test bound test
[task 2023-02-21T21:53:40.166Z] 21:53:40     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-02-21T21:53:40.169Z] 21:53:40     INFO - TEST-UNEXPECTED-FAIL | browser/components/screenshots/tests/browser/browser_screenshots_page_unload.js | A promise chain failed to handle a rejection: can't access property "currentWindowGlobal", browser.browsingContext is null - stack: getActor@resource:///modules/ScreenshotsUtils.sys.mjs:159:17
[task 2023-02-21T21:53:40.169Z] 21:53:40     INFO - togglePanelAndOverlay@resource:///modules/ScreenshotsUtils.sys.mjs:211:22
[task 2023-02-21T21:53:40.169Z] 21:53:40     INFO - Rejection date: Tue Feb 21 2023 21:53:40 GMT+0000 (Greenwich Mean Time) - false == true - {"filename":"resource://testing-common/PromiseTestUtils.sys.mjs","name":"assertNoUncaughtRejections","sourceId":561,"lineNumber":266,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest","sourceId":527,"lineNumber":675,"columnNumber":29,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"testScope/test_finish/<","sourceId":527,"lineNumber":1680,"columnNumber":25,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"run","sourceId":527,"lineNumber":1599,"columnNumber":9,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":null,"formattedStack":"run@chrome://mochikit/content/browser-test.js:1599:9\n","nativeSavedFrame":{}},"formattedStack":"testScope/test_finish/<@chrome://mochikit/content/browser-test.js:1680:25\nrun@chrome://mochikit/content/browser-test.js:1599:9\n","nativeSavedFrame":{}},"formattedStack":"nextTest@chrome://mochikit/content/browser-test.js:675:29\ntestScope/test_finish/<@chrome://mochikit/content/browser-test.js:1680:25\nrun@chrome://mochikit/content/browser-test.js:1599:9\n","nativeSavedFrame":{}},"formattedStack":"assertNoUncaughtRejections@resource://testing-common/PromiseTestUtils.sys.mjs:266:14\nnextTest@chrome://mochikit/content/browser-test.js:675:29\ntestScope/test_finish/<@chrome://mochikit/content/browser-test.js:1680:25\nrun@chrome://mochikit/content/browser-test.js:1599:9\n","nativeSavedFrame":{}}
[task 2023-02-21T21:53:40.169Z] 21:53:40     INFO - Stack trace:
[task 2023-02-21T21:53:40.169Z] 21:53:40     INFO - resource://testing-common/PromiseTestUtils.sys.mjs:assertNoUncaughtRejections:266
[task 2023-02-21T21:53:40.169Z] 21:53:40     INFO - chrome://mochikit/content/browser-test.js:nextTest:675
[task 2023-02-21T21:53:40.169Z] 21:53:40     INFO - chrome://mochikit/content/browser-test.js:testScope/test_finish/<:1680
[task 2023-02-21T21:53:40.169Z] 21:53:40     INFO - chrome://mochikit/content/browser-test.js:run:1599
[task 2023-02-21T21:53:40.169Z] 21:53:40     INFO - GECKO(2138) | JavaScript error: resource:///modules/ScreenshotsUtils.sys.mjs, line 159: TypeError: can't access property "currentWindowGlobal", browser.browsingContext is null
[task 2023-02-21T21:53:40.170Z] 21:53:40     INFO - Console message: [JavaScript Error: "TypeError: can't access property "currentWindowGlobal", browser.browsingContext is null" {file: "resource:///modules/ScreenshotsUtils.sys.mjs" line: 159}]
[task 2023-02-21T21:53:40.449Z] 21:53:40     INFO - GECKO(2138) | MEMORY STAT vsizeMaxContiguous not supported in this build configuration.
[task 2023-02-21T21:53:40.450Z] 21:53:40     INFO - GECKO(2138) | MEMORY STAT | vsize 15450MB | residentFast 289MB | heapAllocated 139MB
[task 2023-02-21T21:53:40.450Z] 21:53:40     INFO - TEST-OK | browser/components/screenshots/tests/browser/browser_screenshots_page_unload.js | took 814ms
[task 2023-02-21T21:53:40.460Z] 21:53:40     INFO - checking window state
[task 2023-02-21T21:53:40.469Z] 21:53:40     INFO - GECKO(2138) | Completed ShutdownLeaks collections in process 2138
[task 2023-02-21T21:53:40.469Z] 21:53:40     INFO - TEST-START | Shutdown
```