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-05-03 22:52:13+00:00
Resolved: 2021-05-31 06:15:23+00:00

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

---

[task 2020-05-03T22:03:41.740Z] 22:03:41     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Content has window.history.length 2 which does not equal expected 2 - 
[task 2020-05-03T22:03:41.741Z] 22:03:41     INFO - Console message: [JavaScript Error: "TypeError: can't access property "addEventListener", browser is null" {file: "resource:///actors/ContentSearchParent.jsm" line: 619}]
[task 2020-05-03T22:03:41.741Z] 22:03:41     INFO - Buffered messages finished
[task 2020-05-03T22:03:41.741Z] 22:03:41     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-05-03T22:03:41.742Z] 22:03:41     INFO - onAboutTabCrashedUnload@resource:///modules/ContentCrashHandlers.jsm:556:35
[task 2020-05-03T22:03:41.742Z] 22:03:41     INFO - removeCrashedPage@resource:///actors/AboutTabCrashedParent.jsm:75:21
[task 2020-05-03T22:03:41.742Z] 22:03:41     INFO - receiveMessage@resource:///actors/AboutTabCrashedParent.jsm:30:12
[task 2020-05-03T22:03:41.742Z] 22:03:41     INFO - JSActor query*RPMSendAsyncMessage@resource://gre/actors/RemotePageChild.jsm:155:10
[task 2020-05-03T22:03:41.742Z] 22:03:41     INFO - accessCheckedFn@resource://gre/actors/RemotePageChild.jsm:90:30
[task 2020-05-03T22:03:41.742Z] 22:03:41     INFO - onDOMContentLoaded@chrome://browser/content/aboutTabCrashed.js:106:24
[task 2020-05-03T22:03:41.743Z] 22:03:41     INFO - handleEvent@chrome://browser/content/aboutTabCrashed.js:75:14
[task 2020-05-03T22:03:41.743Z] 22:03:41     INFO - EventListener.handleEvent*init@chrome://browser/content/aboutTabCrashed.js:50:21
[task 2020-05-03T22:03:41.743Z] 22:03:41     INFO - @chrome://browser/content/aboutTabCrashed.js:306:17
[task 2020-05-03T22:03:41.743Z] 22:03:41     INFO - Rejection date: Sun May 03 2020 22:03:40 GMT+0000 (Coordinated Universal Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 265
[task 2020-05-03T22:03:41.743Z] 22:03:41     INFO - Stack trace:
[task 2020-05-03T22:03:41.672Z] 22:03:41     INFO - _onJSONObjectReady/<@chrome://marionette/content/transport.js:501:20
[task 2020-05-03T22:03:41.673Z] 22:03:41     INFO - 
[task 2020-05-03T22:03:41.675Z] 22:03:41     INFO - Console message: [JavaScript Error: "remote browser crashed while on data:text/html,<html><body>Another%20regular,%20everyday,%20normal%20page.
[task 2020-05-03T22:03:41.675Z] 22:03:41     INFO - " {file: "chrome://mochikit/content/mochitest-e10s-utils.js" line: 10}]
[task 2020-05-03T22:03:41.676Z] 22:03:41     INFO - e10s_init/<@chrome://mochikit/content/mochitest-e10s-utils.js:10:10
[task 2020-05-03T22:03:41.676Z] 22:03:41     INFO - EventListener.handleEvent*e10s_init@chrome://mochikit/content/mochitest-e10s-utils.js:6:10
[task 2020-05-03T22:03:41.677Z] 22:03:41     INFO - testInit@chrome://mochikit/content/browser-test.js:125:5
[task 2020-05-03T22:03:41.678Z] 22:03:41     INFO - setTimeout handler*@chrome://mochikit/content/browser-test.js:35:11
[task 2020-05-03T22:03:41.679Z] 22:03:41     INFO - loadChromeScripts@jar:file:///tmp/tmpFj9AIE.mozrunner/extensions/mochikit@mozilla.org.xpi!/api.js:21:25
[task 2020-05-03T22:03:41.680Z] 22:03:41     INFO - loadMochitest@jar:file:///tmp/tmpFj9AIE.mozrunner/extensions/mochikit@mozilla.org.xpi!/api.js:143:20
[task 2020-05-03T22:03:41.681Z] 22:03:41     INFO - @tests/mochitest/runtests.py:1812:5
[task 2020-05-03T22:03:41.681Z] 22:03:41     INFO - @tests/mochitest/runtests.py:1813:8
[task 2020-05-03T22:03:41.682Z] 22:03:41     INFO - evaluate.sandbox/promise<@chrome://marionette/content/evaluate.js:138:10
[task 2020-05-03T22:03:41.682Z] 22:03:41     INFO - evaluate.sandbox@chrome://marionette/content/evaluate.js:114:17
[task 2020-05-03T22:03:41.683Z] 22:03:41     INFO - GeckoDriver.prototype.execute_@chrome://marionette/content/driver.js:1099:28
[task 2020-05-03T22:03:41.684Z] 22:03:41     INFO - async*GeckoDriver.prototype.executeScript@chrome://marionette/content/driver.js:974:30
[task 2020-05-03T22:03:41.685Z] 22:03:41     INFO - despatch@chrome://marionette/content/server.js:305:40
[task 2020-05-03T22:03:41.685Z] 22:03:41     INFO - execute@chrome://marionette/content/server.js:275:16
[task 2020-05-03T22:03:41.686Z] 22:03:41     INFO - onPacket/<@chrome://marionette/content/server.js:248:20
[task 2020-05-03T22:03:41.688Z] 22:03:41     INFO - onPacket@chrome://marionette/content/server.js:249:9
[task 2020-05-03T22:03:41.688Z] 22:03:41     INFO - _onJSONObjectReady/<@chrome://marionette/content/transport.js:501:20
[task 2020-05-03T22:03:41.689Z] 22:03:41     INFO - 
[task 2020-05-03T22:03:41.692Z] 22:03:41     INFO - Buffered messages logged at 22:03:39
[task 2020-05-03T22:03:41.692Z] 22:03:41     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Second tab should not be crashed. - 
[task 2020-05-03T22:03:41.693Z] 22:03:41     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Second tab should be pending. - 
[task 2020-05-03T22:03:41.693Z] 22:03:41     INFO - Clicking restoreTab
[task 2020-05-03T22:03:41.694Z] 22:03:41     INFO - Console message: [JavaScript Error: "TypeError: can't access property "permanentKey", browser is undefined" {file: "resource:///modules/ContentCrashHandlers.jsm" line: 50}]
[task 2020-05-03T22:03:41.695Z] 22:03:41     INFO - Console message: [JavaScript Error: "failed"]
[task 2020-05-03T22:03:41.699Z] 22:03:41     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-05-03T22:03:41.699Z] 22:03:41     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Tab shouldn't be marked as crashed anymore. - 
[task 2020-05-03T22:03:41.700Z] 22:03:41     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Second tab should still be pending. - 
[task 2020-05-03T22:03:41.701Z] 22:03:41     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-05-03T22:03:41.701Z] 22:03:41     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Content has window.history.length 2 which does not equal expected 2 - 
[task 2020-05-03T22:03:41.710Z] 22:03:41     INFO - Leaving test bound test_revive_tab_from_session_store
[task 2020-05-03T22:03:41.711Z] 22:03:41     INFO - Entering test bound test_revive_all_tabs_from_session_store
[task 2020-05-03T22:03:41.712Z] 22:03:41     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Should be a remote browser - 
[task 2020-05-03T22:03:41.714Z] 22:03:41     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-05-03T22:03:41.715Z] 22:03:41     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Should be a remote browser - 
[task 2020-05-03T22:03:41.716Z] 22:03:41     INFO - Buffered messages logged at 22:03:40
[task 2020-05-03T22:03:41.716Z] 22:03:41     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-05-03T22:03:41.717Z] 22:03:41     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-05-03T22:03:41.718Z] 22:03:41     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-05-03T22:03:41.719Z] 22:03:41     INFO - Console message: [JavaScript Error: "remote browser crashed while on data:text/html,<html><body>Another%20regular,%20everyday,%20normal%20page.
[task 2020-05-03T22:03:41.722Z] 22:03:41     INFO - " {file: "chrome://mochikit/content/mochitest-e10s-utils.js" line: 10}]
[task 2020-05-03T22:03:41.722Z] 22:03:41     INFO - e10s_init/<@chrome://mochikit/content/mochitest-e10s-utils.js:10:10
[task 2020-05-03T22:03:41.722Z] 22:03:41     INFO - EventListener.handleEvent*e10s_init@chrome://mochikit/content/mochitest-e10s-utils.js:6:10
[task 2020-05-03T22:03:41.722Z] 22:03:41     INFO - testInit@chrome://mochikit/content/browser-test.js:125:5
[task 2020-05-03T22:03:41.722Z] 22:03:41     INFO - setTimeout handler*@chrome://mochikit/content/browser-test.js:35:11
[task 2020-05-03T22:03:41.722Z] 22:03:41     INFO - loadChromeScripts@jar:file:///tmp/tmpFj9AIE.mozrunner/extensions/mochikit@mozilla.org.xpi!/api.js:21:25
[task 2020-05-03T22:03:41.723Z] 22:03:41     INFO - loadMochitest@jar:file:///tmp/tmpFj9AIE.mozrunner/extensions/mochikit@mozilla.org.xpi!/api.js:143:20
[task 2020-05-03T22:03:41.723Z] 22:03:41     INFO - @tests/mochitest/runtests.py:1812:5
[task 2020-05-03T22:03:41.723Z] 22:03:41     INFO - @tests/mochitest/runtests.py:1813:8
[task 2020-05-03T22:03:41.723Z] 22:03:41     INFO - evaluate.sandbox/promise<@chrome://marionette/content/evaluate.js:138:10
[task 2020-05-03T22:03:41.723Z] 22:03:41     INFO - evaluate.sandbox@chrome://marionette/content/evaluate.js:114:17
[task 2020-05-03T22:03:41.723Z] 22:03:41     INFO - GeckoDriver.prototype.execute_@chrome://marionette/content/driver.js:1099:28
[task 2020-05-03T22:03:41.724Z] 22:03:41     INFO - async*GeckoDriver.prototype.executeScript@chrome://marionette/content/driver.js:974:30
[task 2020-05-03T22:03:41.724Z] 22:03:41     INFO - despatch@chrome://marionette/content/server.js:305:40
[task 2020-05-03T22:03:41.724Z] 22:03:41     INFO - execute@chrome://marionette/content/server.js:275:16
[task 2020-05-03T22:03:41.726Z] 22:03:41     INFO - onPacket/<@chrome://marionette/content/server.js:248:20
[task 2020-05-03T22:03:41.726Z] 22:03:41     INFO - onPacket@chrome://marionette/content/server.js:249:9
[task 2020-05-03T22:03:41.727Z] 22:03:41     INFO - _onJSONObjectReady/<@chrome://marionette/content/transport.js:501:20
[task 2020-05-03T22:03:41.727Z] 22:03:41     INFO - 
[task 2020-05-03T22:03:41.728Z] 22:03:41     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | First tab should be crashed - 
[task 2020-05-03T22:03:41.728Z] 22:03:41     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Second window tab should be crashed - 
[task 2020-05-03T22:03:41.732Z] 22:03:41     INFO - Clicking restoreAll
[task 2020-05-03T22:03:41.732Z] 22:03:41     INFO - Console message: [JavaScript Error: "Can not decrement crashed tab count to below 0" {file: "resource:///modules/ContentCrashHandlers.jsm" line: 551}]
[task 2020-05-03T22:03:41.732Z] 22:03:41     INFO - onAboutTabCrashedUnload@resource:///modules/ContentCrashHandlers.jsm:551:10
[task 2020-05-03T22:03:41.732Z] 22:03:41     INFO - removeCrashedPage@resource:///actors/AboutTabCrashedParent.jsm:75:21
[task 2020-05-03T22:03:41.733Z] 22:03:41     INFO - didDestroy@resource:///actors/AboutTabCrashedParent.jsm:22:10
[task 2020-05-03T22:03:41.733Z] 22:03:41     INFO - 
[task 2020-05-03T22:03:41.734Z] 22:03:41     INFO - Console message: [JavaScript Error: "Can not decrement crashed tab count to below 0" {file: "resource:///modules/ContentCrashHandlers.jsm" line: 551}]
[task 2020-05-03T22:03:41.734Z] 22:03:41     INFO - onAboutTabCrashedUnload@resource:///modules/ContentCrashHandlers.jsm:551:10
[task 2020-05-03T22:03:41.734Z] 22:03:41     INFO - removeCrashedPage@resource:///actors/AboutTabCrashedParent.jsm:75:21
[task 2020-05-03T22:03:41.735Z] 22:03:41     INFO - didDestroy@resource:///actors/AboutTabCrashedParent.jsm:22:10
[task 2020-05-03T22:03:41.735Z] 22:03:41     INFO - 
[task 2020-05-03T22:03:41.736Z] 22:03:41     INFO - Console message: [JavaScript Error: "TypeError: can't access property "permanentKey", browser is undefined" {file: "resource:///modules/ContentCrashHandlers.jsm" line: 50}]
[task 2020-05-03T22:03:41.736Z] 22:03:41     INFO - Console message: [JavaScript Error: "failed"]
[task 2020-05-03T22:03:41.737Z] 22:03:41     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-05-03T22:03:41.737Z] 22:03:41     INFO - Buffered messages logged at 22:03:41
[task 2020-05-03T22:03:41.738Z] 22:03:41     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-05-03T22:03:41.739Z] 22:03:41     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Tab shouldn't be marked as crashed anymore. - 
[task 2020-05-03T22:03:41.739Z] 22:03:41     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Tab shouldn't be pending. - 
[task 2020-05-03T22:03:41.739Z] 22:03:41     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Second tab shouldn't be marked as crashed anymore. - 
[task 2020-05-03T22:03:41.740Z] 22:03:41     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Second tab shouldn't be pending. - 
[task 2020-05-03T22:03:41.740Z] 22:03:41     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-05-03T22:03:41.740Z] 22:03:41     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-05-03T22:03:41.740Z] 22:03:41     INFO - TEST-PASS | browser/components/sessionstore/test/browser_crashedTabs.js | Content has window.history.length 2 which does not equal expected 2 - 
[task 2020-05-03T22:03:41.741Z] 22:03:41     INFO - Console message: [JavaScript Error: "TypeError: can't access property "addEventListener", browser is null" {file: "resource:///actors/ContentSearchParent.jsm" line: 619}]
[task 2020-05-03T22:03:41.741Z] 22:03:41     INFO - Buffered messages finished
[task 2020-05-03T22:03:41.741Z] 22:03:41     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-05-03T22:03:41.742Z] 22:03:41     INFO - onAboutTabCrashedUnload@resource:///modules/ContentCrashHandlers.jsm:556:35
[task 2020-05-03T22:03:41.742Z] 22:03:41     INFO - removeCrashedPage@resource:///actors/AboutTabCrashedParent.jsm:75:21
[task 2020-05-03T22:03:41.742Z] 22:03:41     INFO - receiveMessage@resource:///actors/AboutTabCrashedParent.jsm:30:12
[task 2020-05-03T22:03:41.742Z] 22:03:41     INFO - JSActor query*RPMSendAsyncMessage@resource://gre/actors/RemotePageChild.jsm:155:10
[task 2020-05-03T22:03:41.742Z] 22:03:41     INFO - accessCheckedFn@resource://gre/actors/RemotePageChild.jsm:90:30
[task 2020-05-03T22:03:41.742Z] 22:03:41     INFO - onDOMContentLoaded@chrome://browser/content/aboutTabCrashed.js:106:24
[task 2020-05-03T22:03:41.743Z] 22:03:41     INFO - handleEvent@chrome://browser/content/aboutTabCrashed.js:75:14
[task 2020-05-03T22:03:41.743Z] 22:03:41     INFO - EventListener.handleEvent*init@chrome://browser/content/aboutTabCrashed.js:50:21
[task 2020-05-03T22:03:41.743Z] 22:03:41     INFO - @chrome://browser/content/aboutTabCrashed.js:306:17
[task 2020-05-03T22:03:41.743Z] 22:03:41     INFO - Rejection date: Sun May 03 2020 22:03:40 GMT+0000 (Coordinated Universal Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 265
[task 2020-05-03T22:03:41.743Z] 22:03:41     INFO - Stack trace:
[task 2020-05-03T22:03:41.743Z] 22:03:41     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:265
[task 2020-05-03T22:03:41.743Z] 22:03:41     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1076
[task 2020-05-03T22:03:41.744Z] 22:03:41     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1080
[task 2020-05-03T22:03:41.744Z] 22:03:41     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:910
[task 2020-05-03T22:03:41.744Z] 22:03:41     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<:918
[task 2020-05-03T22:03:41.744Z] 22:03:41     INFO - Leaving test bound test_revive_all_tabs_from_session_store
[task 2020-05-03T22:03:41.744Z] 22:03:41     INFO - Entering test bound test_close_tab_after_crash