Bug: Intermittent browser/components/newtab/test/xpcshell/test_AboutHomeStartupCacheWorker.js | setup - [setup : 282] A promise chain failed to handle a rejection: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsINavBookmarksService.tagsFo
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2020-11-09 19:50:33+00:00
Resolved: 2022-07-25 22:52:53+00:00

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

---
```
[task 2020-11-09T18:56:32.557Z] 18:56:32     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "[Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsINavHistoryService.addObserver]"  nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)"  location: "JS frame :: resource://gre/modules/DownloadHistory.jsm :: ensureInitialized/this._initializePromise< :: line 194"  data: no]"]
[task 2020-11-09T18:56:32.557Z] 18:56:32     INFO -  ensureInitialized/this._initializePromise<@resource://gre/modules/DownloadHistory.jsm:194:27
[task 2020-11-09T18:56:32.558Z] 18:56:32     INFO -  ensureInitialized@resource://gre/modules/DownloadHistory.jsm:220:7
[task 2020-11-09T18:56:32.558Z] 18:56:32     INFO -  getList@resource://gre/modules/DownloadHistory.jsm:72:25
[task 2020-11-09T18:56:32.559Z] 18:56:32     INFO -  DownloadsDataCtor/this._promiseList<@resource:///modules/DownloadsCommon.jsm:884:30
[task 2020-11-09T18:56:32.560Z] 18:56:32     INFO -  observe@resource://gre/modules/AsyncShutdown.jsm:573:16
[task 2020-11-09T18:56:32.560Z] 18:56:32     INFO -  _execute_test@/builds/worker/workspace/build/tests/xpcshell/head.js:664:19
[task 2020-11-09T18:56:32.561Z] 18:56:32     INFO -  @-e:1:1
[task 2020-11-09T18:56:32.561Z] 18:56:32     INFO -  "
[task 2020-11-09T18:56:32.562Z] 18:56:32     INFO -  PID 3179 | [3179, Main Thread] WARNING: NS_ENSURE_TRUE(id > 0) failed: file /builds/worker/checkouts/gecko/toolkit/components/places/nsNavBookmarks.cpp:292
[task 2020-11-09T18:56:32.562Z] 18:56:32     INFO -  PID 3179 | JavaScript error: resource://gre/modules/PlacesUtils.jsm, line 1974: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsINavBookmarksService.tagsFolder]
[task 2020-11-09T18:56:32.563Z] 18:56:32     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsINavBookmarksService.tagsFolder]" {file: "resource://gre/modules/PlacesUtils.jsm" line: 1974}]"
[task 2020-11-09T18:56:32.563Z] 18:56:32  WARNING -  TEST-UNEXPECTED-FAIL | browser/components/newtab/test/xpcshell/test_AboutHomeStartupCacheWorker.js | setup - [setup : 282] A promise chain failed to handle a rejection: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsINavBookmarksService.tagsFolder] - stack: get@resource://gre/modules/PlacesUtils.jsm:1974:19
[task 2020-11-09T18:56:32.564Z] 18:56:32     INFO -  get tagsFolderId@resource://gre/modules/PlacesUtils.jsm:1300:5
[task 2020-11-09T18:56:32.564Z] 18:56:32     INFO -  _getCommonParams@resource://gre/modules/NewTabUtils.jsm:878:9
[task 2020-11-09T18:56:32.565Z] 18:56:32     INFO -  getTopFrecentSites@resource://gre/modules/NewTabUtils.jsm:1315:20
[task 2020-11-09T18:56:32.565Z] 18:56:32     INFO -  getTopSites@resource://gre/modules/NewTabUtils.jsm:1686:35
[task 2020-11-09T18:56:32.566Z] 18:56:32     INFO -  LinksCache/this.linkGetter@resource://activity-stream/lib/LinksCache.jsm:42:46
[task 2020-11-09T18:56:32.566Z] 18:56:32     INFO -  request/this.cache<@resource://activity-stream/lib/LinksCache.jsm:99:25
[task 2020-11-09T18:56:32.567Z] 18:56:32     INFO -  observe@resource://gre/modules/AsyncShutdown.jsm:573:16
[task 2020-11-09T18:56:32.567Z] 18:56:32     INFO -  _execute_test@/builds/worker/workspace/build/tests/xpcshell/head.js:664:19
[task 2020-11-09T18:56:32.568Z] 18:56:32     INFO -  @-e:1:1
[task 2020-11-09T18:56:32.568Z] 18:56:32     INFO -  Rejection date: Mon Nov 09 2020 18:56:31 GMT+0000 (Coordinated Universal Time) - false == true
[task 2020-11-09T18:56:32.569Z] 18:56:32     INFO -  resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:282
[task 2020-11-09T18:56:32.570Z] 18:56:32     INFO -  /builds/worker/workspace/build/tests/xpcshell/head.js:_execute_test:672
[task 2020-11-09T18:56:32.570Z] 18:56:32     INFO -  -e:null:1
[task 2020-11-09T18:56:32.571Z] 18:56:32     INFO -  exiting test
[task 2020-11-09T18:56:32.571Z] 18:56:32     INFO -  PID 3179 | JavaScript error: /builds/worker/workspace/build/tests/xpcshell/head.js, line 824: NS_ERROR_ABORT:
[task 2020-11-09T18:56:32.572Z] 18:56:32     INFO -  PID 3179 | [3179, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3359
[task 2020-11-09T18:56:32.572Z] 18:56:32     INFO -  PID 3179 | [3179, Main Thread] WARNING: OOPDeinit() without successful OOPInit(): file /builds/worker/checkouts/gecko/toolkit/crashreporter/nsExceptionHandler.cpp:3394
[task 2020-11-09T18:56:32.573Z] 18:56:32     INFO -  PID 3179 | [3179, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4287
[task 2020-11-09T18:56:32.573Z] 18:56:32     INFO -  PID 3179 | [3179, Main Thread] WARNING: XPCOM objects created/destroyed from static ctor/dtor: file /builds/worker/checkouts/gecko/xpcom/base/nsTraceRefcnt.cpp:202
[task 2020-11-09T18:56:32.574Z] 18:56:32     INFO -  PID 3179 | [3179, Main Thread] WARNING: XPCOM objects created/destroyed from static ctor/dtor: file /builds/worker/checkouts/gecko/xpcom/base/nsTraceRefcnt.cpp:202```