Bug: Intermittent toolkit/components/thumbnails/test/browser_thumbnails_bg_captureIfMissing.js | got notification of item being created. - Got +0, expected 1
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2022-02-16 20:13:56+00:00
Resolved: 2023-09-27 12:03:41+00:00

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

---
```
[task 2022-02-16T19:20:33.344Z] 19:20:33     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_captureIfMissing.js | Thumbnail file should not already exist. - 
[task 2022-02-16T19:20:33.344Z] 19:20:33     INFO - Console message: [JavaScript Warning: "An iframe which has both allow-top-navigation and allow-top-navigation-by-user-activation for its sandbox attribute will permit top navigations." {file: "http://www.example.com/" line: 0}]
[task 2022-02-16T19:20:33.345Z] 19:20:33     INFO - Buffered messages finished
[task 2022-02-16T19:20:33.346Z] 19:20:33     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/thumbnails/test/browser_thumbnails_bg_captureIfMissing.js | got notification of item being created. - Got +0, expected 1
[task 2022-02-16T19:20:33.346Z] 19:20:33     INFO - Stack trace:
[task 2022-02-16T19:20:33.346Z] 19:20:33     INFO - chrome://mochikit/content/browser-test.js:test_is:1403
[task 2022-02-16T19:20:33.346Z] 19:20:33     INFO - chrome://mochitests/content/browser/toolkit/components/thumbnails/test/browser_thumbnails_bg_captureIfMissing.js:thumbnails_bg_captureIfMissing:18
[task 2022-02-16T19:20:33.346Z] 19:20:33     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_captureIfMissing.js | Captured URL should be URL passed to capture - 
[task 2022-02-16T19:20:33.347Z] 19:20:33     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-02-16T19:20:33.348Z] 19:20:33     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/thumbnails/test/browser_thumbnails_bg_captureIfMissing.js | Thumbnail should be cached after capture - 
[task 2022-02-16T19:20:33.348Z] 19:20:33     INFO - Stack trace:
[task 2022-02-16T19:20:33.348Z] 19:20:33     INFO - chrome://mochikit/content/browser-test.js:test_ok:1375
[task 2022-02-16T19:20:33.348Z] 19:20:33     INFO - chrome://mochitests/content/browser/toolkit/components/thumbnails/test/browser_thumbnails_bg_captureIfMissing.js:thumbnails_bg_captureIfMissing:20
[task 2022-02-16T19:20:33.348Z] 19:20:33     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-02-16T19:20:33.349Z] 19:20:33     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/thumbnails/test/browser_thumbnails_bg_captureIfMissing.js | Uncaught exception - [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIFile.lastModifiedTime]"  nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)"  location: "JS frame :: chrome://mochitests/content/browser/toolkit/components/thumbnails/test/browser_thumbnails_bg_captureIfMissing.js :: thumbnails_bg_captureIfMissing :: line 24"  data: no]
[task 2022-02-16T19:20:33.349Z] 19:20:33     INFO - Stack trace:
[task 2022-02-16T19:20:33.349Z] 19:20:33     INFO - thumbnails_bg_captureIfMissing@chrome://mochitests/content/browser/toolkit/components/thumbnails/test/browser_thumbnails_bg_captureIfMissing.js:24:3
[task 2022-02-16T19:20:33.350Z] 19:20:33     INFO - Leaving test bound thumbnails_bg_captureIfMissing
[task 2022-02-16T19:20:33.350Z] 19:20:33     INFO - GECKO(4140) | JavaScript error: resource://gre/modules/BackgroundPageThumbs.jsm, line 142: Error: page-thumbnail:error
[task 2022-02-16T19:20:33.351Z] 19:20:33     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-02-16T19:20:33.352Z] 19:20:33     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/thumbnails/test/browser_thumbnails_bg_captureIfMissing.js | A promise chain failed to handle a rejection: page-thumbnail:error - stack: observe@resource://gre/modules/BackgroundPageThumbs.jsm:142:22
[task 2022-02-16T19:20:33.352Z] 19:20:33     INFO - _onCaptureOrTimeout@resource://gre/modules/BackgroundPageThumbs.jsm:494:20
[task 2022-02-16T19:20:33.352Z] 19:20:33     INFO - done@resource://gre/modules/BackgroundPageThumbs.jsm:732:22
[task 2022-02-16T19:20:33.352Z] 19:20:33     INFO - _done@resource://gre/modules/BackgroundPageThumbs.jsm:755:7
[task 2022-02-16T19:20:33.352Z] 19:20:33     INFO - pageLoaded@resource://gre/modules/BackgroundPageThumbs.jsm:620:12
[task 2022-02-16T19:20:33.352Z] 19:20:33     INFO - onStateChange/<@resource://gre/modules/BackgroundPageThumbs.jsm:329:26
[task 2022-02-16T19:20:33.352Z] 19:20:33     INFO - Rejection date: Wed Feb 16 2022 19:20:33 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 271
[task 2022-02-16T19:20:33.352Z] 19:20:33     INFO - Stack trace:
[task 2022-02-16T19:20:33.353Z] 19:20:33     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:271
[task 2022-02-16T19:20:33.353Z] 19:20:33     INFO - chrome://mochikit/content/browser-test.js:nextTest:625
[task 2022-02-16T19:20:33.353Z] 19:20:33     INFO - Console message: [JavaScript Error: "Error: page-thumbnail:error" {file: "resource://gre/modules/BackgroundPageThumbs.jsm" line: 142}]
[task 2022-02-16T19:20:33.354Z] 19:20:33     INFO - GECKO(4140) | MEMORY STAT | vsize 2104135MB | vsizeMaxContiguous 67644231MB | residentFast 233MB | heapAllocated 105MB
[task 2022-02-16T19:20:33.354Z] 19:20:33     INFO - TEST-OK | toolkit/components/thumbnails/test/browser_thumbnails_bg_captureIfMissing.js | took 12816ms
```