Bug: Intermittent toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | A promise chain failed to handle a rejection: captureCallback is not a function - stack: done@resource://gre/modules/BackgroundPageThumbs.jsm:718:22
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2021-07-06 07:04:15+00:00
Resolved: 2023-04-21 19:31:04+00:00

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

---
```
INFO - TEST-INFO | started process screentopng
[task 2021-07-06T05:06:46.503Z] 05:06:46     INFO - TEST-INFO | screentopng: exit 0
[task 2021-07-06T05:06:46.503Z] 05:06:46     INFO - Buffered messages logged at 05:06:44
[task 2021-07-06T05:06:46.503Z] 05:06:46     INFO - Entering test bound thumbnails_bg_queueing
[task 2021-07-06T05:06:46.504Z] 05:06:46     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | Thumbnail should not exist yet: http://www.example.com/0 - 
[task 2021-07-06T05:06:46.504Z] 05:06:46     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | Thumbnail should not exist yet: http://www.example.com/1 - 
[task 2021-07-06T05:06:46.504Z] 05:06:46     INFO - Buffered messages logged at 05:06:45
[task 2021-07-06T05:06:46.504Z] 05:06:46     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | Thumbnail should not exist yet: http://mochi.test:8888/browser/toolkit/components/thumbnails/test/thumbnails_background.sjs?%7B%22wait%22%3A2002%7D - 
[task 2021-07-06T05:06:46.505Z] 05:06:46     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | Thumbnail should not exist yet: http://www.example.com/2 - 
[task 2021-07-06T05:06:46.506Z] 05:06:46     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: "about:blank" line: 0}]
[task 2021-07-06T05:06:46.507Z] 05:06:46     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | onDone called, so URLs should still remain - 
[task 2021-07-06T05:06:46.508Z] 05:06:46     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | Captured URL should be currently expected URL (i.e., capture() callbacks should be called in the correct order) - 
[task 2021-07-06T05:06:46.509Z] 05:06:46     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | Thumbnail should be cached after capture - 
[task 2021-07-06T05:06:46.509Z] 05:06:46     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: "about:blank" line: 0}]
[task 2021-07-06T05:06:46.510Z] 05:06:46     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | onDone called, so URLs should still remain - 
[task 2021-07-06T05:06:46.511Z] 05:06:46     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | Captured URL should be currently expected URL (i.e., capture() callbacks should be called in the correct order) - 
[task 2021-07-06T05:06:46.512Z] 05:06:46     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | Thumbnail should be cached after capture - 
[task 2021-07-06T05:06:46.513Z] 05:06:46     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | onDone called, so URLs should still remain - 
[task 2021-07-06T05:06:46.514Z] 05:06:46     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | Captured URL should be currently expected URL (i.e., capture() callbacks should be called in the correct order) - 
[task 2021-07-06T05:06:46.515Z] 05:06:46     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | Thumbnail shouldn't exist for timed out capture - 
[task 2021-07-06T05:06:46.515Z] 05:06:46     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: "about:blank" line: 0}]
[task 2021-07-06T05:06:46.516Z] 05:06:46     INFO - Buffered messages logged at 05:06:46
[task 2021-07-06T05:06:46.517Z] 05:06:46     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | onDone called, so URLs should still remain - 
[task 2021-07-06T05:06:46.518Z] 05:06:46     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | Captured URL should be currently expected URL (i.e., capture() callbacks should be called in the correct order) - 
[task 2021-07-06T05:06:46.518Z] 05:06:46     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | Thumbnail should be cached after capture - 
[task 2021-07-06T05:06:46.519Z] 05:06:46     INFO - Buffered messages finished
[task 2021-07-06T05:06:46.521Z] 05:06:46     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | A promise chain failed to handle a rejection: captureCallback is not a function - stack: done@resource://gre/modules/BackgroundPageThumbs.jsm:718:22
[task 2021-07-06T05:06:46.521Z] 05:06:46     INFO - _done@resource://gre/modules/BackgroundPageThumbs.jsm:741:7
[task 2021-07-06T05:06:46.521Z] 05:06:46     INFO - pageLoaded@resource://gre/modules/BackgroundPageThumbs.jsm:650:12
[task 2021-07-06T05:06:46.521Z] 05:06:46     INFO - Rejection date: Tue Jul 06 2021 05:06:46 GMT+0000 (Coordinated Universal Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 285
[task 2021-07-06T05:06:46.521Z] 05:06:46     INFO - Stack trace:
[task 2021-07-06T05:06:46.521Z] 05:06:46     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:285
[task 2021-07-06T05:06:46.521Z] 05:06:46     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1117
[task 2021-07-06T05:06:46.522Z] 05:06:46     INFO - Leaving test bound thumbnails_bg_queueing
[task 2021-07-06T05:06:46.523Z] 05:06:46     INFO - GECKO(20766) | JavaScript error: resource://gre/modules/BackgroundPageThumbs.jsm, line 718: TypeError: captureCallback is not a function
[task 2021-07-06T05:06:46.523Z] 05:06:46     INFO - GECKO(20766) | [Child 21329, Main Thread] WARNING: could not set real-time limit in CubebUtils::InitLibrary: file /builds/worker/checkouts/gecko/dom/media/CubebUtils.cpp:619
[task 2021-07-06T05:06:46.524Z] 05:06:46     INFO - Console message: [JavaScript Error: "TypeError: captureCallback is not a function" {file: "resource://gre/modules/BackgroundPageThumbs.jsm" line: 718}]
[task 2021-07-06T05:06:46.525Z] 05:06:46     INFO - GECKO(20766) | [Child 21221: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7f7647594800 == 6 [pid = 21221] [id = 5]
[task 2021-07-06T05:06:46.526Z] 05:06:46     INFO - GECKO(20766) | [Child 21221: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 16 (7f7647559900) [pid = 21221] [serial = 16] [outer = 0]
[task 2021-07-06T05:06:46.526Z] 05:06:46     INFO - GECKO(20766) | [Child 21221: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 17 (7f7647598800) [pid = 21221] [serial = 17] [outer = 7f7647559900]
[task 2021-07-06T05:06:46.527Z] 05:06:46     INFO - GECKO(20766) | MEMORY STAT | vsize 2964MB | residentFast 384MB | heapAllocated 145MB
[task 2021-07-06T05:06:46.528Z] 05:06:46     INFO - TEST-OK | toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | took 1114ms
```