Bug: Intermittent unknown test url | uncaught exception - TypeError: can't access property "originNoSuffix", newBrowser.contentPrincipal is null at updateCurrentBrowser@chrome://browser/content/tabbrowser.js:1146:1
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2023-07-05 22:45:48+00:00
Resolved: 2023-07-15 16:53:57+00:00

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

---
```
[task 2023-07-05T19:27:31.491Z] 19:27:31     INFO - TEST-OK | browser/components/contextualidentity/test/browser/browser_originattrs_reopenin.js | took 18583ms
[task 2023-07-05T19:27:31.502Z] 19:27:31     INFO - GECKO(2216) | [Child 8816: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 595e700 == 1 [pid = 8816] [id = 10]
[task 2023-07-05T19:27:31.502Z] 19:27:31     INFO - GECKO(2216) | [Child 8816: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (59845e0) [pid = 8816] [serial = 26] [outer = 0]
[task 2023-07-05T19:27:31.503Z] 19:27:31     INFO - GECKO(2216) | [Child 8816: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (5996d00) [pid = 8816] [serial = 27] [outer = 59845e0]
[task 2023-07-05T19:27:31.508Z] 19:27:31    ERROR - GECKO(2216) | 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:1146:1
[task 2023-07-05T19:27:31.509Z] 19:27:31     INFO - GECKO(2216) | _setupEventListeners/<@chrome://browser/content/tabbrowser.js:5939:16
[task 2023-07-05T19:27:31.509Z] 19:27:31     INFO - GECKO(2216) | set selectedIndex@chrome://global/content/elements/tabbox.js:236:14
[task 2023-07-05T19:27:31.510Z] 19:27:31     INFO - GECKO(2216) | set selectedPanel@chrome://global/content/elements/tabbox.js:246:54
[task 2023-07-05T19:27:31.510Z] 19:27:31     INFO - GECKO(2216) | set selectedIndex@chrome://global/content/elements/tabbox.js:599:9
[task 2023-07-05T19:27:31.510Z] 19:27:31     INFO - GECKO(2216) | set selectedItem@chrome://global/content/elements/tabbox.js:617:35
[task 2023-07-05T19:27:31.511Z] 19:27:31     INFO - GECKO(2216) | set selectedTab@chrome://global/content/elements/tabbox.js:80:11
[task 2023-07-05T19:27:31.512Z] 19:27:31     INFO - GECKO(2216) | set selectedTab@chrome://browser/content/tabbrowser.js:359:7
[task 2023-07-05T19:27:31.512Z] 19:27:31     INFO - GECKO(2216) | _blurTab@chrome://browser/content/tabbrowser.js:4466:31
[task 2023-07-05T19:27:31.513Z] 19:27:31     INFO - GECKO(2216) | _beginRemoveTab@chrome://browser/content/tabbrowser.js:4096:14
[task 2023-07-05T19:27:31.513Z] 19:27:31     INFO - GECKO(2216) | removeTab@chrome://browser/content/tabbrowser.js:3959:15
[task 2023-07-05T19:27:31.513Z] 19:27:31     INFO - GECKO(2216) | Tester_waitForWindowsState@chrome://mochikit/content/browser-test.js:465:16
[task 2023-07-05T19:27:31.514Z] 19:27:31     INFO - GECKO(2216) | nextTest@chrome://mochikit/content/browser-test.js:1007:10
[task 2023-07-05T19:27:31.514Z] 19:27:31     INFO - GECKO(2216) | async*testScope/test_finish/<@chrome://mochikit/content/browser-test.js:1794:25
[task 2023-07-05T19:27:31.515Z] 19:27:31     INFO - GECKO(2216) | run@chrome://mochikit/content/browser-test.js:1714:9
[task 2023-07-05T19:27:31.516Z] 19:27:31     INFO - GECKO(2216) | JavaScript error: chrome://browser/content/tabbrowser.js, line 1146: TypeError: can't access property "originNoSuffix", newBrowser.contentPrincipal is null
[task 2023-07-05T19:27:31.530Z] 19:27:31     INFO - Console message: [JavaScript Error: "TypeError: can't access property "originNoSuffix", newBrowser.contentPrincipal is null" {file: "chrome://browser/content/tabbrowser.js" line: 1146}]
[task 2023-07-05T19:27:31.530Z] 19:27:31     INFO - updateCurrentBrowser@chrome://browser/content/tabbrowser.js:1146:1
[task 2023-07-05T19:27:31.530Z] 19:27:31     INFO - _setupEventListeners/<@chrome://browser/content/tabbrowser.js:5939:16
[task 2023-07-05T19:27:31.530Z] 19:27:31     INFO - set selectedIndex@chrome://global/content/elements/tabbox.js:236:14
[task 2023-07-05T19:27:31.530Z] 19:27:31     INFO - set selectedPanel@chrome://global/content/elements/tabbox.js:246:54
[task 2023-07-05T19:27:31.530Z] 19:27:31     INFO - set selectedIndex@chrome://global/content/elements/tabbox.js:599:9
[task 2023-07-05T19:27:31.539Z] 19:27:31     INFO - set selectedItem@chrome://global/content/elements/tabbox.js:617:35
[task 2023-07-05T19:27:31.539Z] 19:27:31     INFO - set selectedTab@chrome://global/content/elements/tabbox.js:80:11
[task 2023-07-05T19:27:31.539Z] 19:27:31     INFO - set selectedTab@chrome://browser/content/tabbrowser.js:359:7
[task 2023-07-05T19:27:31.539Z] 19:27:31     INFO - _blurTab@chrome://browser/content/tabbrowser.js:4466:31
[task 2023-07-05T19:27:31.539Z] 19:27:31     INFO - _beginRemoveTab@chrome://browser/content/tabbrowser.js:4096:14
[task 2023-07-05T19:27:31.539Z] 19:27:31     INFO - removeTab@chrome://browser/content/tabbrowser.js:3959:15
[task 2023-07-05T19:27:31.539Z] 19:27:31     INFO - Tester_waitForWindowsState@chrome://mochikit/content/browser-test.js:465:16
[task 2023-07-05T19:27:31.539Z] 19:27:31     INFO - nextTest@chrome://mochikit/content/browser-test.js:1007:10
[task 2023-07-05T19:27:31.539Z] 19:27:31     INFO - async*testScope/test_finish/<@chrome://mochikit/content/browser-test.js:1794:25
[task 2023-07-05T19:27:31.539Z] 19:27:31     INFO - run@chrome://mochikit/content/browser-test.js:1714:9
[task 2023-07-05T19:27:31.539Z] 19:27:31     INFO - 
```