Bug: Intermittent toolkit/components/search/tests/xpcshell/test_notifications.js | xpcshell return code: 0
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-03-19 16:56:00+00:00
Resolved: 2022-01-04 17:01:46+00:00

**Filed by:** nerli [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=333783487&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/JVufjEVyRgCinslhvZL45Q/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/JVufjEVyRgCinslhvZL45Q/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
task 2021-03-19T14:56:21.579Z] 14:56:21     INFO -  TEST-START | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_notifications.js
[task 2021-03-19T14:56:32.742Z] 14:56:32  WARNING -  TEST-UNEXPECTED-FAIL | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_notifications.js | xpcshell return code: 0
[task 2021-03-19T14:56:32.742Z] 14:56:32     INFO -  TEST-INFO took 11171ms
[task 2021-03-19T14:56:32.742Z] 14:56:32     INFO -  >>>>>>>
[task 2021-03-19T14:56:32.743Z] 14:56:32     INFO -  PID 2367 | *** You are running in chaos test mode. See ChaosMode.h. ***
[task 2021-03-19T14:56:32.743Z] 14:56:32     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2021-03-19T14:56:32.743Z] 14:56:32     INFO -  (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2021-03-19T14:56:32.743Z] 14:56:32     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2021-03-19T14:56:32.743Z] 14:56:32     INFO -  running event loop
[task 2021-03-19T14:56:32.743Z] 14:56:32     INFO -  xpcshell.ini:toolkit/components/search/tests/xpcshell/test_notifications.js | Starting setup
[task 2021-03-19T14:56:32.744Z] 14:56:32     INFO -  (xpcshell/head.js) | test setup pending (2)
[task 2021-03-19T14:56:32.744Z] 14:56:32     INFO -  (xpcshell/head.js) | test run_next_test 0 finished (2)
[task 2021-03-19T14:56:32.744Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "init"
[task 2021-03-19T14:56:32.744Z] 14:56:32     INFO -  PID 2367 | console.info: Region.jsm: "_getRegion called"
[task 2021-03-19T14:56:32.744Z] 14:56:32     INFO -  PID 2367 | console.info: Region.jsm: "_getRegion url is: " ""
[task 2021-03-19T14:56:32.744Z] 14:56:32     INFO -  PID 2367 | console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
[task 2021-03-19T14:56:32.744Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "_loadEngines: start"
[task 2021-03-19T14:56:32.745Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchEngineSelector: "fetchEngineConfiguration en-US:default:default::false:xpcshell:42"
[task 2021-03-19T14:56:32.745Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchEngineSelector: "fetchEngineConfiguration: google@search.mozilla.org,amazondotcom@search.mozilla.org,wikipedia@search.mozilla.org,bing@search.mozilla.org,ddg@search.mozilla.org"
[task 2021-03-19T14:56:32.745Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "_loadEnginesFromConfig"
[task 2021-03-19T14:56:32.745Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "makeEngineFromConfig:" ({params:{searchUrlGetParams:[{name:"client", value:"firefox-b-d"}, {name:"q", value:"{searchTerms}"}]}, schema:1605047692074, extraParams:[{name:"channel", pref:"google_channel_row", condition:"pref"}], telemetryId:"google-b-d", webExtension:{id:"google@search.mozilla.org", locale:"default"}, id:"cb8e7210-9f0b-48fa-8708-b9a03df79eea", last_modified:1605203142486, default:"yes-if-no-other"})
[task 2021-03-19T14:56:32.745Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "_handleIgnoreListUpdated"
[task 2021-03-19T14:56:32.745Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "addEnginesFromExtension: google@search.mozilla.org"
[task 2021-03-19T14:56:32.745Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "addEnginesFromExtension: Ignoring builtIn engine."
[task 2021-03-19T14:56:32.746Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchEngine: "_setIcon: Setting icon url for" "Google" "to" "moz-extension://82ba3bf7-ffeb-f441-a6ea-0b38c03b551d/favicon.ico"
[task 2021-03-19T14:56:32.746Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "makeEngineFromConfig:" ({schema:1599421304249, telemetryId:"amazondotcom", webExtension:{id:"amazondotcom@search.mozilla.org", locale:"default"}, id:"071c671c-7c1b-469d-a771-ab16ff6e8beb", last_modified:1599574471320})
[task 2021-03-19T14:56:32.746Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "addEnginesFromExtension: amazondotcom@search.mozilla.org"
[task 2021-03-19T14:56:32.746Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "addEnginesFromExtension: Ignoring builtIn engine."
[task 2021-03-19T14:56:32.746Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchEngine: "_setIcon: Setting icon url for" "Amazon.com" "to" "moz-extension://87d813d6-5080-5f45-8fb7-3225370a120a/favicon.ico"
[task 2021-03-19T14:56:32.747Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "makeEngineFromConfig:" ({schema:1613245306902, webExtension:{id:"wikipedia@search.mozilla.org", locale:"default"}, id:"3f3beb1d-e32e-40a4-b6ed-56741803e1d8", last_modified:1613587855064})
[task 2021-03-19T14:56:32.747Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "addEnginesFromExtension: wikipedia@search.mozilla.org"
[task 2021-03-19T14:56:32.747Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "addEnginesFromExtension: Ignoring builtIn engine."
[task 2021-03-19T14:56:32.747Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchEngine: "_setIcon: Setting icon url for" "Wikipedia (en)" "to" "moz-extension://e0662995-e5e7-4943-b5dd-f837e9be17f2/favicon.ico"
[task 2021-03-19T14:56:32.747Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "makeEngineFromConfig:" ({params:{searchUrlGetParams:[{name:"pc", value:"MOZI"}, {name:"q", value:"{searchTerms}"}]}, schema:1592948527171, extraParams:[{name:"form", value:"MOZCON", purpose:"contextmenu", condition:"purpose"}, {name:"form", value:"MOZSBR", purpose:"searchbar", condition:"purpose"}, {name:"form", value:"MOZSPG", purpose:"homepage", condition:"purpose"}, {name:"form", value:"MOZLBR", purpose:"keyword", condition:"purpose"}, {name:"form", value:"MOZTSB", purpose:"newtab", condition:"purpose"}], webExtension:{id:"bing@search.mozilla.org", locale:"default"}, id:"7ec766f6-639a-4618-91bc-33eb3d4378c6", last_modified:1593025575021})
[task 2021-03-19T14:56:32.748Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "addEnginesFromExtension: bing@search.mozilla.org"
[task 2021-03-19T14:56:32.748Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "addEnginesFromExtension: Ignoring builtIn engine."
[task 2021-03-19T14:56:32.748Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchEngine: "_setIcon: Setting icon url for" "Bing" "to" "moz-extension://7dd88eea-3f09-6840-8af3-99500a6ca590/favicon.ico"
[task 2021-03-19T14:56:32.748Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "makeEngineFromConfig:" ({schema:1594312388385, extraParams:[{name:"t", value:"ffcm", purpose:"contextmenu", condition:"purpose"}, {name:"t", value:"ffab", purpose:"keyword", condition:"purpose"}, {name:"t", value:"ffsb", purpose:"searchbar", condition:"purpose"}, {name:"t", value:"ffhp", purpose:"homepage", condition:"purpose"}, {name:"t", value:"ffnt", purpose:"newtab", condition:"purpose"}], telemetryId:"ddg", webExtension:{id:"ddg@search.mozilla.org", locale:"default"}, id:"c0b26c0e-63e6-4235-b2ce-5f16b6a8bf87", last_modified:1595254832054})
[task 2021-03-19T14:56:32.748Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "addEnginesFromExtension: ddg@search.mozilla.org"
[task 2021-03-19T14:56:32.748Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "addEnginesFromExtension: Ignoring builtIn engine."
[task 2021-03-19T14:56:32.749Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchEngine: "_setIcon: Setting icon url for" "DuckDuckGo" "to" "moz-extension://3d84dd0f-1c6c-7349-8ae1-5f7873d65c45/favicon.ico"
[task 2021-03-19T14:56:32.749Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "_addEngineToStore: Adding engine:" "Google"
[task 2021-03-19T14:56:32.749Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "_addEngineToStore: Adding engine:" "Amazon.com"
[task 2021-03-19T14:56:32.749Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "_addEngineToStore: Adding engine:" "Wikipedia (en)"
[task 2021-03-19T14:56:32.749Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "_addEngineToStore: Adding engine:" "Bing"
[task 2021-03-19T14:56:32.749Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "_addEngineToStore: Adding engine:" "DuckDuckGo"
[task 2021-03-19T14:56:32.749Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "_loadEngines: loading" 0 "engines reported by AddonManager startup"
[task 2021-03-19T14:56:32.750Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "_loadEngines: done"
[task 2021-03-19T14:56:32.750Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "_init: engines loaded, writing settings"
[task 2021-03-19T14:56:32.750Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "Completed _init"
[task 2021-03-19T14:56:32.750Z] 14:56:32     INFO -  (xpcshell/head.js) | test run_next_test 1 pending (2)
[task 2021-03-19T14:56:32.750Z] 14:56:32     INFO -  (xpcshell/head.js) | test setup finished (2)
[task 2021-03-19T14:56:32.750Z] 14:56:32     INFO -  xpcshell.ini:toolkit/components/search/tests/xpcshell/test_notifications.js | Starting test_addingEngine_opensearch
[task 2021-03-19T14:56:32.750Z] 14:56:32     INFO -  (xpcshell/head.js) | test test_addingEngine_opensearch pending (2)
[task 2021-03-19T14:56:32.750Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "addEngine: Adding" "http://localhost:50064/data/engine.xml"
[task 2021-03-19T14:56:32.751Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchService: "init"
[task 2021-03-19T14:56:32.751Z] 14:56:32     INFO -  (xpcshell/head.js) | test run_next_test 1 finished (2)
[task 2021-03-19T14:56:32.751Z] 14:56:32     INFO -  PID 2367 | console.debug: OpenSearchEngine: "_install: Downloading engine from:" "http://localhost:50064/data/engine.xml"
[task 2021-03-19T14:56:32.751Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchUtils: "loadListener: Starting request:" "http://localhost:50064/data/engine.xml"
[task 2021-03-19T14:56:32.751Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchUtils: "loadListener: Stopping request:" "http://localhost:50064/data/engine.xml"
[task 2021-03-19T14:56:32.751Z] 14:56:32     INFO -  PID 2367 | console.debug: OpenSearchEngine: "Initing search plugin from" "http://localhost:50064/data/engine.xml"
[task 2021-03-19T14:56:32.752Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchEngine: "_setIcon: Setting icon url for" "Test search engine" "to" "data:image/png;base64,AAABAAEAEBAAAAEAGABoAwAAFgAAACgAAAAQAAAAIAAAAAEAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADs9Pt8xetPtu9FsfFNtu%2BTzvb2%2B%..."
[task 2021-03-19T14:56:32.752Z] 14:56:32     INFO -  PID 2367 | console.debug: SearchUtils: "NOTIFY: Engine:" "Test search engine" "Verb:" "engine-loaded"
[task 2021-03-19T14:56:32.752Z] 14:56:32     INFO -  TEST-PASS | xpcshell.ini:toolkit/components/search/tests/xpcshell/test_notifications.js | test_addingEngine_opensearch - [test_addingEngine_opensearch : 206] Should be expecting a notification - 2 > 0```