Bug: Intermittent wpts & browser chrome | uncaught exception - TypeError: can't access property "spec", tab.linkedBrowser.currentURI is null at tinfo@resource:///modules/AsyncTabSwitcher.sys.mjs:1187:7
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2023-07-04 15:39:11+00:00
Resolved: 2025-02-10 06:27:39+00:00

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

---
```
[task 2023-07-04T14:51:42.251Z] 14:51:42     INFO - TEST-START | browser/base/content/test/siteIdentity/browser_mcb_redirect.js
[task 2023-07-04T14:51:45.847Z] 14:51:45     INFO - GECKO(1549) | MEMORY STAT | vsize 8131MB | residentFast 445MB | heapAllocated 175MB
[task 2023-07-04T14:51:45.848Z] 14:51:45     INFO - TEST-OK | browser/base/content/test/siteIdentity/browser_mcb_redirect.js | took 3596ms
[task 2023-07-04T14:51:45.851Z] 14:51:45     INFO - GECKO(1549) | console.error:
[task 2023-07-04T14:51:45.852Z] 14:51:45     INFO - GECKO(1549) |   Message: TypeError: can't access property "fixupAndLoadURIString", browser.webNavigation is undefined
[task 2023-07-04T14:51:45.852Z] 14:51:45     INFO - GECKO(1549) |   Stack:
[task 2023-07-04T14:51:45.852Z] 14:51:45     INFO - GECKO(1549) |     _internalMaybeFixupLoadURI@chrome://browser/content/tabbrowser.js:7265:11
[task 2023-07-04T14:51:45.852Z] 14:51:45     INFO - GECKO(1549) | fixupAndLoadURIString@chrome://browser/content/tabbrowser.js:7218:12
[task 2023-07-04T14:51:45.853Z] 14:51:45     INFO - GECKO(1549) | _kickOffBrowserLoad@chrome://browser/content/tabbrowser.js:3121:19
[task 2023-07-04T14:51:45.853Z] 14:51:45     INFO - GECKO(1549) | addTab@chrome://browser/content/tabbrowser.js:2810:14
[task 2023-07-04T14:51:45.853Z] 14:51:45     INFO - GECKO(1549) | Tester_waitForWindowsState@chrome://mochikit/content/browser-test.js:460:16
[task 2023-07-04T14:51:45.854Z] 14:51:45     INFO - GECKO(1549) | nextTest@chrome://mochikit/content/browser-test.js:1007:10
[task 2023-07-04T14:51:45.854Z] 14:51:45     INFO - GECKO(1549) | async*testScope/test_finish/<@chrome://mochikit/content/browser-test.js:1794:25
[task 2023-07-04T14:51:45.854Z] 14:51:45     INFO - GECKO(1549) | run@chrome://mochikit/content/browser-test.js:1714:9
[task 2023-07-04T14:51:45.855Z] 14:51:45    ERROR - GECKO(1549) | TEST-UNEXPECTED-FAIL | unknown test url | uncaught exception - TypeError: can't access property "spec", tab.linkedBrowser.currentURI is null at tinfo@resource:///modules/AsyncTabSwitcher.sys.mjs:1187:7
[task 2023-07-04T14:51:45.855Z] 14:51:45     INFO - GECKO(1549) | requestTab@resource:///modules/AsyncTabSwitcher.sys.mjs:1037:40
[task 2023-07-04T14:51:45.855Z] 14:51:45     INFO - GECKO(1549) | updateCurrentBrowser@chrome://browser/content/tabbrowser.js:1157:31
[task 2023-07-04T14:51:45.856Z] 14:51:45     INFO - GECKO(1549) | _setupEventListeners/<@chrome://browser/content/tabbrowser.js:5939:16
[task 2023-07-04T14:51:45.856Z] 14:51:45     INFO - GECKO(1549) | set selectedIndex@chrome://global/content/elements/tabbox.js:236:14
[task 2023-07-04T14:51:45.856Z] 14:51:45     INFO - GECKO(1549) | set selectedPanel@chrome://global/content/elements/tabbox.js:246:54
[task 2023-07-04T14:51:45.857Z] 14:51:45     INFO - GECKO(1549) | set selectedIndex@chrome://global/content/elements/tabbox.js:599:9
[task 2023-07-04T14:51:45.857Z] 14:51:45     INFO - GECKO(1549) | set selectedItem@chrome://global/content/elements/tabbox.js:617:35
[task 2023-07-04T14:51:45.857Z] 14:51:45     INFO - GECKO(1549) | set selectedTab@chrome://global/content/elements/tabbox.js:80:11
[task 2023-07-04T14:51:45.858Z] 14:51:45     INFO - GECKO(1549) | set selectedTab@chrome://browser/content/tabbrowser.js:359:7
[task 2023-07-04T14:51:45.858Z] 14:51:45     INFO - GECKO(1549) | _blurTab@chrome://browser/content/tabbrowser.js:4466:31
[task 2023-07-04T14:51:45.858Z] 14:51:45     INFO - GECKO(1549) | _beginRemoveTab@chrome://browser/content/tabbrowser.js:4096:14
[task 2023-07-04T14:51:45.858Z] 14:51:45     INFO - GECKO(1549) | removeTab@chrome://browser/content/tabbrowser.js:3959:15
[task 2023-07-04T14:51:45.859Z] 14:51:45     INFO - GECKO(1549) | Tester_waitForWindowsState@chrome://mochikit/content/browser-test.js:465:16
[task 2023-07-04T14:51:45.859Z] 14:51:45     INFO - GECKO(1549) | nextTest@chrome://mochikit/content/browser-test.js:1007:10
[task 2023-07-04T14:51:45.859Z] 14:51:45     INFO - GECKO(1549) | async*testScope/test_finish/<@chrome://mochikit/content/browser-test.js:1794:25
[task 2023-07-04T14:51:45.860Z] 14:51:45     INFO - GECKO(1549) | run@chrome://mochikit/content/browser-test.js:1714:9
[task 2023-07-04T14:51:45.860Z] 14:51:45     INFO - GECKO(1549) | JavaScript error: resource:///modules/AsyncTabSwitcher.sys.mjs, line 1187: TypeError: can't access property "spec", tab.linkedBrowser.currentURI is null
[task 2023-07-04T14:51:45.862Z] 14:51:45     INFO - Console message: [JavaScript Error: "TypeError: can't access property "spec", tab.linkedBrowser.currentURI is null" {file: "resource:///modules/AsyncTabSwitcher.sys.mjs" line: 1187}]
[task 2023-07-04T14:51:45.862Z] 14:51:45     INFO - tinfo@resource:///modules/AsyncTabSwitcher.sys.mjs:1187:7
[task 2023-07-04T14:51:45.862Z] 14:51:45     INFO - requestTab@resource:///modules/AsyncTabSwitcher.sys.mjs:1037:40
[task 2023-07-04T14:51:45.862Z] 14:51:45     INFO - updateCurrentBrowser@chrome://browser/content/tabbrowser.js:1157:31
[task 2023-07-04T14:51:45.862Z] 14:51:45     INFO - _setupEventListeners/<@chrome://browser/content/tabbrowser.js:5939:16
[task 2023-07-04T14:51:45.862Z] 14:51:45     INFO - set selectedIndex@chrome://global/content/elements/tabbox.js:236:14
[task 2023-07-04T14:51:45.862Z] 14:51:45     INFO - set selectedPanel@chrome://global/content/elements/tabbox.js:246:54
[task 2023-07-04T14:51:45.862Z] 14:51:45     INFO - set selectedIndex@chrome://global/content/elements/tabbox.js:599:9
[task 2023-07-04T14:51:45.862Z] 14:51:45     INFO - set selectedItem@chrome://global/content/elements/tabbox.js:617:35
[task 2023-07-04T14:51:45.862Z] 14:51:45     INFO - set selectedTab@chrome://global/content/elements/tabbox.js:80:11
[task 2023-07-04T14:51:45.862Z] 14:51:45     INFO - set selectedTab@chrome://browser/content/tabbrowser.js:359:7
[task 2023-07-04T14:51:45.862Z] 14:51:45     INFO - _blurTab@chrome://browser/content/tabbrowser.js:4466:31
[task 2023-07-04T14:51:45.862Z] 14:51:45     INFO - _beginRemoveTab@chrome://browser/content/tabbrowser.js:4096:14
[task 2023-07-04T14:51:45.862Z] 14:51:45     INFO - removeTab@chrome://browser/content/tabbrowser.js:3959:15
[task 2023-07-04T14:51:45.862Z] 14:51:45     INFO - Tester_waitForWindowsState@chrome://mochikit/content/browser-test.js:465:16
[task 2023-07-04T14:51:45.862Z] 14:51:45     INFO - nextTest@chrome://mochikit/content/browser-test.js:1007:10
[task 2023-07-04T14:51:45.862Z] 14:51:45     INFO - async*testScope/test_finish/<@chrome://mochikit/content/browser-test.js:1794:25
[task 2023-07-04T14:51:45.862Z] 14:51:45     INFO - run@chrome://mochikit/content/browser-test.js:1714:9
[task 2023-07-04T14:51:45.862Z] 14:51:45     INFO - 
[task 2023-07-04T14:51:45.863Z] 14:51:45    ERROR - GECKO(1549) | TEST-UNEXPECTED-FAIL | unknown test url | uncaught exception - TypeError: can't access property "sessionHistory", this.window.gBrowser.selectedBrowser.browsingContext is null at setURI@resource:///modules/UrlbarInput.sys.mjs:418:1
[task 2023-07-04T14:51:45.863Z] 14:51:45     INFO - GECKO(1549) | onStateChange@chrome://browser/content/tabbrowser.js:6695:25
[task 2023-07-04T14:51:45.864Z] 14:51:45     INFO - GECKO(1549) | JavaScript error: resource:///modules/UrlbarInput.sys.mjs, line 418: TypeError: can't access property "sessionHistory", this.window.gBrowser.selectedBrowser.browsingContext is null
[task 2023-07-04T14:51:45.864Z] 14:51:45     INFO - Console message: [JavaScript Error: "TypeError: can't access property "sessionHistory", this.window.gBrowser.selectedBrowser.browsingContext is null" {file: "resource:///modules/UrlbarInput.sys.mjs" line: 418}]
[task 2023-07-04T14:51:45.864Z] 14:51:45     INFO - setURI@resource:///modules/UrlbarInput.sys.mjs:418:1
[task 2023-07-04T14:51:45.864Z] 14:51:45     INFO - onStateChange@chrome://browser/content/tabbrowser.js:6695:25
[task 2023-07-04T14:51:45.864Z] 14:51:45     INFO - 
[task 2023-07-04T14:51:45.865Z] 14:51:45     INFO - GECKO(1549) | JavaScript error: resource://gre/modules/RemoteWebNavigation.sys.mjs, line 166: TypeError: can't access property "stop", this._browser.browsingContext is null
[task 2023-07-04T14:51:45.865Z] 14:51:45     INFO - Console message: [JavaScript Error: "TypeError: can't access property "stop", this._browser.browsingContext is null" {file: "resource://gre/modules/RemoteWebNavigation.sys.mjs" line: 166}]
[task 2023-07-04T14:51:45.865Z] 14:51:45     INFO - nextTest@chrome://mochikit/content/browser-test.js:1123:3
[task 2023-07-04T14:51:45.866Z] 14:51:45     INFO - async*testScope/test_finish/<@chrome://mochikit/content/browser-test.js:1794:25
[task 2023-07-04T14:51:45.866Z] 14:51:45     INFO - run@chrome://mochikit/content/browser-test.js:1714:9
[task 2023-07-04T14:51:45.866Z] 14:51:45     INFO - 
[task 2023-07-04T14:51:45.866Z] 14:51:45    ERROR - GECKO(1549) | TEST-UNEXPECTED-FAIL | unknown test url | uncaught exception - TypeError: can't access property "_currentURI", this._remoteWebNavigation is undefined at updateForLocationChange@chrome://global/content/elements/browser-custom-element.js:1168:9
[task 2023-07-04T14:51:45.866Z] 14:51:45     INFO - GECKO(1549) | getInterfaceProxy/get/<@chrome://global/content/customElements.js:683:35
[task 2023-07-04T14:51:45.867Z] 14:51:45     INFO - GECKO(1549) | JavaScript error: chrome://global/content/elements/browser-custom-element.js, line 1168: TypeError: can't access property "_currentURI", this._remoteWebNavigation is undefined
[task 2023-07-04T14:51:45.867Z] 14:51:45    ERROR - GECKO(1549) | TEST-UNEXPECTED-FAIL | unknown test url | uncaught exception - TypeError: can't access property "displaySpec", browser.currentURI is null at setTabTitle@chrome://browser/content/tabbrowser.js:1708:13
[task 2023-07-04T14:51:45.867Z] 14:51:45     INFO - GECKO(1549) | onLocationChange@chrome://browser/content/tabbrowser.js:6920:22
[task 2023-07-04T14:51:45.868Z] 14:51:45     INFO - GECKO(1549) | JavaScript error: chrome://browser/content/tabbrowser.js, line 1708: TypeError: can't access property "displaySpec", browser.currentURI is null
[task 2023-07-04T14:51:45.868Z] 14:51:45     INFO - Console message: [JavaScript Error: "TypeError: can't access property "_currentURI", this._remoteWebNavigation is undefined" {file: "chrome://global/content/elements/browser-custom-element.js" line: 1168}]
[task 2023-07-04T14:51:45.868Z] 14:51:45     INFO - updateForLocationChange@chrome://global/content/elements/browser-custom-element.js:1168:9
[task 2023-07-04T14:51:45.869Z] 14:51:45     INFO - getInterfaceProxy/get/<@chrome://global/content/customElements.js:683:35
[task 2023-07-04T14:51:45.869Z] 14:51:45     INFO - 
[task 2023-07-04T14:51:45.869Z] 14:51:45     INFO - Console message: [JavaScript Error: "TypeError: can't access property "displaySpec", browser.currentURI is null" {file: "chrome://browser/content/tabbrowser.js" line: 1708}]
[task 2023-07-04T14:51:45.869Z] 14:51:45     INFO - setTabTitle@chrome://browser/content/tabbrowser.js:1708:13
[task 2023-07-04T14:51:45.869Z] 14:51:45     INFO - onLocationChange@chrome://browser/content/tabbrowser.js:6920:22
[task 2023-07-04T14:51:45.869Z] 14:51:45     INFO - 
[task 2023-07-04T14:51:45.870Z] 14:51:45    ERROR - GECKO(1549) | TEST-UNEXPECTED-FAIL | unknown test url | uncaught exception - TypeError: can't access property "displaySpec", browser.currentURI is null at setTabTitle@chrome://browser/content/tabbrowser.js:1708:13
[task 2023-07-04T14:51:45.870Z] 14:51:45     INFO - GECKO(1549) | _setupEventListeners/<@chrome://browser/content/tabbrowser.js:6004:33
[task 2023-07-04T14:51:45.870Z] 14:51:45     INFO - GECKO(1549) | EventListener.handleEvent*addEventListener@chrome://browser/content/tabbrowser.js:326:22
[task 2023-07-04T14:51:45.871Z] 14:51:45     INFO - GECKO(1549) | _setupEventListeners@chrome://browser/content/tabbrowser.js:5987:12
[task 2023-07-04T14:51:45.871Z] 14:51:45     INFO - GECKO(1549) | init@chrome://browser/content/tabbrowser.js:136:12
[task 2023-07-04T14:51:45.871Z] 14:51:45     INFO - GECKO(1549) | onDOMContentLoaded@chrome://browser/content/browser.js:1604:14
[task 2023-07-04T14:51:45.871Z] 14:51:45     INFO - GECKO(1549) | EventListener.handleEvent*@chrome://browser/content/browser.xhtml:128:10
[task 2023-07-04T14:51:45.872Z] 14:51:45     INFO - GECKO(1549) | JavaScript error: chrome://browser/content/tabbrowser.js, line 1708: TypeError: can't access property "displaySpec", browser.currentURI is null
[task 2023-07-04T14:51:45.873Z] 14:51:45     INFO - Console message: [JavaScript Error: "TypeError: can't access property "displaySpec", browser.currentURI is null" {file: "chrome://browser/content/tabbrowser.js" line: 1708}]
[task 2023-07-04T14:51:45.873Z] 14:51:45     INFO - setTabTitle@chrome://browser/content/tabbrowser.js:1708:13
[task 2023-07-04T14:51:45.873Z] 14:51:45     INFO - _setupEventListeners/<@chrome://browser/content/tabbrowser.js:6004:33
[task 2023-07-04T14:51:45.873Z] 14:51:45     INFO - EventListener.handleEvent*addEventListener@chrome://browser/content/tabbrowser.js:326:22
[task 2023-07-04T14:51:45.873Z] 14:51:45     INFO - _setupEventListeners@chrome://browser/content/tabbrowser.js:5987:12
[task 2023-07-04T14:51:45.873Z] 14:51:45     INFO - init@chrome://browser/content/tabbrowser.js:136:12
[task 2023-07-04T14:51:45.873Z] 14:51:45     INFO - onDOMContentLoaded@chrome://browser/content/browser.js:1604:14
[task 2023-07-04T14:51:45.873Z] 14:51:45     INFO - EventListener.handleEvent*@chrome://browser/content/browser.xhtml:128:10
[task 2023-07-04T14:51:45.873Z] 14:51:45     INFO - 
```