Bug: Intermittent uriloader/exthandler/tests/mochitest/browser_open_internal_choice_persistence.js | Uncaught exception - at chrome://global/content/elements/browser-custom-element.js:713 - TypeError: can't access property "userTyped", this.urlbarChangeTracke
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2022-02-02 01:33:56+00:00
Resolved: 2022-05-24 17:04:25+00:00

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

---
```
[task 2022-02-02T01:10:01.344Z] 01:10:01     INFO - TEST-PASS | uriloader/exthandler/tests/mochitest/browser_open_internal_choice_persistence.js | alwaysAskBeforeHandling - Pref enabled - internal handling as default should not change prefs - 
[task 2022-02-02T01:10:01.344Z] 01:10:01     INFO - Cleaning up
[task 2022-02-02T01:10:01.345Z] 01:10:01     INFO - Testing with file_image_svgxml.svg; Pref enabled - external handling as default should not change prefs
[task 2022-02-02T01:10:01.345Z] 01:10:01     INFO - Load window and tabs
[task 2022-02-02T01:10:01.346Z] 01:10:01     INFO - Buffered messages finished
[task 2022-02-02T01:10:01.347Z] 01:10:01     INFO - TEST-UNEXPECTED-FAIL | uriloader/exthandler/tests/mochitest/browser_open_internal_choice_persistence.js | Uncaught exception - at chrome://global/content/elements/browser-custom-element.js:713 - TypeError: can't access property "userTyped", this.urlbarChangeTracker is undefined
[task 2022-02-02T01:10:01.347Z] 01:10:01     INFO - Stack trace:
[task 2022-02-02T01:10:01.348Z] 01:10:01     INFO - set userTypedValue@chrome://global/content/elements/browser-custom-element.js:713:7
[task 2022-02-02T01:10:01.348Z] 01:10:01     INFO - addTab@chrome://browser/content/tabbrowser.js:2888:13
[task 2022-02-02T01:10:01.349Z] 01:10:01     INFO - addTab@resource://testing-common/BrowserTestUtils.jsm:2454:23
[task 2022-02-02T01:10:01.349Z] 01:10:01     INFO - openNewForegroundTab/promises<@resource://testing-common/BrowserTestUtils.jsm:250:61
[task 2022-02-02T01:10:01.349Z] 01:10:01     INFO - switchTab@resource://testing-common/BrowserTestUtils.jsm:388:7
[task 2022-02-02T01:10:01.349Z] 01:10:01     INFO - openNewForegroundTab@resource://testing-common/BrowserTestUtils.jsm:245:26
[task 2022-02-02T01:10:01.350Z] 01:10:01     INFO - test_check_saving_handler_choices_with_downloads_pref_enabled@chrome://mochitests/content/browser/uriloader/exthandler/tests/mochitest/browser_open_internal_choice_persistence.js:392:47
[task 2022-02-02T01:10:01.350Z] 01:10:01     INFO - Leaving test bound test_check_saving_handler_choices_with_downloads_pref_enabled
[task 2022-02-02T01:10:01.350Z] 01:10:01     INFO - Console message: [JavaScript Error: "[Exception... "Component returned failure code: 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) [nsIFile.isExecutable]"  nsresult: "0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)"  location: "JS frame :: resource://gre/modules/DownloadIntegration.jsm :: launchDownload :: line 758"  data: no]"]
[task 2022-02-02T01:10:01.350Z] 01:10:01     INFO - launchDownload@resource://gre/modules/DownloadIntegration.jsm:758:12
[task 2022-02-02T01:10:01.351Z] 01:10:01     INFO - launch@resource://gre/modules/DownloadCore.jsm:801:32
[task 2022-02-02T01:10:01.351Z] 01:10:01     INFO - _succeed@resource://gre/modules/DownloadCore.jsm:598:12
[task 2022-02-02T01:10:01.351Z] 01:10:01     INFO - 
[task 2022-02-02T01:10:01.351Z] 01:10:01     INFO - GECKO(4848) | console.log: Downloads: Attempting to terminate DownloadsPanel for a window.
[task 2022-02-02T01:10:01.352Z] 01:10:01     INFO - GECKO(4848) | console.log: Downloads: Closing the downloads panel.
[task 2022-02-02T01:10:01.353Z] 01:10:01     INFO - GECKO(4848) | console.log: Downloads: Downloads panel is not showing - nothing to do.
[task 2022-02-02T01:10:01.355Z] 01:10:01     INFO - GECKO(4848) | console.log: Downloads: DownloadsPanel terminated.
[task 2022-02-02T01:10:01.355Z] 01:10:01     INFO - GECKO(4848) | [Parent 4848, Compositor] WARNING: Possibly dropping task posted to updater thread: file /builds/worker/checkouts/gecko/gfx/layers/apz/src/APZUpdater.cpp:362
[task 2022-02-02T01:10:01.356Z] 01:10:01     INFO - Console message: [JavaScript Error: "Cannot attach ID to a tab in a closed window." {file: "chrome://browser/content/parent/ext-browser.js" line: 369}]
[task 2022-02-02T01:10:01.356Z] 01:10:01     INFO - setId@chrome://browser/content/parent/ext-browser.js:369:13
[task 2022-02-02T01:10:01.356Z] 01:10:01     INFO - getId@chrome://browser/content/parent/ext-browser.js:345:10
[task 2022-02-02T01:10:01.356Z] 01:10:01     INFO - emitRemoved@chrome://browser/content/parent/ext-browser.js:697:22
[task 2022-02-02T01:10:01.356Z] 01:10:01     INFO - _handleWindowClose@chrome://browser/content/parent/ext-browser.js:624:14
[task 2022-02-02T01:10:01.356Z] 01:10:01     INFO - observe@chrome://extensions/content/parent/ext-tabs-base.js:1740:19
[task 2022-02-02T01:10:01.357Z] 01:10:01     INFO - 
[task 2022-02-02T01:10:01.357Z] 01:10:01     INFO - GECKO(4848) | [2022-02-02T01:10:01Z WARN  xulstore::persist] tried to remove key that isn't in the store
[task 2022-02-02T01:10:01.358Z] 01:10:01     INFO - GECKO(4848) | [2022-02-02T01:10:01Z WARN  xulstore::persist] tried to remove key that isn't in the store
[task 2022-02-02T01:10:02.426Z] 01:10:02     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f8627277c00 == 8 [pid = 4848] [id = 2] [url = about:blank]
[task 2022-02-02T01:10:02.459Z] 01:10:02     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 34 (7f862ade1e40) [pid = 4848] [serial = 97] [outer = 0] [url = about:blank]
[task 2022-02-02T01:10:02.460Z] 01:10:02     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 33 (7f861a8c33c0) [pid = 4848] [serial = 92] [outer = 0] [url = about:blank]
[task 2022-02-02T01:10:02.461Z] 01:10:02     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 32 (7f8613f9f740) [pid = 4848] [serial = 89] [outer = 0] [url = chrome://mozapps/content/handling/appChooser.xhtml]
[task 2022-02-02T01:10:02.462Z] 01:10:02     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 31 (7f86126c1580) [pid = 4848] [serial = 88] [outer = 0] [url = about:blank]
[task 2022-02-02T01:10:02.511Z] 01:10:02     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 30 (7f86286f4040) [pid = 4848] [serial = 95] [outer = 0] [url = chrome://browser/content/browser.xhtml]
[task 2022-02-02T01:10:02.512Z] 01:10:02     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 29 (7f86156dee40) [pid = 4848] [serial = 99] [outer = 0] [url = chrome://mozapps/content/downloads/unknownContentType.xhtml]
[task 2022-02-02T01:10:03.151Z] 01:10:03     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f863b647800 == 7 [pid = 4848] [id = 0] [url = chrome://browser/content/browser.xhtml]
[task 2022-02-02T01:10:03.154Z] 01:10:03     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f86146c6000 == 6 [pid = 4848] [id = 51] [url = chrome://mozapps/content/downloads/unknownContentType.xhtml]
[task 2022-02-02T01:10:03.158Z] 01:10:03     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f8615aaa400 == 5 [pid = 4848] [id = 52] [url = chrome://mozapps/content/downloads/unknownContentType.xhtml]
[task 2022-02-02T01:10:03.160Z] 01:10:03     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f8619eb7800 == 4 [pid = 4848] [id = 53] [url = chrome://mozapps/content/downloads/unknownContentType.xhtml]
[task 2022-02-02T01:10:03.164Z] 01:10:03     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f8619ca5c00 == 3 [pid = 4848] [id = 54] [url = chrome://mozapps/content/downloads/unknownContentType.xhtml]
[task 2022-02-02T01:10:03.165Z] 01:10:03     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 28 (7f8610f3cc00) [pid = 4848] [serial = 98] [outer = 0] [url = about:blank]
[task 2022-02-02T01:10:03.166Z] 01:10:03     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 27 (7f86146c5800) [pid = 4848] [serial = 96] [outer = 0] [url = about:blank]
[task 2022-02-02T01:10:03.167Z] 01:10:03     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 26 (7f860cdf3400) [pid = 4848] [serial = 94] [outer = 0] [url = chrome://mozapps/content/handling/appChooser.xhtml]
[task 2022-02-02T01:10:03.168Z] 01:10:03     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 25 (7f860cdf1800) [pid = 4848] [serial = 93] [outer = 0] [url = about:blank]
[task 2022-02-02T01:10:03.171Z] 01:10:03     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 24 (7f860c70fc00) [pid = 4848] [serial = 91] [outer = 0] [url = about:blank]
[task 2022-02-02T01:10:03.171Z] 01:10:03     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 23 (7f860c70b000) [pid = 4848] [serial = 90] [outer = 0] [url = about:blank]
[task 2022-02-02T01:10:03.172Z] 01:10:03     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 22 (7f860cdf4800) [pid = 4848] [serial = 100] [outer = 0] [url = about:blank]
[task 2022-02-02T01:10:03.207Z] 01:10:03     INFO - GECKO(4848) | [Child 5068: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (7f8af6125800) [pid = 5068] [serial = 90] [outer = 0] [url = about:blank]
[task 2022-02-02T01:10:03.222Z] 01:10:03     INFO - GECKO(4848) | [Child 5068: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f8af611f000 == 0 [pid = 5068] [id = 36] [url = about:blank]
[task 2022-02-02T01:10:03.410Z] 01:10:03     INFO - GECKO(4848) | [Child 5090: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (7f5db5020580) [pid = 5090] [serial = 62] [outer = 0] [url = about:blank]
[task 2022-02-02T01:10:03.719Z] 01:10:03     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 21 (7f86113c6200) [pid = 4848] [serial = 105] [outer = 0] [url = chrome://mozapps/content/downloads/unknownContentType.xhtml]
[task 2022-02-02T01:10:03.720Z] 01:10:03     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 20 (7f8614769900) [pid = 4848] [serial = 107] [outer = 0] [url = chrome://mozapps/content/downloads/unknownContentType.xhtml]
[task 2022-02-02T01:10:03.721Z] 01:10:03     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 19 (7f86229f1900) [pid = 4848] [serial = 101] [outer = 0] [url = chrome://mozapps/content/downloads/unknownContentType.xhtml]
[task 2022-02-02T01:10:03.721Z] 01:10:03     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 18 (7f861a8f8c80) [pid = 4848] [serial = 103] [outer = 0] [url = chrome://mozapps/content/downloads/unknownContentType.xhtml]
[task 2022-02-02T01:10:03.724Z] 01:10:03     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 17 (7f86112f6740) [pid = 4848] [serial = 111] [outer = 0] [url = chrome://mozapps/content/downloads/unknownContentType.xhtml]
[task 2022-02-02T01:10:03.725Z] 01:10:03     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 16 (7f85fbd03200) [pid = 4848] [serial = 109] [outer = 0] [url = chrome://mozapps/content/downloads/unknownContentType.xhtml]
[task 2022-02-02T01:10:03.726Z] 01:10:03     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 15 (7f86286f4580) [pid = 4848] [serial = 5] [outer = 0] [url = about:blank]
[task 2022-02-02T01:10:07.654Z] 01:10:07     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 14 (7f8619eb5c00) [pid = 4848] [serial = 110] [outer = 0] [url = about:blank]
[task 2022-02-02T01:10:07.654Z] 01:10:07     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 13 (7f8619eb5000) [pid = 4848] [serial = 112] [outer = 0] [url = about:blank]
[task 2022-02-02T01:10:07.654Z] 01:10:07     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 12 (7f8615ab1000) [pid = 4848] [serial = 108] [outer = 0] [url = about:blank]
[task 2022-02-02T01:10:07.654Z] 01:10:07     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 11 (7f86146c7400) [pid = 4848] [serial = 106] [outer = 0] [url = about:blank]
[task 2022-02-02T01:10:07.656Z] 01:10:07     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 10 (7f8627277400) [pid = 4848] [serial = 6] [outer = 0] [url = about:blank]
[task 2022-02-02T01:10:07.656Z] 01:10:07     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 9 (7f860cdfc400) [pid = 4848] [serial = 102] [outer = 0] [url = about:blank]
[task 2022-02-02T01:10:07.656Z] 01:10:07     INFO - GECKO(4848) | [Parent 4848: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 8 (7f860cdf2c00) [pid = 4848] [serial = 104] [outer = 0] [url = about:blank]
[task 2022-02-02T01:10:07.775Z] 01:10:07     INFO - GECKO(4848) | [Child 5068: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (7f8af66a1040) [pid = 5068] [serial = 91] [outer = 0] [url = about:blank]
[task 2022-02-02T01:10:07.790Z] 01:10:07     INFO - GECKO(4848) | [Child 5090: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (7f5db466a800) [pid = 5090] [serial = 63] [outer = 0] [url = about:blank]
[task 2022-02-02T01:10:09.105Z] 01:10:09     INFO - GECKO(4848) | [Child 4981: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7fd7aa7d5c00 == 0 [pid = 4981] [id = 0] [url = about:newtab]
[task 2022-02-02T01:10:09.185Z] 01:10:09     INFO - GECKO(4848) | [Child 4934: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f637e295c00 == 0 [pid = 4934] [id = 26] [url = about:blank]
[task 2022-02-02T01:10:09.223Z] 01:10:09     INFO - GECKO(4848) | [Child 4981: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (7fd7c517d740) [pid = 4981] [serial = 1] [outer = 0] [url = about:newtab]
[task 2022-02-02T01:10:11.834Z] 01:10:11     INFO - GECKO(4848) | [Child 5068: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (7f8af611f400) [pid = 5068] [serial = 92] [outer = 0] [url = about:blank]
[task 2022-02-02T01:10:13.189Z] 01:10:13     INFO - GECKO(4848) | [Child 4981: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (7fd7aa7d7c00) [pid = 4981] [serial = 3] [outer = 0] [url = about:newtab]
[task 2022-02-02T01:10:13.300Z] 01:10:13     INFO - GECKO(4848) | [Child 4934: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (7f637e26c200) [pid = 4934] [serial = 64] [outer = 0] [url = about:blank]
[task 2022-02-02T01:10:17.365Z] 01:10:17     INFO - GECKO(4848) | [Child 4934: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (7f637e296000) [pid = 4934] [serial = 65] [outer = 0] [url = about:blank]
[task 2022-02-02T01:14:47.144Z] 01:14:47     INFO - GECKO(4848) | 1643764487142	addons.xpi	ERROR	System addon update list error Error: got node name: html, expected: updates
[task 2022-02-02T01:14:47.147Z] 01:14:47     INFO - Console message: [JavaScript Error: "1643764487142	addons.xpi	ERROR	System addon update list error Error: got node name: html, expected: updates" {file: "resource://gre/modules/Log.jsm" line: 723}]
[task 2022-02-02T01:14:47.147Z] 01:14:47     INFO - append@resource://gre/modules/Log.jsm:723:12
[task 2022-02-02T01:14:47.147Z] 01:14:47     INFO - log@resource://gre/modules/Log.jsm:379:16
[task 2022-02-02T01:14:47.147Z] 01:14:47     INFO - error@resource://gre/modules/Log.jsm:387:10
[task 2022-02-02T01:14:47.148Z] 01:14:47     INFO - updateSystemAddons/res<@resource://gre/modules/addons/XPIInstall.jsm:4003:25
[task 2022-02-02T01:14:47.148Z] 01:14:47     INFO - 
[task 2022-02-02T01:20:57.168Z] 01:20:57     INFO - Buffered messages finished
[task 2022-02-02T01:20:57.169Z] 01:20:57    ERROR - TEST-UNEXPECTED-TIMEOUT | uriloader/exthandler/tests/mochitest/browser_open_internal_choice_persistence.js | application timed out after 370 seconds with no output
[task 2022-02-02T01:20:57.170Z] 01:20:57    ERROR - Force-terminating active process(es).
```