Bug: Intermittent browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2022-08-31 00:38:37+00:00
Resolved: 2023-04-18 17:02:56+00:00

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

---
```
[task 2022-08-30T23:32:50.429Z] 23:32:50     INFO - TEST-START | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js
[task 2022-08-30T23:36:35.479Z] 23:36:35     INFO - TEST-INFO | started process screenshot
[task 2022-08-30T23:36:35.537Z] 23:36:35     INFO - TEST-INFO | screenshot: exit 0
[task 2022-08-30T23:36:35.538Z] 23:36:35     INFO - <snipped 328 output lines - if you need more context, please use SimpleTest.requestCompleteLog() in your test>
[task 2022-08-30T23:36:35.539Z] 23:36:35     INFO - Buffered messages logged at 23:32:52
[task 2022-08-30T23:36:35.539Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar.selectionEnd after the search completes - 16 == 16 - 
[task 2022-08-30T23:36:35.540Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar._autofillPlaceholder exists after the search completes - {"value":"example.com/test","type":"adaptive","adaptiveHistoryInput":"exa"} == true - 
[task 2022-08-30T23:36:35.541Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar._autofillPlaceholder.value after the search completes - "example.com/test" === "example.com/test" - 
[task 2022-08-30T23:36:35.542Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | First result is an autofill result iff a placeholder is expected - true == true - 
[task 2022-08-30T23:36:35.542Z] 23:36:35     INFO - Leaving test bound adaptiveHistory
[task 2022-08-30T23:36:35.543Z] 23:36:35     INFO - Entering test bound tokenAlias
[task 2022-08-30T23:36:35.544Z] 23:36:35     INFO - Extension loaded
[task 2022-08-30T23:36:35.544Z] 23:36:35     INFO - Buffered messages logged at 23:32:53
[task 2022-08-30T23:36:35.545Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | Search provider extension should be running - "running" == "running" - 
[task 2022-08-30T23:36:35.546Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | Extension ID of search provider should be set - "example@tests.mozilla.org" == true - 
[task 2022-08-30T23:36:35.546Z] 23:36:35     INFO - Searching: {"searchString":"@__ex","valueBefore":"@__ex","valueAfter":"@__example ","placeholderAfter":"@__example "}
[task 2022-08-30T23:36:35.547Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar.value before the search completes - "@__ex" == "@__ex" - 
[task 2022-08-30T23:36:35.548Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar.selectionStart before the search completes - 5 == 5 - 
[task 2022-08-30T23:36:35.549Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar.selectionEnd before the search completes - 5 == 5 - 
[task 2022-08-30T23:36:35.549Z] 23:36:35     INFO - Waiting for the search to complete
[task 2022-08-30T23:36:35.550Z] 23:36:35     INFO - Awaiting for the urlbar panel to open
[task 2022-08-30T23:36:35.550Z] 23:36:35     INFO - Urlbar panel opened
[task 2022-08-30T23:36:35.551Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar.value after the search completes - "@__example " == "@__example " - 
[task 2022-08-30T23:36:35.552Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar.selectionStart after the search completes - 5 == 5 - 
[task 2022-08-30T23:36:35.553Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar.selectionEnd after the search completes - 11 == 11 - 
[task 2022-08-30T23:36:35.554Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar._autofillPlaceholder exists after the search completes - {"value":"@__example ","type":"undefined","adaptiveHistoryInput":"undefined"} == true - 
[task 2022-08-30T23:36:35.554Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar._autofillPlaceholder.value after the search completes - "@__example " === "@__example " - 
[task 2022-08-30T23:36:35.555Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | First result is an autofill result iff a placeholder is expected - true == true - 
[task 2022-08-30T23:36:35.556Z] 23:36:35     INFO - Searching: {"searchString":"@__exa","valueBefore":"@__example ","valueAfter":"@__example ","placeholderAfter":"@__example "}
[task 2022-08-30T23:36:35.557Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar.value before the search completes - "@__example " == "@__example " - 
[task 2022-08-30T23:36:35.557Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar.selectionStart before the search completes - 6 == 6 - 
[task 2022-08-30T23:36:35.558Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar.selectionEnd before the search completes - 11 == 11 - 
[task 2022-08-30T23:36:35.559Z] 23:36:35     INFO - Waiting for the search to complete

[task 2022-08-30T23:36:35.602Z] 23:36:35     INFO - Waiting for the search to complete
[task 2022-08-30T23:36:35.603Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar.value after the search completes - "moz" == "moz" - 
[task 2022-08-30T23:36:35.604Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar.selectionStart after the search completes - 3 == 3 - 
[task 2022-08-30T23:36:35.605Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar.selectionEnd after the search completes - 3 == 3 - 
[task 2022-08-30T23:36:35.606Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar._autofillPlaceholder does not exist after the search completes - null === null - 
[task 2022-08-30T23:36:35.606Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | First result is an autofill result iff a placeholder is expected - false == false - 
[task 2022-08-30T23:36:35.607Z] 23:36:35     INFO - Searching: {"searchString":"ex","valueBefore":"ex","valueAfter":"example.com/","placeholderAfter":"example.com/"}
[task 2022-08-30T23:36:35.608Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar.value before the search completes - "ex" == "ex" - 
[task 2022-08-30T23:36:35.609Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar.selectionStart before the search completes - 2 == 2 - 
[task 2022-08-30T23:36:35.609Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar.selectionEnd before the search completes - 2 == 2 - 
[task 2022-08-30T23:36:35.610Z] 23:36:35     INFO - Waiting for the search to complete
[task 2022-08-30T23:36:35.611Z] 23:36:35     INFO - Buffered messages logged at 23:33:35
[task 2022-08-30T23:36:35.611Z] 23:36:35     INFO - Longer timeout required, waiting longer...  Remaining timeouts: 4
[task 2022-08-30T23:36:35.613Z] 23:36:35     INFO - Buffered messages logged at 23:34:20
[task 2022-08-30T23:36:35.613Z] 23:36:35     INFO - Longer timeout required, waiting longer...  Remaining timeouts: 3
[task 2022-08-30T23:36:35.613Z] 23:36:35     INFO - Buffered messages logged at 23:35:05
[task 2022-08-30T23:36:35.614Z] 23:36:35     INFO - Longer timeout required, waiting longer...  Remaining timeouts: 2
[task 2022-08-30T23:36:35.614Z] 23:36:35     INFO - Buffered messages logged at 23:35:50
[task 2022-08-30T23:36:35.615Z] 23:36:35     INFO - Longer timeout required, waiting longer...  Remaining timeouts: 1
[task 2022-08-30T23:36:35.615Z] 23:36:35     INFO - Buffered messages finished
[task 2022-08-30T23:36:35.616Z] 23:36:35     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | Test timed out - 
[task 2022-08-30T23:36:35.617Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar.value after the search completes - "example.com/" == "example.com/" - 
[task 2022-08-30T23:36:35.617Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar.selectionStart after the search completes - 2 == 2 - 
[task 2022-08-30T23:36:35.618Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar.selectionEnd after the search completes - 12 == 12 - 
[task 2022-08-30T23:36:35.619Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar._autofillPlaceholder exists after the search completes - {"value":"example.com/","type":"origin","adaptiveHistoryInput":"undefined"} == true - 
[task 2022-08-30T23:36:35.620Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | gURLBar._autofillPlaceholder.value after the search completes - "example.com/" === "example.com/" - 
[task 2022-08-30T23:36:35.733Z] 23:36:35     INFO - GECKO(4800) | MEMORY STAT | vsize 1348MB | vsizeMaxContiguous 130MB | residentFast 497MB | heapAllocated 351MB
[task 2022-08-30T23:36:35.733Z] 23:36:35     INFO - TEST-OK | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | took 225302ms
[task 2022-08-30T23:36:35.747Z] 23:36:35     INFO - checking window state
[task 2022-08-30T23:36:35.757Z] 23:36:35     INFO - Console message: [JavaScript Error: "1661902595726	urlbar	ERROR	Provider.TabToSearch :: Exception while recording TabToSearch telemetry: TypeError: can't access property "getResultDomain", engine is null)" {file: "resource://gre/modules/Log.jsm" line: 724}]
[task 2022-08-30T23:36:35.757Z] 23:36:35     INFO - append@resource://gre/modules/Log.jsm:724:12
[task 2022-08-30T23:36:35.757Z] 23:36:35     INFO - log@resource://gre/modules/Log.jsm:380:16
[task 2022-08-30T23:36:35.757Z] 23:36:35     INFO - getLoggerWithMessagePrefix/proxy.log@resource://gre/modules/Log.jsm:509:18
[task 2022-08-30T23:36:35.757Z] 23:36:35     INFO - error@resource://gre/modules/Log.jsm:388:10
[task 2022-08-30T23:36:35.757Z] 23:36:35     INFO - onEngagement@resource:///modules/UrlbarProviderTabToSearch.sys.mjs:311:19
[task 2022-08-30T23:36:35.757Z] 23:36:35     INFO - tryMethod@resource:///modules/UrlbarUtils.sys.mjs:1806:30
[task 2022-08-30T23:36:35.758Z] 23:36:35     INFO - notifyEngagementChange@resource:///modules/UrlbarProvidersManager.sys.mjs:322:16
[task 2022-08-30T23:36:35.758Z] 23:36:35     INFO - _internalRecord@resource:///modules/UrlbarController.sys.mjs:928:30
[task 2022-08-30T23:36:35.758Z] 23:36:35     INFO - record@resource:///modules/UrlbarController.sys.mjs:821:12
[task 2022-08-30T23:36:35.758Z] 23:36:35     INFO - _on_blur@resource:///modules/UrlbarInput.sys.mjs:2925:37
[task 2022-08-30T23:36:35.758Z] 23:36:35     INFO - handleEvent@resource:///modules/UrlbarInput.sys.mjs:475:23
[task 2022-08-30T23:36:35.758Z] 23:36:35     INFO - _adjustFocusBeforeTabSwitch@chrome://browser/content/tabbrowser.js:1354:34
[task 2022-08-30T23:36:35.758Z] 23:36:35     INFO - updateDisplay@resource:///modules/AsyncTabSwitcher.jsm:459:23
[task 2022-08-30T23:36:35.758Z] 23:36:35     INFO - postActions@resource:///modules/AsyncTabSwitcher.jsm:673:10
[task 2022-08-30T23:36:35.758Z] 23:36:35     INFO - handleEvent@resource:///modules/AsyncTabSwitcher.jsm:1127:12
[task 2022-08-30T23:36:35.758Z] 23:36:35     INFO - queueUnload@resource:///modules/AsyncTabSwitcher.jsm:1064:10
[task 2022-08-30T23:36:35.758Z] 23:36:35     INFO - requestTab@resource:///modules/AsyncTabSwitcher.jsm:1060:10
[task 2022-08-30T23:36:35.758Z] 23:36:35     INFO - updateCurrentBrowser@chrome://browser/content/tabbrowser.js:1075:31
[task 2022-08-30T23:36:35.758Z] 23:36:35     INFO - _setupEventListeners/<@chrome://browser/content/tabbrowser.js:5791:16
[task 2022-08-30T23:36:35.758Z] 23:36:35     INFO - set selectedIndex@chrome://global/content/elements/tabbox.js:204:14
[task 2022-08-30T23:36:35.758Z] 23:36:35     INFO - set selectedPanel@chrome://global/content/elements/tabbox.js:222:7
[task 2022-08-30T23:36:35.758Z] 23:36:35     INFO - set selectedIndex@chrome://global/content/elements/tabbox.js:546:11
[task 2022-08-30T23:36:35.758Z] 23:36:35     INFO - set selectedItem@chrome://global/content/elements/tabbox.js:565:35
[task 2022-08-30T23:36:35.758Z] 23:36:35     INFO - set selectedTab@chrome://global/content/elements/tabbox.js:82:11
[task 2022-08-30T23:36:35.758Z] 23:36:35     INFO - set selectedTab@chrome://browser/content/tabbrowser.js:309:7
[task 2022-08-30T23:36:35.759Z] 23:36:35     INFO - _blurTab@chrome://browser/content/tabbrowser.js:4281:31
[task 2022-08-30T23:36:35.759Z] 23:36:35     INFO - _beginRemoveTab@chrome://browser/content/tabbrowser.js:3923:14
[task 2022-08-30T23:36:35.759Z] 23:36:35     INFO - removeTab@chrome://browser/content/tabbrowser.js:3791:15
[task 2022-08-30T23:36:35.759Z] 23:36:35     INFO - Tester_waitForWindowsState@chrome://mochikit/content/browser-test.js:434:16
[task 2022-08-30T23:36:35.759Z] 23:36:35     INFO - nextTest@chrome://mochikit/content/browser-test.js:904:10
[task 2022-08-30T23:36:35.759Z] 23:36:35     INFO - 
[task 2022-08-30T23:36:35.759Z] 23:36:35     INFO - TEST-START | browser/components/urlbar/tests/browser/browser_autoFill_preserve.js
[task 2022-08-30T23:36:35.911Z] 23:36:35     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-30T23:36:35.911Z] 23:36:35     INFO - Buffered messages logged at 23:36:35
[task 2022-08-30T23:36:35.911Z] 23:36:35     INFO - Entering test bound init
[task 2022-08-30T23:36:35.911Z] 23:36:35     INFO - Leaving test bound init
[task 2022-08-30T23:36:35.911Z] 23:36:35     INFO - Entering test bound origin
[task 2022-08-30T23:36:35.912Z] 23:36:35     INFO - Awaiting for the urlbar panel to open
[task 2022-08-30T23:36:35.912Z] 23:36:35     INFO - Urlbar panel opened
[task 2022-08-30T23:36:35.912Z] 23:36:35     INFO - Urlbar panel opened
[task 2022-08-30T23:36:35.912Z] 23:36:35     INFO - Buffered messages finished
[task 2022-08-30T23:36:35.912Z] 23:36:35     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js | Uncaught exception received from previously timed out test - at chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js:997 - TypeError: can't access property "equal", Assert is null
[task 2022-08-30T23:36:35.912Z] 23:36:35     INFO - Stack trace:
[task 2022-08-30T23:36:35.912Z] 23:36:35     INFO - search@chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_autoFill_placeholder.js:997:3
[task 2022-08-30T23:36:35.913Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_preserve.js | true == true - 
[task 2022-08-30T23:36:35.913Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_preserve.js | "ExAmple.com/" == "ExAmple.com/" - 
[task 2022-08-30T23:36:35.913Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_preserve.js | 3 == 3 - 
[task 2022-08-30T23:36:35.913Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_preserve.js | 12 == 12 - 
[task 2022-08-30T23:36:35.913Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_preserve.js | 1 == 1 - 
[task 2022-08-30T23:36:35.913Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_preserve.js | "http://mozilla.org/example" == "http://mozilla.org/example" - 
[task 2022-08-30T23:36:35.913Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_preserve.js | -1 == -1 - 
[task 2022-08-30T23:36:35.914Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_preserve.js | "ExA" == "ExA" - 
[task 2022-08-30T23:36:35.914Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_preserve.js | 1 == 1 - 
[task 2022-08-30T23:36:35.914Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_preserve.js | "http://mozilla.org/example" == "http://mozilla.org/example" - 
[task 2022-08-30T23:36:35.914Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_preserve.js | 0 == 0 - 
[task 2022-08-30T23:36:35.915Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_preserve.js | "ExAmple.com/" == "ExAmple.com/" - 
[task 2022-08-30T23:36:35.916Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_preserve.js | -1 == -1 - 
[task 2022-08-30T23:36:35.917Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_preserve.js | "ExA" == "ExA" - 
[task 2022-08-30T23:36:35.917Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_preserve.js | 0 == 0 - 
[task 2022-08-30T23:36:35.918Z] 23:36:35     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_autoFill_preserve.js | "ExAmple.com/" == "ExAmple.com/" - 
[task 2022-08-30T23:36:35.926Z] 23:36:35     INFO - GECKO(4800) | JavaScript error: chrome://mochikit/content/browser-test.js, line 1091: TypeError: can't access property "shift", currentScope.__tasks is null
[task 2022-08-30T23:36:35.928Z] 23:36:35     INFO - Console message: [JavaScript Error: "TypeError: can't access property "shift", currentScope.__tasks is null" {file: "chrome://mochikit/content/browser-test.js" line: 1091}]
[task 2022-08-30T23:36:35.946Z] 23:36:35     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-30T23:36:35.946Z] 23:36:35     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_autoFill_preserve.js | A promise chain failed to handle a rejection: can't access property "shift", currentScope.__tasks is null - stack: _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1091:13
[task 2022-08-30T23:36:35.946Z] 23:36:35     INFO - Rejection date: Tue Aug 30 2022 23:36:35 GMT+0000 (Coordinated Universal Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 270
[task 2022-08-30T23:36:35.946Z] 23:36:35     INFO - Stack trace:
[task 2022-08-30T23:36:35.946Z] 23:36:35     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:270
[task 2022-08-30T23:36:35.947Z] 23:36:35     INFO - chrome://mochikit/content/browser-test.js:handleTask:1056
[task 2022-08-30T23:36:35.947Z] 23:36:35     INFO - Leaving test bound origin
[task 2022-08-30T23:36:35.948Z] 23:36:35     INFO - Entering test bound originPort
[task 2022-08-30T23:36:35.976Z] 23:36:35     INFO - Awaiting for the urlbar panel to open
[task 2022-08-30T23:36:36.002Z] 23:36:36     INFO - Urlbar panel opened
```