Bug: Intermittent browser/components/urlbar/tests/browser/browser_switchToTab_chiclet.js | Uncaught exception - at resource://testing-common/UrlbarTestUtils.jsm:209 - TypeError: can't access property "result", element is undefined
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2021-09-05 04:41:47+00:00
Resolved: 2022-07-25 23:16:51+00:00

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

---
```
task 2021-09-05T03:46:38.176Z] 03:46:38     INFO - TEST-START | browser/components/urlbar/tests/browser/browser_switchToTab_chiclet.js
[task 2021-09-05T03:46:38.763Z] 03:46:38     INFO - TEST-INFO | started process screenshot
[task 2021-09-05T03:46:38.847Z] 03:46:38     INFO - TEST-INFO | screenshot: exit 0
[task 2021-09-05T03:46:38.853Z] 03:46:38     INFO - Buffered messages logged at 03:46:38
[task 2021-09-05T03:46:38.853Z] 03:46:38     INFO - Entering test bound test_with_oneoff_button
[task 2021-09-05T03:46:38.854Z] 03:46:38     INFO - Loading test page into first tab
[task 2021-09-05T03:46:38.854Z] 03:46:38     INFO - Opening a new tab
[task 2021-09-05T03:46:38.855Z] 03:46:38     INFO - Wait for autocomplete
[task 2021-09-05T03:46:38.855Z] 03:46:38     INFO - Awaiting for the urlbar panel to open
[task 2021-09-05T03:46:38.855Z] 03:46:38     INFO - Urlbar panel opened
[task 2021-09-05T03:46:38.856Z] 03:46:38     INFO - Enter Tabs mode
[task 2021-09-05T03:46:38.856Z] 03:46:38     INFO - Enter Search Mode {"source":4}
[task 2021-09-05T03:46:38.856Z] 03:46:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_switchToTab_chiclet.js | One-offs are visible - true == true - 
[task 2021-09-05T03:46:38.857Z] 03:46:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_switchToTab_chiclet.js | Found one-off button for search mode - {"source":4,"_inheritedElements":null,"initializedAttributeInheritance":true} == true - 
[task 2021-09-05T03:46:38.857Z] 03:46:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_switchToTab_chiclet.js | Urlbar view is still open. - true == true - 
[task 2021-09-05T03:46:38.858Z] 03:46:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_switchToTab_chiclet.js | Urlbar should never be in search mode without the corresponding attribute. - true == true - 
[task 2021-09-05T03:46:38.858Z] 03:46:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_switchToTab_chiclet.js | gURLBar.searchMode should exist as expected - true == true - 
[task 2021-09-05T03:46:38.859Z] 03:46:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_switchToTab_chiclet.js | Expected searchMode - {"source":4,"isPreview":false,"entry":"oneoff"} deepEqual {"source":4,"entry":"oneoff","isPreview":false} - 
[task 2021-09-05T03:46:38.859Z] 03:46:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_switchToTab_chiclet.js | Expected result source should have a name - "tabs" == true - 
[task 2021-09-05T03:46:38.860Z] 03:46:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_switchToTab_chiclet.js | Expected l10n - {"args":null,"id":"urlbar-search-mode-tabs"} deepEqual {"id":"urlbar-search-mode-tabs","args":null} - 
[task 2021-09-05T03:46:38.860Z] 03:46:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_switchToTab_chiclet.js | Expected l10n - {"args":null,"id":"urlbar-search-mode-tabs"} deepEqual {"id":"urlbar-search-mode-tabs","args":null} - 
[task 2021-09-05T03:46:38.861Z] 03:46:38     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_switchToTab_chiclet.js | Expected placeholder l10n when search mode is active - {"args":null,"id":"urlbar-placeholder-search-mode-other-tabs"} deepEqual {"id":"urlbar-placeholder-search-mode-other-tabs","args":null} - 
[task 2021-09-05T03:46:38.861Z] 03:46:38     INFO - Select first popup entry
[task 2021-09-05T03:46:38.862Z] 03:46:38     INFO - Buffered messages finished
[task 2021-09-05T03:46:38.862Z] 03:46:38     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_switchToTab_chiclet.js | Uncaught exception - at resource://testing-common/UrlbarTestUtils.jsm:209 - TypeError: can't access property "result", element is undefined
[task 2021-09-05T03:46:38.863Z] 03:46:38     INFO - Stack trace:
[task 2021-09-05T03:46:38.863Z] 03:46:38     INFO - getDetailsOfResultAt@resource://testing-common/UrlbarTestUtils.jsm:209:18
[task 2021-09-05T03:46:38.863Z] 03:46:38     INFO - Leaving test bound test_with_oneoff_button
[task 2021-09-05T03:46:38.863Z] 03:46:38     INFO - Entering test bound test_with_keytype
[task 2021-09-05T03:46:38.864Z] 03:46:38     INFO - Loading test page into first tab
[task 2021-09-05T03:46:38.864Z] 03:46:38     INFO - Opening a new tab
[task 2021-09-05T03:46:39.079Z] 03:46:39     INFO - Enter Tabs mode with keytype
[task 2021-09-05T03:46:39.085Z] 03:46:39     INFO - Awaiting for the urlbar panel to open
[task 2021-09-05T03:46:39.088Z] 03:46:39     INFO - Urlbar panel opened
[task 2021-09-05T03:46:39.180Z] 03:46:39     INFO - Select second popup entry
[task 2021-09-05T03:46:39.280Z] 03:46:39     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-09-05T03:46:39.284Z] 03:46:39     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_switchToTab_chiclet.js | Uncaught exception - at resource://testing-common/UrlbarTestUtils.jsm:209 - TypeError: can't access property "result", element is undefined
[task 2021-09-05T03:46:39.284Z] 03:46:39     INFO - Stack trace:
[task 2021-09-05T03:46:39.285Z] 03:46:39     INFO - getDetailsOfResultAt@resource://testing-common/UrlbarTestUtils.jsm:209:18
[task 2021-09-05T03:46:39.285Z] 03:46:39     INFO - Leaving test bound test_with_keytype
[task 2021-09-05T03:46:39.302Z] 03:46:39     INFO - GECKO(2540) | MEMORY STAT | vsize 2104452MB | vsizeMaxContiguous 65531775MB | residentFast 396MB | heapAllocated 182MB
[task 2021-09-05T03:46:39.308Z] 03:46:39     INFO - TEST-OK | browser/components/urlbar/tests/browser/browser_switchToTab_chiclet.js | took 1132ms
[task 2021-09-05T03:46:39.309Z] 03:46:39     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-09-05T03:46:39.309Z] 03:46:39     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_switchToTab_chiclet.js | Found an unexpected tab at the end of test run: about:blank - 
[task 2021-09-05T03:46:39.313Z] 03:46:39     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-09-05T03:46:39.314Z] 03:46:39     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_switchToTab_chiclet.js | Found an unexpected tab at the end of test run: about:blank - 
[task 2021-09-05T03:46:39.326Z] 03:46:39     INFO - checking window state
[task 2021-09-05T03:46:39.333Z] 03:46:39     INFO - TEST-START | browser/components/urlbar/tests/browser/browser_switchToTab_closes_newtab.js
```