Bug: Intermittent TV browser/components/search/test/browser/browser_searchbar_focus_timing.js | uncaught exception - TypeError: can't access property "wrappedJSObject", this.mController.input is null at onInput@chrome://.../elements/autocomplete-input.js:642:1
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-06-25 18:01:54+00:00
Resolved: 2021-07-20 17:05:57+00:00

**Filed by:** mlaza [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=343868056&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/GA-XgHTGRaqRymjzTUZpJQ/runs/0/artifacts/public/logs/live_backing.log
**Reftest URL:** https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/GA-XgHTGRaqRymjzTUZpJQ/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
[task 2021-06-25T13:31:44.553Z] 13:31:44     INFO - TEST-START | browser/components/search/test/browser/browser_searchbar_focus_timing.js
[task 2021-06-25T13:31:44.605Z] 13:31:44     INFO - GECKO(2775) | [Child 2949, Main Thread] WARNING: could not set real-time limit in CubebUtils::InitLibrary: file /builds/worker/checkouts/gecko/dom/media/CubebUtils.cpp:619
[task 2021-06-25T13:31:44.811Z] 13:31:44     INFO - GECKO(2775) | [Child 2949: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7fd273c98800 == 1 [pid = 2949] [id = 0]
[task 2021-06-25T13:31:44.812Z] 13:31:44     INFO - GECKO(2775) | [Child 2949: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (7fd28a3643c0) [pid = 2949] [serial = 1] [outer = 0]
[task 2021-06-25T13:31:44.818Z] 13:31:44     INFO - GECKO(2775) | [Child 2949: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (7fd273c9a000) [pid = 2949] [serial = 2] [outer = 7fd28a3643c0]
[task 2021-06-25T13:31:44.862Z] 13:31:44     INFO - TEST-INFO | started process screentopng
[task 2021-06-25T13:31:45.138Z] 13:31:45     INFO - TEST-INFO | screentopng: exit 0
[task 2021-06-25T13:31:45.139Z] 13:31:45     INFO - Buffered messages logged at 13:31:44
[task 2021-06-25T13:31:45.139Z] 13:31:45     INFO - Entering test bound setup
[task 2021-06-25T13:31:45.139Z] 13:31:45     INFO - Console message: [JavaScript Error: "NotFoundError: No such JSWindowActor 'MarionetteEvents'"]
[task 2021-06-25T13:31:45.139Z] 13:31:45     INFO - Extension loaded
[task 2021-06-25T13:31:45.140Z] 13:31:45     INFO - TEST-PASS | browser/components/search/test/browser/browser_searchbar_focus_timing.js | Search provider extension should be running - "running" == "running" - 
[task 2021-06-25T13:31:45.141Z] 13:31:45     INFO - TEST-PASS | browser/components/search/test/browser/browser_searchbar_focus_timing.js | Extension ID of search provider should be set - "example@tests.mozilla.org" == true - 
[task 2021-06-25T13:31:45.142Z] 13:31:45     INFO - Leaving test bound setup
[task 2021-06-25T13:31:45.143Z] 13:31:45     INFO - Entering test bound 
[task 2021-06-25T13:31:45.143Z] 13:31:45     INFO - Focus on the search bar
[task 2021-06-25T13:31:45.144Z] 13:31:45     INFO - TEST-PASS | browser/components/search/test/browser/browser_searchbar_focus_timing.js | The search bar has focus - 
[task 2021-06-25T13:31:45.145Z] 13:31:45     INFO - Keydown a char and Enter
[task 2021-06-25T13:31:45.145Z] 13:31:45     INFO - Buffered messages finished
[task 2021-06-25T13:31:45.146Z] 13:31:45     INFO - TEST-UNEXPECTED-FAIL | browser/components/search/test/browser/browser_searchbar_focus_timing.js | uncaught exception - TypeError: can't access property "wrappedJSObject", this.mController.input is null at onInput@chrome://global/content/elements/autocomplete-input.js:642:1
[task 2021-06-25T13:31:45.147Z] 13:31:45     INFO - AutocompleteInput/<@chrome://global/content/elements/autocomplete-input.js:37:14
[task 2021-06-25T13:31:45.147Z] 13:31:45     INFO - synthesizeKey@chrome://mochikit/content/tests/SimpleTest/EventUtils.js:1307:11
[task 2021-06-25T13:31:45.149Z] 13:31:45     INFO - @chrome://mochitests/content/browser/browser/components/search/test/browser/browser_searchbar_focus_timing.js:48:14
[task 2021-06-25T13:31:45.150Z] 13:31:45     INFO - Tester_execTest/<@chrome://mochikit/content/browser-test.js:1086:34
[task 2021-06-25T13:31:45.150Z] 13:31:45     INFO - 
[task 2021-06-25T13:31:45.151Z] 13:31:45     INFO - Stack trace:
[task 2021-06-25T13:31:45.152Z] 13:31:45     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:simpletestOnerror:1964
[task 2021-06-25T13:31:45.152Z] 13:31:45     INFO - chrome://mochikit/content/tests/SimpleTest/EventUtils.js:synthesizeKey:1307
[task 2021-06-25T13:31:45.153Z] 13:31:45     INFO - chrome://mochitests/content/browser/browser/components/search/test/browser/browser_searchbar_focus_timing.js:null:48
[task 2021-06-25T13:31:45.154Z] 13:31:45     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1086
[task 2021-06-25T13:31:45.158Z] 13:31:45     INFO - GECKO(2775) | JavaScript error: chrome://global/content/elements/autocomplete-input.js, line 642: TypeError: can't access property "wrappedJSObject", this.mController.input is null
[task 2021-06-25T13:31:45.158Z] 13:31:45     INFO - Wait for pagehide event in the content
[task 2021-06-25T13:31:45.158Z] 13:31:45     INFO - Console message: [JavaScript Warning: "Key event not available on some keyboard layouts: key=“r” modifiers=“accel,alt” id=“key_toggleReaderMode”" {file: "chrome://mochikit/content/tests/SimpleTest/EventUtils.js" line: 1307}]
[task 2021-06-25T13:31:45.158Z] 13:31:45     INFO - Console message: [JavaScript Warning: "Key event not available on some keyboard layouts: key=“i” modifiers=“accel,alt,shift” id=“key_browserToolbox”" {file: "chrome://mochikit/content/tests/SimpleTest/EventUtils.js" line: 1307}]
[task 2021-06-25T13:31:45.160Z] 13:31:45     INFO - Console message: [JavaScript Error: "TypeError: can't access property "wrappedJSObject", this.mController.input is null" {file: "chrome://global/content/elements/autocomplete-input.js" line: 642}]
[task 2021-06-25T13:31:45.160Z] 13:31:45     INFO - onInput@chrome://global/content/elements/autocomplete-input.js:642:1
[task 2021-06-25T13:31:45.160Z] 13:31:45     INFO - AutocompleteInput/<@chrome://global/content/elements/autocomplete-input.js:37:14
[task 2021-06-25T13:31:45.160Z] 13:31:45     INFO - synthesizeKey@chrome://mochikit/content/tests/SimpleTest/EventUtils.js:1307:11
[task 2021-06-25T13:31:45.160Z] 13:31:45     INFO - @chrome://mochitests/content/browser/browser/components/search/test/browser/browser_searchbar_focus_timing.js:48:14
[task 2021-06-25T13:31:45.160Z] 13:31:45     INFO - Tester_execTest/<@chrome://mochikit/content/browser-test.js:1086:34
[task 2021-06-25T13:31:45.160Z] 13:31:45     INFO - 
[task 2021-06-25T13:31:45.160Z] 13:31:45     INFO - GECKO(2775) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to /tmp/tmpbd81zpe1.mozrunner/runtests_leaks_tab_pid2970.log
[task 2021-06-25T13:31:45.160Z] 13:31:45     INFO - GECKO(2775) | [2970, Main Thread] WARNING: XPCOM_MEM_BLOAT_LOG is set, disabling native allocations.: file /builds/worker/checkouts/gecko/tools/profiler/core/platform.cpp:248
[task 2021-06-25T13:31:45.225Z] 13:31:45     INFO - GECKO(2775) | [Child 2970, Main Thread] WARNING: could not set real-time limit in CubebUtils::InitLibrary: file /builds/worker/checkouts/gecko/dom/media/CubebUtils.cpp:619
[task 2021-06-25T13:31:48.843Z] 13:31:48     INFO - GECKO(2775) | [Child 2833: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7fb779e8d400 == 0 [pid = 2833] [id = 0] [url = about:blank]
[task 2021-06-25T13:31:52.938Z] 13:31:52     INFO - GECKO(2775) | [Child 2833: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (7fb779e8e400) [pid = 2833] [serial = 2] [outer = 0] [url = about:blank]
[task 2021-06-25T13:31:52.956Z] 13:31:52     INFO - GECKO(2775) | [Child 2833: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (7fb790664580) [pid = 2833] [serial = 1] [outer = 0] [url = about:blank]
[task 2021-06-25T13:31:53.723Z] 13:31:53     INFO - GECKO(2775) | [Child 2855: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 14 (7fa77feb1000) [pid = 2855] [serial = 4] [outer = 0] [url = about:blank]
[task 2021-06-25T13:31:53.724Z] 13:31:53     INFO - GECKO(2775) | [Child 2855: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 13 (7fa77feabc00) [pid = 2855] [serial = 2] [outer = 0] [url = about:blank]
[task 2021-06-25T13:31:53.725Z] 13:31:53     INFO - GECKO(2775) | [Child 2855: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 12 (7fa77feb3400) [pid = 2855] [serial = 6] [outer = 0] [url = about:blank]
[task 2021-06-25T13:31:53.726Z] 13:31:53     INFO - GECKO(2775) | [Child 2855: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 11 (7fa77ff81000) [pid = 2855] [serial = 8] [outer = 0] [url = about:blank]
[task 2021-06-25T13:31:53.727Z] 13:31:53     INFO - GECKO(2775) | [Child 2855: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 10 (7fa7795d4800) [pid = 2855] [serial = 10] [outer = 0] [url = about:blank]
[task 2021-06-25T13:31:53.778Z] 13:31:53     INFO - GECKO(2775) | [Child 2855: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7fa77feb2000 == 4 [pid = 2855] [id = 2] [url = moz-extension://1c6e6b1a-fe8b-4dff-8dbc-f7ed59af3e37/_generated_background_page.html]
[task 2021-06-25T13:31:53.779Z] 13:31:53     INFO - GECKO(2775) | [Child 2855: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 9 (7fa796564ac0) [pid = 2855] [serial = 5] [outer = 0] [url = moz-extension://1c6e6b1a-fe8b-4dff-8dbc-f7ed59af3e37/_generated_background_page.html]
[task 2021-06-25T13:31:55.090Z] 13:31:55     INFO - GECKO(2775) | [Parent 2775: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 10 (7f1dc5ad7c00) [pid = 2775] [serial = 8] [outer = 0] [url = about:blank]
[task 2021-06-25T13:31:55.666Z] 13:31:55     INFO - GECKO(2775) | [Child 2920: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (7f5262e94000) [pid = 2920] [serial = 2] [outer = 0] [url = about:blank]
[task 2021-06-25T13:31:57.003Z] 13:31:57     INFO - GECKO(2775) | [Child 2833: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (7fb7735b0c00) [pid = 2833] [serial = 4] [outer = 0] [url = about:blank]
[task 2021-06-25T13:31:57.003Z] 13:31:57     INFO - GECKO(2775) | [Child 2833: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (7fb779e95800) [pid = 2833] [serial = 3] [outer = 0] [url = about:blank]
[task 2021-06-25T13:31:57.819Z] 13:31:57     INFO - GECKO(2775) | [Child 2855: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 8 (7fa778772000) [pid = 2855] [serial = 13] [outer = 0] [url = moz-extension://1c6e6b1a-fe8b-4dff-8dbc-f7ed59af3e37/_generated_background_page.html]
[task 2021-06-25T13:33:14.617Z] 13:33:14     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-25T13:33:14.618Z] 13:33:14     INFO - TEST-UNEXPECTED-FAIL | browser/components/search/test/browser/browser_searchbar_focus_timing.js | Test timed out - 
[task 2021-06-25T13:33:14.789Z] 13:33:14     INFO - GECKO(2775) | [Parent 2775, Main Thread] WARNING: NS_ENSURE_TRUE(mPresShell) failed: file /builds/worker/checkouts/gecko/layout/generic/nsFrameSelection.cpp:1582
[task 2021-06-25T13:33:14.835Z] 13:33:14     INFO - GECKO(2775) | MEMORY STAT vsizeMaxContiguous not supported in this build configuration.
[task 2021-06-25T13:33:14.837Z] 13:33:14     INFO - GECKO(2775) | MEMORY STAT | vsize 2914MB | residentFast 320MB | heapAllocated 99MB
[task 2021-06-25T13:33:14.839Z] 13:33:14     INFO - TEST-OK | browser/components/search/test/browser/browser_searchbar_focus_timing.js | took 90285ms
```