Bug: Intermittent unknown test url | uncaught exception - NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIScriptSecurityManager.getLoadContextContentPrincipal] at construct@chrome://global/content/eleme
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2023-07-07 20:42:45+00:00
Resolved: 2023-08-18 12:00:52+00:00

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

---
```
task 2023-07-07T20:13:07.342Z] 20:13:07     INFO - TEST-START | devtools/client/webconsole/test/browser/browser_jsterm_helpers_no_override.js
[task 2023-07-07T20:13:09.179Z] 20:13:09     INFO - GECKO(5930) | JavaScript error: resource://gre/modules/XULStore.sys.mjs, line 60: Error: Can't find profile directory.
[task 2023-07-07T20:13:09.181Z] 20:13:09     INFO - GECKO(5930) | JavaScript error: resource://gre/modules/XULStore.sys.mjs, line 60: Error: Can't find profile directory.
[task 2023-07-07T20:13:11.090Z] 20:13:11     INFO - GECKO(5930) | console.warn: "IGNORED REDUX ACTION:" "AUTOCOMPLETE_CLEAR"
[task 2023-07-07T20:13:11.143Z] 20:13:11     INFO - GECKO(5930) | JavaScript error: , line 0: NotFoundError: No such JSWindowActor 'DevToolsFrame'
[task 2023-07-07T20:13:11.482Z] 20:13:11     INFO - GECKO(5930) | MEMORY STAT | vsize 12444MB | residentFast 894MB | heapAllocated 528MB
[task 2023-07-07T20:13:11.484Z] 20:13:11     INFO - TEST-OK | devtools/client/webconsole/test/browser/browser_jsterm_helpers_no_override.js | took 4140ms
[task 2023-07-07T20:13:11.490Z] 20:13:11    ERROR - GECKO(5930) | TEST-UNEXPECTED-FAIL | unknown test url | uncaught exception - NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIScriptSecurityManager.getLoadContextContentPrincipal] at construct@chrome://global/content/elements/browser-custom-element.js:1024:38
[task 2023-07-07T20:13:11.495Z] 20:13:11     INFO - GECKO(5930) | connectedCallback@chrome://global/content/elements/browser-custom-element.js:330:12
[task 2023-07-07T20:13:11.498Z] 20:13:11     INFO - GECKO(5930) | _insertBrowser@chrome://browser/content/tabbrowser.js:2380:24
[task 2023-07-07T20:13:11.500Z] 20:13:11     INFO - GECKO(5930) | addTab@chrome://browser/content/tabbrowser.js:2780:16
[task 2023-07-07T20:13:11.501Z] 20:13:11     INFO - GECKO(5930) | Tester_waitForWindowsState@chrome://mochikit/content/browser-test.js:460:16
[task 2023-07-07T20:13:11.503Z] 20:13:11     INFO - GECKO(5930) | nextTest@chrome://mochikit/content/browser-test.js:1007:10
[task 2023-07-07T20:13:11.503Z] 20:13:11     INFO - GECKO(5930) | async*testScope/test_finish/<@chrome://mochikit/content/browser-test.js:1794:25
[task 2023-07-07T20:13:11.510Z] 20:13:11     INFO - GECKO(5930) | run@chrome://mochikit/content/browser-test.js:1714:9
[task 2023-07-07T20:13:11.510Z] 20:13:11     INFO - GECKO(5930) | JavaScript error: chrome://global/content/elements/browser-custom-element.js, line 1024: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIScriptSecurityManager.getLoadContextContentPrincipal]
[task 2023-07-07T20:13:11.511Z] 20:13:11    ERROR - GECKO(5930) | TEST-UNEXPECTED-FAIL | unknown test url | uncaught exception - TypeError: can't access property "originNoSuffix", newBrowser.contentPrincipal is null at updateCurrentBrowser@chrome://browser/content/tabbrowser.js:1142:1
[task 2023-07-07T20:13:11.512Z] 20:13:11     INFO - GECKO(5930) | _setupEventListeners/<@chrome://browser/content/tabbrowser.js:5935:16
[task 2023-07-07T20:13:11.513Z] 20:13:11     INFO - GECKO(5930) | set selectedIndex@chrome://global/content/elements/tabbox.js:236:14
[task 2023-07-07T20:13:11.514Z] 20:13:11     INFO - GECKO(5930) | set selectedPanel@chrome://global/content/elements/tabbox.js:246:54
[task 2023-07-07T20:13:11.514Z] 20:13:11     INFO - GECKO(5930) | set selectedIndex@chrome://global/content/elements/tabbox.js:599:9
[task 2023-07-07T20:13:11.516Z] 20:13:11     INFO - GECKO(5930) | set selectedItem@chrome://global/content/elements/tabbox.js:617:35
[task 2023-07-07T20:13:11.516Z] 20:13:11     INFO - GECKO(5930) | set selectedTab@chrome://global/content/elements/tabbox.js:80:11
[task 2023-07-07T20:13:11.517Z] 20:13:11     INFO - GECKO(5930) | set selectedTab@chrome://browser/content/tabbrowser.js:359:7
[task 2023-07-07T20:13:11.518Z] 20:13:11     INFO - GECKO(5930) | _blurTab@chrome://browser/content/tabbrowser.js:4462:31
[task 2023-07-07T20:13:11.520Z] 20:13:11     INFO - GECKO(5930) | _beginRemoveTab@chrome://browser/content/tabbrowser.js:4092:14
[task 2023-07-07T20:13:11.521Z] 20:13:11     INFO - GECKO(5930) | removeTab@chrome://browser/content/tabbrowser.js:3955:15
[task 2023-07-07T20:13:11.521Z] 20:13:11     INFO - GECKO(5930) | Tester_waitForWindowsState@chrome://mochikit/content/browser-test.js:465:16
[task 2023-07-07T20:13:11.522Z] 20:13:11     INFO - GECKO(5930) | nextTest@chrome://mochikit/content/browser-test.js:1007:10
[task 2023-07-07T20:13:11.525Z] 20:13:11     INFO - GECKO(5930) | async*testScope/test_finish/<@chrome://mochikit/content/browser-test.js:1794:25
[task 2023-07-07T20:13:11.526Z] 20:13:11     INFO - GECKO(5930) | run@chrome://mochikit/content/browser-test.js:1714:9
[task 2023-07-07T20:13:11.527Z] 20:13:11     INFO - GECKO(5930) | JavaScript error: chrome://browser/content/tabbrowser.js, line 1142: TypeError: can't access property "originNoSuffix", newBrowser.contentPrincipal is null
[task 2023-07-07T20:13:11.538Z] 20:13:11     INFO - Console message: [JavaScript Error: "NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIScriptSecurityManager.getLoadContextContentPrincipal]" {file: "chrome://global/content/elements/browser-custom-element.js" line: 1024}]
[task 2023-07-07T20:13:11.538Z] 20:13:11     INFO - construct@chrome://global/content/elements/browser-custom-element.js:1024:38
[task 2023-07-07T20:13:11.539Z] 20:13:11     INFO - connectedCallback@chrome://global/content/elements/browser-custom-element.js:330:12
[task 2023-07-07T20:13:11.539Z] 20:13:11     INFO - _insertBrowser@chrome://browser/content/tabbrowser.js:2380:24
[task 2023-07-07T20:13:11.540Z] 20:13:11     INFO - addTab@chrome://browser/content/tabbrowser.js:2780:16
[task 2023-07-07T20:13:11.540Z] 20:13:11     INFO - Tester_waitForWindowsState@chrome://mochikit/content/browser-test.js:460:16
[task 2023-07-07T20:13:11.541Z] 20:13:11     INFO - nextTest@chrome://mochikit/content/browser-test.js:1007:10
[task 2023-07-07T20:13:11.541Z] 20:13:11     INFO - async*testScope/test_finish/<@chrome://mochikit/content/browser-test.js:1794:25
[task 2023-07-07T20:13:11.542Z] 20:13:11     INFO - run@chrome://mochikit/content/browser-test.js:1714:9
```