Bug: Intermittent browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2022-10-28 15:49:33+00:00
Resolved: 2022-12-20 17:03:07+00:00

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

---
```
[task 2022-10-28T14:41:35.380Z] 14:41:35     INFO -  TEST-START | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js
[task 2022-10-28T14:41:35.794Z] 14:41:35  WARNING -  TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | xpcshell return code: 0
[task 2022-10-28T14:41:35.794Z] 14:41:35     INFO -  TEST-INFO took 414ms
[task 2022-10-28T14:41:35.794Z] 14:41:35     INFO -  >>>>>>>
[task 2022-10-28T14:41:35.794Z] 14:41:35     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2022-10-28T14:41:35.794Z] 14:41:35     INFO -  (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2022-10-28T14:41:35.794Z] 14:41:35     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2022-10-28T14:41:35.794Z] 14:41:35     INFO -  running event loop
[task 2022-10-28T14:41:35.794Z] 14:41:35     INFO -  browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | Starting setup initXPCShellDependencies
[task 2022-10-28T14:41:35.794Z] 14:41:35     INFO -  (xpcshell/head.js) | test initXPCShellDependencies pending (2)
[task 2022-10-28T14:41:35.794Z] 14:41:35     INFO -  (xpcshell/head.js) | test run_next_test 0 finished (2)
[task 2022-10-28T14:41:35.794Z] 14:41:35     INFO -  (xpcshell/head.js) | test run_next_test 1 pending (2)
[task 2022-10-28T14:41:35.794Z] 14:41:35     INFO -  (xpcshell/head.js) | test initXPCShellDependencies finished (2)
[task 2022-10-28T14:41:35.795Z] 14:41:35     INFO -  browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | Starting init
[task 2022-10-28T14:41:35.795Z] 14:41:35     INFO -  (xpcshell/head.js) | test init pending (2)
[task 2022-10-28T14:41:35.795Z] 14:41:35     INFO -  (xpcshell/head.js) | test run_next_test 1 finished (2)
[task 2022-10-28T14:41:35.795Z] 14:41:35     INFO -  PID 8280 | console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at /var/folders/lv/bfkd4m2160b7r2wc_tm3kwsr000014/T/xpc-profile-p2204uvm/search.json.mozlz4", (void 0), 238))
[task 2022-10-28T14:41:35.795Z] 14:41:35     INFO -  "Extension attached"
[task 2022-10-28T14:41:35.795Z] 14:41:35     INFO -  TEST-PASS | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | init - [init : 1725] Search provider extension should be running - "running" == "running"
[task 2022-10-28T14:41:35.795Z] 14:41:35     INFO -  TEST-PASS | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | init - [init : 1730] Extension ID of search provider should be set - "testautofillaliases@tests.mozilla.org" == true
[task 2022-10-28T14:41:35.795Z] 14:41:35     INFO -  (xpcshell/head.js) | test run_next_test 2 pending (2)
[task 2022-10-28T14:41:35.795Z] 14:41:35     INFO -  (xpcshell/head.js) | test init finished (2)
[task 2022-10-28T14:41:35.795Z] 14:41:35     INFO -  browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | Starting basic
[task 2022-10-28T14:41:35.795Z] 14:41:35     INFO -  (xpcshell/head.js) | test basic pending (2)
[task 2022-10-28T14:41:35.795Z] 14:41:35     INFO -  (xpcshell/head.js) | test run_next_test 2 finished (2)
[task 2022-10-28T14:41:35.795Z] 14:41:35     INFO -  "Creating new queryContext with searchString: @autofi"
[task 2022-10-28T14:41:35.796Z] 14:41:35     INFO -  TEST-PASS | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | basic - [basic : 1] There is a first result. - {"type":2,"source":3,"rowIndex":-1,"heuristic":false,"payload":{"engine":"test autofill aliases","keyword":"@autofilltest","query":"","icon":"undefined","providesSearchMode":true},"payloadHighlights":{"engine":[],"keyword":[[0,7]],"query":[],"icon":[],"providesSearchMode":[]},"suggestedIndex":0,"autofill":{"value":"@autofilltest ","selectionStart":7,"selectionEnd":14},"providerName":"TokenAliasEngines","providerType":1} == true
[task 2022-10-28T14:41:35.796Z] 14:41:35     INFO -  TEST-PASS | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | basic - [basic : 1] The first result is an autofill result - {"value":"@autofilltest ","selectionStart":7,"selectionEnd":14} == true
[task 2022-10-28T14:41:35.796Z] 14:41:35     INFO -  TEST-PASS | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | basic - [basic : 1] The correct value was autofilled. - "@autofilltest " == "@autofilltest "
[task 2022-10-28T14:41:35.796Z] 14:41:35     INFO -  TEST-PASS | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | basic - [basic : 1] The hasTitle flag is correct. - "undefined" == "undefined"
[task 2022-10-28T14:41:35.796Z] 14:41:35     INFO -  TEST-PASS | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | basic - [basic : 1] Found the expected number of results. - 1 == 1
[task 2022-10-28T14:41:35.796Z] 14:41:35     INFO -  "Comparing results at index 0: actual={"type":2,"source":3,"rowIndex":-1,"heuristic":false,"payload":{"engine":"test autofill aliases","keyword":"@autofilltest","query":"","providesSearchMode":true},"payloadHighlights":{"engine":[],"keyword":[[0,7]],"query":[],"icon":[],"providesSearchMode":[]},"suggestedIndex":0,"autofill":{"value":"@autofilltest ","selectionStart":7,"selectionEnd":14},"providerName":"TokenAliasEngines","providerType":1} expected={"type":2,"source":3,"rowIndex":-1,"heuristic":false,"payload":{"engine":"test autofill aliases","keyword":"@autofilltest","query":"","providesSearchMode":true},"payloadHighlights":{"engine":[],"suggestion":[],"tail":[],"keyword":[[0,7]],"query":[],"tailPrefix":[],"tailOffsetIndex":[],"icon":[],"providesSearchMode":[],"inPrivateWindow":[],"isPrivateEngine":[]}}"
[task 2022-10-28T14:41:35.796Z] 14:41:35     INFO -  TEST-PASS | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | basic - [basic : 1] result.type at result index 0 - 2 == 2
[task 2022-10-28T14:41:35.796Z] 14:41:35     INFO -  TEST-PASS | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | basic - [basic : 1] result.source at result index 0 - 3 == 3
[task 2022-10-28T14:41:35.797Z] 14:41:35     INFO -  TEST-PASS | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | basic - [basic : 1] result.heuristic at result index 0 - false == false
[task 2022-10-28T14:41:35.797Z] 14:41:35     INFO -  TEST-PASS | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | basic - [basic : 1] result.isBestMatch at result index 0 - "undefined" == "undefined"
[task 2022-10-28T14:41:35.797Z] 14:41:35     INFO -  TEST-PASS | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | basic - [basic : 1] result.payload at result index 0 - {"engine":"test autofill aliases","keyword":"@autofilltest","query":"","providesSearchMode":true} deepEqual {"engine":"test autofill aliases","keyword":"@autofilltest","query":"","providesSearchMode":true}
[task 2022-10-28T14:41:35.797Z] 14:41:35     INFO -  (xpcshell/head.js) | test run_next_test 3 pending (2)
[task 2022-10-28T14:41:35.797Z] 14:41:35     INFO -  (xpcshell/head.js) | test basic finished (2)
[task 2022-10-28T14:41:35.797Z] 14:41:35     INFO -  browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | Starting preserveCase
[task 2022-10-28T14:41:35.797Z] 14:41:35     INFO -  (xpcshell/head.js) | test preserveCase pending (2)
[task 2022-10-28T14:41:35.797Z] 14:41:35     INFO -  (xpcshell/head.js) | test run_next_test 3 finished (2)
[task 2022-10-28T14:41:35.797Z] 14:41:35     INFO -  "Creating new queryContext with searchString: @AUTOFI"
[task 2022-10-28T14:41:35.797Z] 14:41:35     INFO -  TEST-PASS | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | preserveCase - [preserveCase : 1] There is a first result. - {"type":2,"source":3,"rowIndex":-1,"heuristic":false,"payload":{"engine":"test autofill aliases","keyword":"@AUTOFIlltest","query":"","icon":"undefined","providesSearchMode":true},"payloadHighlights":{"engine":[],"keyword":[[0,7]],"query":[],"icon":[],"providesSearchMode":[]},"suggestedIndex":0,"autofill":{"value":"@AUTOFIlltest ","selectionStart":7,"selectionEnd":14},"providerName":"TokenAliasEngines","providerType":1} == true
[task 2022-10-28T14:41:35.797Z] 14:41:35     INFO -  TEST-PASS | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | preserveCase - [preserveCase : 1] The first result is an autofill result - {"value":"@AUTOFIlltest ","selectionStart":7,"selectionEnd":14} == true
[task 2022-10-28T14:41:35.798Z] 14:41:35     INFO -  TEST-PASS | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | preserveCase - [preserveCase : 1] The correct value was autofilled. - "@AUTOFIlltest " == "@AUTOFIlltest "
[task 2022-10-28T14:41:35.798Z] 14:41:35     INFO -  TEST-PASS | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | preserveCase - [preserveCase : 1] The hasTitle flag is correct. - "undefined" == "undefined"
[task 2022-10-28T14:41:35.798Z] 14:41:35     INFO -  TEST-PASS | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | preserveCase - [preserveCase : 1] Found the expected number of results. - 1 == 1
[task 2022-10-28T14:41:35.798Z] 14:41:35     INFO -  "Comparing results at index 0: actual={"type":2,"source":3,"rowIndex":-1,"heuristic":false,"payload":{"engine":"test autofill aliases","keyword":"@AUTOFIlltest","query":"","providesSearchMode":true},"payloadHighlights":{"engine":[],"keyword":[[0,7]],"query":[],"icon":[],"providesSearchMode":[]},"suggestedIndex":0,"autofill":{"value":"@AUTOFIlltest ","selectionStart":7,"selectionEnd":14},"providerName":"TokenAliasEngines","providerType":1} expected={"type":2,"source":3,"rowIndex":-1,"heuristic":false,"payload":{"engine":"test autofill aliases","keyword":"@AUTOFIlltest","query":"","providesSearchMode":true},"payloadHighlights":{"engine":[],"suggestion":[],"tail":[],"keyword":[[0,7]],"query":[],"tailPrefix":[],"tailOffsetIndex":[],"icon":[],"providesSearchMode":[],"inPrivateWindow":[],"isPrivateEngine":[]}}"
[task 2022-10-28T14:41:35.798Z] 14:41:35     INFO -  TEST-PASS | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | preserveCase - [preserveCase : 1] result.type at result index 0 - 2 == 2
[task 2022-10-28T14:41:35.798Z] 14:41:35     INFO -  TEST-PASS | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | preserveCase - [preserveCase : 1] result.source at result index 0 - 3 == 3
[task 2022-10-28T14:41:35.798Z] 14:41:35     INFO -  TEST-PASS | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | preserveCase - [preserveCase : 1] result.heuristic at result index 0 - false == false
[task 2022-10-28T14:41:35.799Z] 14:41:35     INFO -  TEST-PASS | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | preserveCase - [preserveCase : 1] result.isBestMatch at result index 0 - "undefined" == "undefined"
[task 2022-10-28T14:41:35.799Z] 14:41:35     INFO -  TEST-PASS | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | preserveCase - [preserveCase : 1] result.payload at result index 0 - {"engine":"test autofill aliases","keyword":"@AUTOFIlltest","query":"","providesSearchMode":true} deepEqual {"engine":"test autofill aliases","keyword":"@AUTOFIlltest","query":"","providesSearchMode":true}
[task 2022-10-28T14:41:35.799Z] 14:41:35     INFO -  (xpcshell/head.js) | test run_next_test 4 pending (2)
[task 2022-10-28T14:41:35.799Z] 14:41:35     INFO -  (xpcshell/head.js) | test preserveCase finished (2)
[task 2022-10-28T14:41:35.799Z] 14:41:35     INFO -  (xpcshell/head.js) | test run_next_test 4 finished (1)
[task 2022-10-28T14:41:35.799Z] 14:41:35     INFO -  exiting test
[task 2022-10-28T14:41:35.799Z] 14:41:35     INFO -  "Force a GC"
[task 2022-10-28T14:41:35.799Z] 14:41:35     INFO -  PID 8280 | JavaScript error: resource:///modules/QuickActionsLoaderDefault.sys.mjs, line 285: TypeError: (destructured parameter) is null
[task 2022-10-28T14:41:35.799Z] 14:41:35     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "TypeError: (destructured parameter) is null" {file: "resource:///modules/QuickActionsLoaderDefault.sys.mjs" line: 285}]"
[task 2022-10-28T14:41:35.799Z] 14:41:35  WARNING -  TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/unit/test_autofill_search_engine_aliases.js | preserveCase - [preserveCase : 270] A promise chain failed to handle a rejection: (destructured parameter) is null - stack: load/actionData.commands<@resource:///modules/QuickActionsLoaderDefault.sys.mjs:285:14
[task 2022-10-28T14:41:35.799Z] 14:41:35     INFO -  load@resource:///modules/QuickActionsLoaderDefault.sys.mjs:285:10
[task 2022-10-28T14:41:35.799Z] 14:41:35     INFO -  observe@resource://gre/modules/AsyncShutdown.jsm:574:16
[task 2022-10-28T14:41:35.799Z] 14:41:35     INFO -  _execute_test@/opt/worker/tasks/task_1666967242/build/tests/xpcshell/head.js:709:23
[task 2022-10-28T14:41:35.799Z] 14:41:35     INFO -  @-e:1:1
[task 2022-10-28T14:41:35.800Z] 14:41:35     INFO -  Rejection date: Fri Oct 28 2022 14:41:35 GMT+0000 (Greenwich Mean Time) - false == true
[task 2022-10-28T14:41:35.800Z] 14:41:35     INFO -  resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:270
[task 2022-10-28T14:41:35.800Z] 14:41:35     INFO -  /opt/worker/tasks/task_1666967242/build/tests/xpcshell/head.js:_execute_test:721
[task 2022-10-28T14:41:35.800Z] 14:41:35     INFO -  -e:null:1
[task 2022-10-28T14:41:35.800Z] 14:41:35     INFO -  exiting test
[task 2022-10-28T14:41:35.800Z] 14:41:35     INFO -  PID 8280 | JavaScript error: /opt/worker/tasks/task_1666967242/build/tests/xpcshell/head.js, line 873: NS_ERROR_ABORT:
[task 2022-10-28T14:41:35.800Z] 14:41:35     INFO -  <<<<<<<
[task 2022-10-28T14:41:35.804Z] 14:41:35     INFO -  TEST-START | xpcshell-remote.ini:toolkit/components/extensions/test/xpcshell/test_ext_extension_page_navigated.js
```