Bug: Intermittent browser/components/preferences/tests/browser_moreFromMozilla_locales.js | uncaught exception - Error: invalid engine? at removeEngine@chrome://browser/content/preferences/search.js:669:13
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2022-02-24 01:34:06+00:00
Resolved: 2023-02-17 22:02:40+00:00

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

---
```
[task 2022-02-24T01:26:31.112Z] 01:26:31     INFO - TEST-PASS | browser/components/preferences/tests/browser_moreFromMozilla_locales.js | Email link should be visible - 
[task 2022-02-24T01:26:31.113Z] 01:26:31     INFO - Buffered messages finished
[task 2022-02-24T01:26:31.115Z] 01:26:31     INFO - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_moreFromMozilla_locales.js | uncaught exception - Error: invalid engine? at removeEngine@chrome://browser/content/preferences/search.js:669:13
[task 2022-02-24T01:26:31.115Z] 01:26:31     INFO - remove@chrome://browser/content/preferences/search.js:463:42
[task 2022-02-24T01:26:31.115Z] 01:26:31     INFO - observe@chrome://browser/content/preferences/search.js:359:23
[task 2022-02-24T01:26:31.115Z] 01:26:31     INFO - notifyAction@resource://gre/modules/SearchUtils.jsm:223:20
[task 2022-02-24T01:26:31.115Z] 01:26:31     INFO - _reloadEngines@resource://gre/modules/SearchService.jsm:902:19
[task 2022-02-24T01:26:31.115Z] 01:26:31     INFO - 
[task 2022-02-24T01:26:31.115Z] 01:26:31     INFO - Stack trace:
[task 2022-02-24T01:26:31.115Z] 01:26:31     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:simpletestOnerror:1957
[task 2022-02-24T01:26:31.115Z] 01:26:31     INFO - resource://gre/modules/SearchUtils.jsm:notifyAction:223
[task 2022-02-24T01:26:31.115Z] 01:26:31     INFO - resource://gre/modules/SearchService.jsm:_reloadEngines:902
[task 2022-02-24T01:26:31.116Z] 01:26:31     INFO - GECKO(3480) | JavaScript error: chrome://browser/content/preferences/search.js, line 669: Error: invalid engine?
[task 2022-02-24T01:26:31.117Z] 01:26:31     INFO - Console message: [JavaScript Warning: "Missing resource in locale ko-KR: branding/brand.ftl"]
[task 2022-02-24T01:26:31.118Z] 01:26:31     INFO - Console message: [JavaScript Error: "Error: invalid engine?" {file: "chrome://browser/content/preferences/search.js" line: 669}]
[task 2022-02-24T01:26:31.118Z] 01:26:31     INFO - removeEngine@chrome://browser/content/preferences/search.js:669:13
[task 2022-02-24T01:26:31.118Z] 01:26:31     INFO - remove@chrome://browser/content/preferences/search.js:463:42
[task 2022-02-24T01:26:31.118Z] 01:26:31     INFO - observe@chrome://browser/content/preferences/search.js:359:23
[task 2022-02-24T01:26:31.118Z] 01:26:31     INFO - notifyAction@resource://gre/modules/SearchUtils.jsm:223:20
[task 2022-02-24T01:26:31.118Z] 01:26:31     INFO - _reloadEngines@resource://gre/modules/SearchService.jsm:902:19
[task 2022-02-24T01:26:31.118Z] 01:26:31     INFO - 
[task 2022-02-24T01:26:31.119Z] 01:26:31     INFO - Console message: [JavaScript Warning: "Missing resource in locale pt-BR: branding/brand.ftl"]
[task 2022-02-24T01:26:31.120Z] 01:26:31     INFO - Leaving test bound test_send_to_device_email_link_for_supported_locale
[task 2022-02-24T01:26:31.120Z] 01:26:31     INFO - Entering test bound test_send_to_device_email_link_for_unsupported_locale
[task 2022-02-24T01:26:31.121Z] 01:26:31     INFO - Console message: [JavaScript Warning: "Missing resource in locale af: browser/search.ftl"]
[task 2022-02-24T01:26:31.121Z] 01:26:31     INFO - Console message: [JavaScript Warning: "Missing resource in locale af: branding/brand.ftl"]
[task 2022-02-24T01:26:31.362Z] 01:26:31     INFO - Console message: [JavaScript Warning: "Missing resource in locale af: branding/brand.ftl"]
[task 2022-02-24T01:26:31.519Z] 01:26:31     INFO - TEST-PASS | browser/components/preferences/tests/browser_moreFromMozilla_locales.js | Email link should be hidden - 
```