Bug: Intermittent browser/components/sessionstore/test/browser_crashedTabs.js | A promise chain failed to handle a rejection: can't access property "permanentKey", browser is undefined - stack: get@resource:///modules/ContentCrashHandlers.jsm:50:9
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2020-06-05 17:50:41+00:00
Resolved: 2022-06-07 17:00:47+00:00

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

---

```
[task 2020-06-05T15:26:26.677Z] 15:26:26     INFO - Entering test bound test_revive_all_tabs_from_session_store
[task 2020-06-05T15:26:26.677Z] 15:26:26     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Should be a remote browser - 
[task 2020-06-05T15:26:26.677Z] 15:26:26     INFO - Buffered messages logged at 15:26:23
[task 2020-06-05T15:26:26.677Z] 15:26:26     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 2020-06-05T15:26:26.678Z] 15:26:26     INFO - Console message: OpenGL compositor Initialized Succesfully.
[task 2020-06-05T15:26:26.678Z] 15:26:26     INFO - Version: 2.1 INTEL-12.9.22
[task 2020-06-05T15:26:26.678Z] 15:26:26     INFO - Vendor: Intel Inc.
[task 2020-06-05T15:26:26.678Z] 15:26:26     INFO - Renderer: Intel Iris OpenGL Engine
[task 2020-06-05T15:26:26.678Z] 15:26:26     INFO - FBO Texture Target: TEXTURE_2D
[task 2020-06-05T15:26:26.678Z] 15:26:26     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Should be a remote browser - 
[task 2020-06-05T15:26:26.680Z] 15:26:26     INFO - Buffered messages logged at 15:26:24
[task 2020-06-05T15:26:26.680Z] 15:26:26     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 2020-06-05T15:26:26.680Z] 15:26:26     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 2020-06-05T15:26:26.680Z] 15:26:26     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 2020-06-05T15:26:26.682Z] 15:26:26     INFO - Console message: [JavaScript Error: "remote browser crashed while on data:text/html,<html><body>Another%20regular,%20everyday,%20normal%20page.
[task 2020-06-05T15:26:26.683Z] 15:26:26     INFO - " {file: "chrome://mochikit/content/mochitest-e10s-utils.js" line: 10}]
[task 2020-06-05T15:26:26.683Z] 15:26:26     INFO - e10s_init/<@chrome://mochikit/content/mochitest-e10s-utils.js:10:10
[task 2020-06-05T15:26:26.683Z] 15:26:26     INFO - EventListener.handleEvent*e10s_init@chrome://mochikit/content/mochitest-e10s-utils.js:6:10
[task 2020-06-05T15:26:26.683Z] 15:26:26     INFO - testInit@chrome://mochikit/content/browser-test.js:125:5
[task 2020-06-05T15:26:26.683Z] 15:26:26     INFO - setTimeout handler*@chrome://mochikit/content/browser-test.js:35:11
[task 2020-06-05T15:26:26.683Z] 15:26:26     INFO - loadChromeScripts@jar:file:///var/folders/r7/5y3v_vt15y1blmfb7cgw78jh000017/T/tmpRWxhjc.mozrunner/extensions/mochikit@mozilla.org.xpi!/api.js:21:25
[task 2020-06-05T15:26:26.683Z] 15:26:26     INFO - loadMochitest@jar:file:///var/folders/r7/5y3v_vt15y1blmfb7cgw78jh000017/T/tmpRWxhjc.mozrunner/extensions/mochikit@mozilla.org.xpi!/api.js:143:20
[task 2020-06-05T15:26:26.683Z] 15:26:26     INFO - @tests/mochitest/runtests.py:1848:5
[task 2020-06-05T15:26:26.683Z] 15:26:26     INFO - @tests/mochitest/runtests.py:1849:8
[task 2020-06-05T15:26:26.683Z] 15:26:26     INFO - evaluate.sandbox/promise<@chrome://marionette/content/evaluate.js:138:10
[task 2020-06-05T15:26:26.683Z] 15:26:26     INFO - evaluate.sandbox@chrome://marionette/content/evaluate.js:114:17
[task 2020-06-05T15:26:26.683Z] 15:26:26     INFO - GeckoDriver.prototype.execute_@chrome://marionette/content/driver.js:1097:28
[task 2020-06-05T15:26:26.684Z] 15:26:26     INFO - async*GeckoDriver.prototype.executeScript@chrome://marionette/content/driver.js:972:30
[task 2020-06-05T15:26:26.684Z] 15:26:26     INFO - despatch@chrome://marionette/content/server.js:305:40
[task 2020-06-05T15:26:26.684Z] 15:26:26     INFO - execute@chrome://marionette/content/server.js:275:16
[task 2020-06-05T15:26:26.684Z] 15:26:26     INFO - onPacket/<@chrome://marionette/content/server.js:248:20
[task 2020-06-05T15:26:26.684Z] 15:26:26     INFO - onPacket@chrome://marionette/content/server.js:249:9
[task 2020-06-05T15:26:26.684Z] 15:26:26     INFO - _onJSONObjectReady/<@chrome://marionette/content/transport.js:501:20
[task 2020-06-05T15:26:26.684Z] 15:26:26     INFO - 
[task 2020-06-05T15:26:26.684Z] 15:26:26     INFO - Buffered messages logged at 15:26:25
[task 2020-06-05T15:26:26.684Z] 15:26:26     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | First tab should be crashed - 
[task 2020-06-05T15:26:26.685Z] 15:26:26     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Second window tab should be crashed - 
[task 2020-06-05T15:26:26.685Z] 15:26:26     INFO - Clicking restoreAll
[task 2020-06-05T15:26:26.685Z] 15:26:26     INFO - Console message: [JavaScript Error: "Can not decrement crashed tab count to below 0" {file: "resource:///modules/ContentCrashHandlers.jsm" line: 551}]
[task 2020-06-05T15:26:26.685Z] 15:26:26     INFO - onAboutTabCrashedUnload@resource:///modules/ContentCrashHandlers.jsm:551:10
[task 2020-06-05T15:26:26.685Z] 15:26:26     INFO - removeCrashedPage@resource:///actors/AboutTabCrashedParent.jsm:75:21
[task 2020-06-05T15:26:26.685Z] 15:26:26     INFO - didDestroy@resource:///actors/AboutTabCrashedParent.jsm:22:10
[task 2020-06-05T15:26:26.685Z] 15:26:26     INFO - 
[task 2020-06-05T15:26:26.685Z] 15:26:26     INFO - Console message: [JavaScript Error: "Can not decrement crashed tab count to below 0" {file: "resource:///modules/ContentCrashHandlers.jsm" line: 551}]
[task 2020-06-05T15:26:26.685Z] 15:26:26     INFO - onAboutTabCrashedUnload@resource:///modules/ContentCrashHandlers.jsm:551:10
[task 2020-06-05T15:26:26.686Z] 15:26:26     INFO - removeCrashedPage@resource:///actors/AboutTabCrashedParent.jsm:75:21
[task 2020-06-05T15:26:26.686Z] 15:26:26     INFO - didDestroy@resource:///actors/AboutTabCrashedParent.jsm:22:10
[task 2020-06-05T15:26:26.686Z] 15:26:26     INFO - 
[task 2020-06-05T15:26:26.686Z] 15:26:26     INFO - Buffered messages logged at 15:26:26
[task 2020-06-05T15:26:26.686Z] 15:26:26     INFO - Console message: [JavaScript Error: "TypeError: can't access property "permanentKey", browser is undefined" {file: "resource:///modules/ContentCrashHandlers.jsm" line: 50}]
[task 2020-06-05T15:26:26.686Z] 15:26:26     INFO - Console message: [JavaScript Error: "failed"]
[task 2020-06-05T15:26:26.692Z] 15:26:26     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 2020-06-05T15:26:26.692Z] 15:26:26     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 2020-06-05T15:26:26.692Z] 15:26:26     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Tab shouldn't be marked as crashed anymore. - 
[task 2020-06-05T15:26:26.692Z] 15:26:26     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Tab shouldn't be pending. - 
[task 2020-06-05T15:26:26.692Z] 15:26:26     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Second tab shouldn't be marked as crashed anymore. - 
[task 2020-06-05T15:26:26.692Z] 15:26:26     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Second tab shouldn't be pending. - 
[task 2020-06-05T15:26:26.693Z] 15:26:26     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Content has URI data:text/html,<html><body>Another%20regular,%20everyday,%20normal%20page. which does not match data:text/html,<html><body>Another%20regular,%20everyday,%20normal%20page. - 
[task 2020-06-05T15:26:26.693Z] 15:26:26     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Content has URI data:text/html,<html><body>A%20regular,%20everyday,%20normal%20page. which does not match data:text/html,<html><body>A%20regular,%20everyday,%20normal%20page. - 
[task 2020-06-05T15:26:26.693Z] 15:26:26     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Content has window.history.length 2 which does not equal expected 2 - 
[task 2020-06-05T15:26:26.693Z] 15:26:26     INFO - Buffered messages finished
[task 2020-06-05T15:26:26.693Z] 15:26:26     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_crashedTabs.js | A promise chain failed to handle a rejection: can't access property "permanentKey", browser is undefined - stack: get@resource:///modules/ContentCrashHandlers.jsm:50:9
[task 2020-06-05T15:26:26.693Z] 15:26:26     INFO - onAboutTabCrashedUnload@resource:///modules/ContentCrashHandlers.jsm:556:35
[task 2020-06-05T15:26:26.693Z] 15:26:26     INFO - removeCrashedPage@resource:///actors/AboutTabCrashedParent.jsm:75:21
[task 2020-06-05T15:26:26.693Z] 15:26:26     INFO - receiveMessage@resource:///actors/AboutTabCrashedParent.jsm:30:12
[task 2020-06-05T15:26:26.693Z] 15:26:26     INFO - JSActor query*RPMSendAsyncMessage@resource://gre/actors/RemotePageChild.jsm:155:10
[task 2020-06-05T15:26:26.693Z] 15:26:26     INFO - accessCheckedFn@resource://gre/actors/RemotePageChild.jsm:90:30
[task 2020-06-05T15:26:26.693Z] 15:26:26     INFO - onDOMContentLoaded@chrome://browser/content/aboutTabCrashed.js:106:24
[task 2020-06-05T15:26:26.693Z] 15:26:26     INFO - handleEvent@chrome://browser/content/aboutTabCrashed.js:75:14
[task 2020-06-05T15:26:26.693Z] 15:26:26     INFO - EventListener.handleEvent*init@chrome://browser/content/aboutTabCrashed.js:50:21
[task 2020-06-05T15:26:26.693Z] 15:26:26     INFO - @chrome://browser/content/aboutTabCrashed.js:306:17
[task 2020-06-05T15:26:26.693Z] 15:26:26     INFO - Rejection date: Fri Jun 05 2020 15:26:25 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 265
[task 2020-06-05T15:26:26.693Z] 15:26:26     INFO - Stack trace:
[task 2020-06-05T15:26:26.693Z] 15:26:26     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:265
[task 2020-06-05T15:26:26.693Z] 15:26:26     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1095
[task 2020-06-05T15:26:26.694Z] 15:26:26     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1104
[task 2020-06-05T15:26:26.694Z] 15:26:26     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:927
[task 2020-06-05T15:26:26.694Z] 15:26:26     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<:918
[task 2020-06-05T15:26:26.694Z] 15:26:26     INFO - Leaving test bound test_revive_all_tabs_from_session_store
```