Closed Bug 1841650 Opened 3 years ago Closed 3 years ago

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

Categories

(Firefox :: Tabbed Browser, defect, P5)

defect

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox-esr115 --- unaffected
firefox115 --- unaffected
firefox116 --- unaffected
firefox117 --- fixed

People

(Reporter: intermittent-bug-filer, Unassigned)

References

(Regression)

Details

(Keywords: intermittent-failure, regression, Whiteboard: [stockwell disable-recommended])

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 - 
See Also: → 1842292
Component: Site Identity → Tabbed Browser
Summary: Intermittent 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 → 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
Duplicate of this bug: 1841674
Duplicate of this bug: 1841881
Duplicate of this bug: 1841910
Duplicate of this bug: 1842332
Duplicate of this bug: 1842333
Duplicate of this bug: 1842334
Duplicate of this bug: 1842335
Duplicate of this bug: 1842336
Duplicate of this bug: 1842343
Duplicate of this bug: 1842346
Duplicate of this bug: 1842349

Dao, could you please investigate the kind of failures here as it's hitting different wpts and browser chrome tests all having these lines before the timeouts:

[task 2023-07-04T16:40:57.990Z] 16:40:57     INFO - PID 23195 | JavaScript error: resource:///modules/AsyncTabSwitcher.sys.mjs, line 1187: TypeError: can't access property "spec", tab.linkedBrowser.currentURI is null
[task 2023-07-04T16:40:58.013Z] 16:40:58     INFO - PID 23195 | 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-04T16:40:58.018Z] 16:40:58     INFO - PID 23195 | JavaScript error: chrome://browser/content/tabbrowser.js, line 1708: TypeError: can't access property "displaySpec", browser.currentURI is null
[task 2023-07-04T16:40:58.041Z] 16:40:58     INFO - PID 23195 | JavaScript error: chrome://extensions/content/parent/ext-tabs-base.js, line 198: TypeError: can't access property "spec", this.browser.currentURI is null
[task 2023-07-04T16:40:58.056Z] 16:40:58     INFO - PID 23195 | 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-04T16:40:58.059Z] 16:40:58     INFO - PID 23195 | JavaScript error: chrome://browser/content/tabbrowser.js, line 1708: TypeError: can't access property "displaySpec", browser.currentURI is null
[task 2023-07-04T16:40:58.065Z] 16:40:58     INFO - PID 23195 | JavaScript error: chrome://browser/content/tabbrowser.js, line 1708: TypeError: can't access property "displaySpec", browser.currentURI is null
[task 2023-07-04T16:40:58.077Z] 16:40:58     INFO - PID 23195 | JavaScript error: chrome://extensions/content/parent/ext-tabs-base.js, line 198: TypeError: can't access property "spec", this.browser.currentURI is null
[task 2023-07-04T16:44:12.889Z] 16:44:12     INFO - Got timeout in harness

This is the oldest recent bug I could find with those lines.
My first thought was Bug 1819675 - https://bugzilla.mozilla.org/show_bug.cgi?id=1819675#c30 as being the culprit but that backout didn't fix the failures.
Please see also failures in Bug 1841886.

Flags: needinfo?(dao+bmo)
See Also: → 1841886
Duplicate of this bug: 1842401
Duplicate of this bug: 1842411
Duplicate of this bug: 1842409

Based on this try push and failure lines in comment 12 I would say it's coming from Bug 1837620.
Jon, could you have a look over these failures and Bug 1841886?

Flags: needinfo?(jcoppeard)
Keywords: regression
Regressed by: 1837620

Set release status flags based on info from the regressing bug 1837620

The timing of these failures lines up suspiciously well with when bug 1837620 was in the codeline. Investigating.

See Also: → 1842822
See Also: → 1842823

This may be the same issue as bug 1842617 which has a fix ready to land.

See Also: → 1843036
Duplicate of this bug: 1843036

I think this is fixed. Last use of this bug was 2 days ago, the same goes for the bugs from the "see also" section of this bug.

Hi Jon! If you agree, I think we can close this bug and the rest of them.
Thank you!

Agreed. I think the patch in bug 1842617 has fixed this.

Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(jcoppeard)
Resolution: --- → FIXED
Flags: needinfo?(dao+bmo)
Target Milestone: --- → 117 Branch
See Also: → 1853507
You need to log in before you can comment on or make changes to this bug.