Bug: Intermittent browser/components/preferences/tests/siteData/browser_clearSiteData.js | A promise chain failed to handle a rejection: waitForCondition timer - The total usage should be removed - still pending at the end of the test - stack: (No stack avail
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-05-07 03:35:51+00:00
Resolved: 2022-06-07 17:02:30+00:00

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

---
```
INFO - TEST-START | browser/components/preferences/tests/siteData/browser_clearSiteData.js
[task 2021-05-07T02:58:31.317Z] 02:58:31     INFO - TEST-INFO | started process screencapture
[task 2021-05-07T02:58:31.464Z] 02:58:31     INFO - TEST-INFO | screencapture: exit 0
[task 2021-05-07T02:58:31.465Z] 02:58:31     INFO - Buffered messages logged at 02:58:23
[task 2021-05-07T02:58:31.466Z] 02:58:31     INFO - Entering test bound 
[task 2021-05-07T02:58:31.467Z] 02:58:31     INFO - Console message: QM_TRY failure (WARNING): 'Unavailable' at dom/cache/FileUtils.cpp:711 failed with result 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)
[task 2021-05-07T02:58:31.468Z] 02:58:31     INFO - Console message: QM_TRY failure (WARNING): 'Unavailable' at dom/cache/FileUtils.cpp:711 failed with result 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)
[task 2021-05-07T02:58:31.468Z] 02:58:31     INFO - Buffered messages logged at 02:58:24
[task 2021-05-07T02:58:31.471Z] 02:58:31     INFO - TEST-PASS | browser/components/preferences/tests/siteData/browser_clearSiteData.js | Found the service worker registered for https://example.org/browser/browser/components/preferences/tests/siteData//service_worker_test.html - 
[task 2021-05-07T02:58:31.474Z] 02:58:31     INFO - Console message: [JavaScript Error: "[Exception... "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsIXPCComponents_Utils.readUTF8URI]"  nsresult: "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)"  location: "JS frame :: resource://gre/modules/L10nRegistry.jsm :: L10nRegistry.loadSync :: line 692"  data: no]"]
[task 2021-05-07T02:58:31.474Z] 02:58:31     INFO - L10nRegistry.loadSync@resource://gre/modules/L10nRegistry.jsm:692:19
[task 2021-05-07T02:58:31.474Z] 02:58:31     INFO - fetchFile@resource://gre/modules/L10nRegistry.jsm:607:31
[task 2021-05-07T02:58:31.474Z] 02:58:31     INFO - generateResourceSetSync/<@resource://gre/modules/L10nRegistry.jsm:512:19
[task 2021-05-07T02:58:31.474Z] 02:58:31     INFO - generateResourceSetSync@resource://gre/modules/L10nRegistry.jsm:507:22
[task 2021-05-07T02:58:31.474Z] 02:58:31     INFO - generateResourceSetsForLocaleSync@resource://gre/modules/L10nRegistry.jsm:449:44
[task 2021-05-07T02:58:31.474Z] 02:58:31     INFO - generateBundlesSync@resource://gre/modules/L10nRegistry.jsm:186:7
[task 2021-05-07T02:58:31.474Z] 02:58:31     INFO - touchNext@resource://gre/modules/Localization.jsm:167:37
[task 2021-05-07T02:58:31.475Z] 02:58:31     INFO - generateBundles@resource://gre/modules/Localization.jsm:473:15
[task 2021-05-07T02:58:31.475Z] 02:58:31     INFO - getLanguageDisplayNames@resource://gre/modules/mozIntl.jsm:787:19
[task 2021-05-07T02:58:31.476Z] 02:58:31     INFO - getLocaleDisplayNames/<@resource://gre/modules/mozIntl.jsm:865:14
[task 2021-05-07T02:58:31.476Z] 02:58:31     INFO - getLocaleDisplayNames@resource://gre/modules/mozIntl.jsm:844:24
[task 2021-05-07T02:58:31.476Z] 02:58:31     INFO - displayUseSystemLocale@chrome://browser/content/preferences/main.js:1402:43
[task 2021-05-07T02:58:31.476Z] 02:58:31     INFO - init@chrome://browser/content/preferences/main.js:370:10
[task 2021-05-07T02:58:31.476Z] 02:58:31     INFO - init@chrome://browser/content/preferences/preferences.js:105:22
[task 2021-05-07T02:58:31.476Z] 02:58:31     INFO - 
<...>
INFO - TEST-PASS | browser/components/preferences/tests/siteData/browser_clearSiteData.js | Cleared all service workers - 
[task 2021-05-07T02:58:31.521Z] 02:58:31     INFO - TEST-PASS | browser/components/preferences/tests/siteData/browser_clearSiteData.js | Should have the correct permission state. - 
[task 2021-05-07T02:58:31.522Z] 02:58:31     INFO - Leaving test bound 
[task 2021-05-07T02:58:31.522Z] 02:58:31     INFO - Buffered messages finished
[task 2021-05-07T02:58:31.523Z] 02:58:31     INFO - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/siteData/browser_clearSiteData.js | A promise chain failed to handle a rejection: waitForCondition timer - The total usage should be removed - still pending at the end of the test - stack: (No stack available.)
[task 2021-05-07T02:58:31.523Z] 02:58:31     INFO - Rejection date: Fri May 07 2021 02:58:31 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 285
[task 2021-05-07T02:58:31.524Z] 02:58:31     INFO - Stack trace:
[task 2021-05-07T02:58:31.524Z] 02:58:31     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:285
[task 2021-05-07T02:58:31.524Z] 02:58:31     INFO - chrome://mochikit/content/browser-test.js:nextTest:635
[task 2021-05-07T02:58:31.524Z] 02:58:31     INFO - chrome://mochikit/content/browser-test.js:testScope/test_finish/<:1560
[task 2021-05-07T02:58:31.524Z] 02:58:31     INFO - chrome://mochikit/content/browser-test.js:run:1475
[task 2021-05-07T02:58:31.524Z] 02:58:31     INFO - GECKO(1646) | JavaScript error: resource://testing-common/PromiseTestUtils.jsm, line 131: uncaught exception: waitForCondition timer - The total usage should be removed - still pending at the end of the test
[task 2021-05-07T02:58:31.525Z] 02:58:31     INFO - Console message: [JavaScript Error: "uncaught exception: waitForCondition timer - The total usage should be removed - still pending at the end of the test" {file: "resource://testing-common/PromiseTestUtils.jsm" line: 131}]
[task 2021-05-07T02:58:31.526Z] 02:58:31     INFO - GECKO(1646) | MEMORY STAT vsizeMaxContiguous not supported in this build configuration.
[task 2021-05-07T02:58:31.526Z] 02:58:31     INFO - GECKO(1646) | MEMORY STAT | vsize 7859MB | residentFast 367MB | heapAllocated 166MB
[task 2021-05-07T02:58:31.526Z] 02:58:31     INFO - TEST-OK | browser/components/preferences/tests/siteData/browser_clearSiteData.js | took 8226ms
[task 2021-05-07T02:58:31.527Z] 02:58:31     INFO - checking window state
[task 2021-05-07T02:58:31.527Z] 02:58:31     INFO - TEST-START | browser/components/preferences/tests/siteData/browser_siteData.js```