Bug: Intermittent services/sync/tests/unit/test_prefs_store.js | test_dangerously_allow - [test_dangerously_allow : 265] A promise chain failed to handle a rejection: The ExtensionSettingsStore was accessed before the initialize promise resolved. - stack
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2020-03-01 02:48:43+00:00
Resolved: 2020-04-06 06:48:43+00:00

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

---

```
[task 2020-02-29T18:31:45.227Z] 18:31:45  WARNING -  TEST-UNEXPECTED-FAIL | services/sync/tests/unit/test_prefs_store.js | test_dangerously_allow - [test_dangerously_allow : 265] A promise chain failed to handle a rejection: The ExtensionSettingsStore was accessed before the initialize promise resolved. - stack: ensureType@resource://gre/modules/ExtensionSettingsStore.jsm:123:11
[task 2020-02-29T18:31:45.227Z] 18:31:45     INFO -  getAllForExtension@resource://gre/modules/ExtensionSettingsStore.jsm:511:15
[task 2020-02-29T18:31:45.227Z] 18:31:45     INFO -  disableAll@resource://gre/modules/ExtensionPreferencesManager.jsm:371:43
[task 2020-02-29T18:31:45.227Z] 18:31:45     INFO -  async*@resource://gre/modules/ExtensionPreferencesManager.jsm:72:38
[task 2020-02-29T18:31:45.227Z] 18:31:45     INFO -  async*emit@resource://gre/modules/ExtensionCommon.jsm:327:32
[task 2020-02-29T18:31:45.227Z] 18:31:45     INFO -  _callHandlers/<@resource://gre/modules/ExtensionParent.jsm:241:43
[task 2020-02-29T18:31:45.227Z] 18:31:45     INFO -  _callHandlers@resource://gre/modules/ExtensionParent.jsm:241:28
[task 2020-02-29T18:31:45.227Z] 18:31:45     INFO -  shutdownExtension@resource://gre/modules/ExtensionParent.jsm:951:18
[task 2020-02-29T18:31:45.228Z] 18:31:45     INFO -  shutdown@resource://gre/modules/Extension.jsm:2461:22
[task 2020-02-29T18:31:45.228Z] 18:31:45     INFO -  shutdown@resource://gre/modules/Extension.jsm:1561:39
[task 2020-02-29T18:31:45.228Z] 18:31:45     INFO -  callBootstrapMethod@resource://gre/modules/addons/XPIProvider.jsm:1797:33
[task 2020-02-29T18:31:45.228Z] 18:31:45     INFO -  _shutdown@resource://gre/modules/addons/XPIProvider.jsm:1926:17
[task 2020-02-29T18:31:45.228Z] 18:31:45     INFO -  async*shutdown@resource://gre/modules/addons/XPIProvider.jsm:1919:33
[task 2020-02-29T18:31:45.228Z] 18:31:45     INFO -  disable@resource://gre/modules/addons/XPIProvider.jsm:1940:18
[task 2020-02-29T18:31:45.228Z] 18:31:45     INFO -  updateAddonDisabledState@resource://gre/modules/addons/XPIDatabase.jsm:2585:25
[task 2020-02-29T18:31:45.229Z] 18:31:45     INFO -  addonChanged@resource://gre/modules/addons/XPIDatabase.jsm:1935:16
[task 2020-02-29T18:31:45.229Z] 18:31:45     INFO -  XPIProvider[meth]@resource://gre/modules/addons/XPIProvider.jsm:3128:29
[task 2020-02-29T18:31:45.229Z] 18:31:45     INFO -  callProvider@resource://gre/modules/AddonManager.jsm:215:31
[task 2020-02-29T18:31:45.229Z] 18:31:45     INFO -  notifyAddonChanged@resource://gre/modules/AddonManager.jsm:1686:32
[task 2020-02-29T18:31:45.229Z] 18:31:45     INFO -  notifyAddonChanged@resource://gre/modules/AddonManager.jsm:3537:26
[task 2020-02-29T18:31:45.230Z] 18:31:45     INFO -  updateAddonDisabledState@resource://gre/modules/addons/XPIDatabase.jsm:2596:29
[task 2020-02-29T18:31:45.230Z] 18:31:45     INFO -  async*setUserDisabled@resource://gre/modules/addons/XPIDatabase.jsm:623:25
[task 2020-02-29T18:31:45.231Z] 18:31:45     INFO -  enable@resource://gre/modules/addons/XPIDatabase.jsm:1144:27
[task 2020-02-29T18:31:45.231Z] 18:31:45     INFO -  _maybeEnableBuiltinTheme@resource://services-sync/engines/prefs.js:306:19
[task 2020-02-29T18:31:45.232Z] 18:31:45     INFO -  async*_setAllPrefs@resource://services-sync/engines/prefs.js:288:12
[task 2020-02-29T18:31:45.232Z] 18:31:45     INFO -  update@resource://services-sync/engines/prefs.js:356:10
[task 2020-02-29T18:31:45.232Z] 18:31:45     INFO -  run_test@/builds/worker/workspace/build/tests/xpcshell/tests/services/sync/tests/unit/test_prefs_store.js:184:17
[task 2020-02-29T18:31:45.233Z] 18:31:45     INFO -  async*run_next_test/_run_next_test/<@/builds/worker/workspace/build/tests/xpcshell/head.js:1567:22
[task 2020-02-29T18:31:45.233Z] 18:31:45     INFO -  _run_next_test@/builds/worker/workspace/build/tests/xpcshell/head.js:1567:38
[task 2020-02-29T18:31:45.233Z] 18:31:45     INFO -  run@/builds/worker/workspace/build/tests/xpcshell/head.js:735:9
[task 2020-02-29T18:31:45.234Z] 18:31:45     INFO -  _do_main@/builds/worker/workspace/build/tests/xpcshell/head.js:246:6
[task 2020-02-29T18:31:45.234Z] 18:31:45     INFO -  _execute_test@/builds/worker/workspace/build/tests/xpcshell/head.js:573:5
```