Bug: Intermittent toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | Thumbnail should be cached after capture -
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2021-06-26 16:16:03+00:00
Resolved: 2023-04-21 19:31:11+00:00

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

---
```
INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | Thumbnail shouldn't exist for timed out capture - 
[task 2021-06-26T15:34:22.662Z] 15:34:22     INFO - Buffered messages logged at 15:34:22
[task 2021-06-26T15:34:22.662Z] 15:34:22     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | onDone called, so URLs should still remain - 
[task 2021-06-26T15:34:22.663Z] 15:34:22     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-06-26T15:34:22.667Z] 15:34:22     INFO - Buffered messages finished
[task 2021-06-26T15:34:22.668Z] 15:34:22     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | Thumbnail should be cached after capture - 
[task 2021-06-26T15:34:22.668Z] 15:34:22     INFO - Stack trace:
[task 2021-06-26T15:34:22.668Z] 15:34:22     INFO - chrome://mochikit/content/browser-test.js:test_ok:1331
[task 2021-06-26T15:34:22.669Z] 15:34:22     INFO - chrome://mochitests/content/browser/toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js:onDone:36
[task 2021-06-26T15:34:22.669Z] 15:34:22     INFO - chrome://mochitests/content/browser/toolkit/components/thumbnails/test/head.js:bgCaptureWithMethod/</aOptions.onDone:202
[task 2021-06-26T15:34:22.669Z] 15:34:22     INFO - resource://gre/modules/BackgroundPageThumbs.jsm:done:721
[task 2021-06-26T15:34:22.669Z] 15:34:22     INFO - resource://gre/modules/BackgroundPageThumbs.jsm:_done:741
[task 2021-06-26T15:34:22.669Z] 15:34:22     INFO - resource://gre/modules/BackgroundPageThumbs.jsm:pageLoaded:650
[task 2021-06-26T15:34:22.669Z] 15:34:22     INFO - GECKO(19442) | [Child 19585: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (7fb0053a7400) [pid = 19585] [serial = 2] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:22.670Z] 15:34:22     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-06-26T15:34:22.671Z] 15:34:22     INFO - Console message: [JavaScript Warning: "Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content." {file: "http://www.example.com/2" line: 0}]
[task 2021-06-26T15:34:22.673Z] 15:34:22     INFO - Console message: [JavaScript Error: "[Exception... "Component returned failure code: 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) [nsIFile.remove]"  nsresult: "0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)"  location: "JS frame :: chrome://mochitests/content/browser/toolkit/components/thumbnails/test/head.js :: removeThumbnail :: line 107"  data: no]"]
[task 2021-06-26T15:34:22.673Z] 15:34:22     INFO - removeThumbnail@chrome://mochitests/content/browser/toolkit/components/thumbnails/test/head.js:107:8
[task 2021-06-26T15:34:22.673Z] 15:34:22     INFO - onDone@chrome://mochitests/content/browser/toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js:40:26
[task 2021-06-26T15:34:22.673Z] 15:34:22     INFO - bgCaptureWithMethod/</aOptions.onDone@chrome://mochitests/content/browser/toolkit/components/thumbnails/test/head.js:202:22
[task 2021-06-26T15:34:22.673Z] 15:34:22     INFO - done@resource://gre/modules/BackgroundPageThumbs.jsm:721:20
[task 2021-06-26T15:34:22.673Z] 15:34:22     INFO - _done@resource://gre/modules/BackgroundPageThumbs.jsm:741:7
[task 2021-06-26T15:34:22.673Z] 15:34:22     INFO - pageLoaded@resource://gre/modules/BackgroundPageThumbs.jsm:650:12
[task 2021-06-26T15:34:22.673Z] 15:34:22     INFO - 
[task 2021-06-26T15:34:22.674Z] 15:34:22     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7f9703c8d400 == 6 [pid = 19872] [id = 5]
[task 2021-06-26T15:34:22.675Z] 15:34:22     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 16 (7f9703c5a900) [pid = 19872] [serial = 16] [outer = 0]
[task 2021-06-26T15:34:22.675Z] 15:34:22     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 17 (7f9703c91400) [pid = 19872] [serial = 17] [outer = 7f9703c5a900]
[task 2021-06-26T15:34:22.676Z] 15:34:22     INFO - GECKO(19442) | [Child 19980, Main Thread] WARNING: could not set real-time limit in CubebUtils::InitLibrary: file /builds/worker/checkouts/gecko/dom/media/CubebUtils.cpp:619
[task 2021-06-26T15:34:22.677Z] 15:34:22     INFO - GECKO(19442) | [Child 19872, Main Thread] WARNING: Fallback to BasicLayerManager: file /builds/worker/checkouts/gecko/dom/ipc/BrowserChild.cpp:2820
[task 2021-06-26T15:34:22.677Z] 15:34:22     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 18 (7f970256d400) [pid = 19872] [serial = 18] [outer = 7f9703c5a900]
[task 2021-06-26T15:34:22.678Z] 15:34:22     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-06-26T15:34:22.713Z] 15:34:22     INFO - GECKO(19442) | [Child 19589: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 12 (7fcf185c6400) [pid = 19589] [serial = 8] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:22.714Z] 15:34:22     INFO - GECKO(19442) | [Child 19589: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 11 (7fcf185c5000) [pid = 19589] [serial = 5] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:22.715Z] 15:34:22     INFO - GECKO(19442) | [Child 19589: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 10 (7fcf185cc000) [pid = 19589] [serial = 12] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:22.716Z] 15:34:22     INFO - GECKO(19442) | [Child 19589: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 9 (7fcf185c9800) [pid = 19589] [serial = 6] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:22.717Z] 15:34:22     INFO - GECKO(19442) | [Child 19589: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 8 (7fcf1eeacc00) [pid = 19589] [serial = 3] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:22.718Z] 15:34:22     INFO - GECKO(19442) | [Child 19589: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 7 (7fcf185ca800) [pid = 19589] [serial = 10] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:22.719Z] 15:34:22     INFO - GECKO(19442) | [Child 19589: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 6 (7fcf1eea7400) [pid = 19589] [serial = 2] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:22.720Z] 15:34:22     INFO - GECKO(19442) | [Child 19589: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7fcf185c6800 == 2 [pid = 19589] [id = 7] [url = about:blank]
[task 2021-06-26T15:34:22.721Z] 15:34:22     INFO - GECKO(19442) | [Child 19589: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7fcf185cc800 == 1 [pid = 19589] [id = 5] [url = about:blank]
[task 2021-06-26T15:34:22.722Z] 15:34:22     INFO - GECKO(19442) | [Child 19589: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7fcf185c4000 == 0 [pid = 19589] [id = 6] [url = about:blank]
[task 2021-06-26T15:34:22.747Z] 15:34:22     INFO - GECKO(19442) | [Child 19589: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 5 (7fcf35564740) [pid = 19589] [serial = 17] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:22.748Z] 15:34:22     INFO - GECKO(19442) | [Child 19589: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (7fcf35564e40) [pid = 19589] [serial = 13] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:22.750Z] 15:34:22     INFO - GECKO(19442) | [Child 19589: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (7fcf355643c0) [pid = 19589] [serial = 15] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:22.836Z] 15:34:22     INFO - GECKO(19442) | [Parent 19442: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 13 (7f0a856ed400) [pid = 19442] [serial = 8] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:22.836Z] 15:34:22     INFO - GECKO(19442) | [Parent 19442: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 12 (7f0a81912400) [pid = 19442] [serial = 13] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:23.515Z] 15:34:23     INFO - GECKO(19442) | [Child 19506: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 6 (7f5e425c7400) [pid = 19506] [serial = 17] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:23.515Z] 15:34:23     INFO - GECKO(19442) | [Child 19506: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 5 (7f5e425c4800) [pid = 19506] [serial = 15] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:23.515Z] 15:34:23     INFO - GECKO(19442) | [Child 19506: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (7f5e425c2000) [pid = 19506] [serial = 13] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:23.516Z] 15:34:23     INFO - GECKO(19442) | [Child 19506: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f5e425c0000 == 1 [pid = 19506] [id = 8] [url = about:blank]
[task 2021-06-26T15:34:24.360Z] 15:34:24     INFO - GECKO(19442) | [Child 19528: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 8 (7f48b4977400) [pid = 19528] [serial = 13] [outer = 0] [url = moz-extension://91e0c094-9de0-4168-9a37-9c694f9899ba/_generated_background_page.html]
[task 2021-06-26T15:34:25.511Z] 15:34:25     INFO - GECKO(19442) | [Child 19600: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (7fcffa3a7800) [pid = 19600] [serial = 2] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:25.662Z] 15:34:25     INFO - GECKO(19442) | [Child 19506: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (7f5e5f6643c0) [pid = 19506] [serial = 18] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:26.798Z] 15:34:26     INFO - GECKO(19442) | [Child 19589: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (7fcf185cd800) [pid = 19589] [serial = 14] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:26.798Z] 15:34:26     INFO - GECKO(19442) | [Child 19589: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (7fcf185c5800) [pid = 19589] [serial = 16] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:26.798Z] 15:34:26     INFO - GECKO(19442) | [Child 19589: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (7fcf185c7c00) [pid = 19589] [serial = 18] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:29.056Z] 15:34:29     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f970b0a2c00 == 5 [pid = 19872] [id = 0] [url = http://example.com/1]
[task 2021-06-26T15:34:29.089Z] 15:34:29     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f9703c86800 == 4 [pid = 19872] [id = 2] [url = http://www.example.com/0]
[task 2021-06-26T15:34:29.090Z] 15:34:29     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f9703c88800 == 3 [pid = 19872] [id = 3] [url = http://www.example.com/1]
[task 2021-06-26T15:34:29.091Z] 15:34:29     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f97048e2c00 == 2 [pid = 19872] [id = 1] [url = about:blank]
[task 2021-06-26T15:34:29.127Z] 15:34:29     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 17 (7f9703c5a580) [pid = 19872] [serial = 10] [outer = 0] [url = http://www.example.com/1]
[task 2021-06-26T15:34:29.128Z] 15:34:29     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 16 (7f9721764580) [pid = 19872] [serial = 1] [outer = 0] [url = http://example.com/1]
[task 2021-06-26T15:34:29.129Z] 15:34:29     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 15 (7f9703c5a3c0) [pid = 19872] [serial = 7] [outer = 0] [url = http://www.example.com/0]
[task 2021-06-26T15:34:29.129Z] 15:34:29     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 14 (7f9703c5a200) [pid = 19872] [serial = 4] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:29.740Z] 15:34:29     INFO - GECKO(19442) | [Child 19506: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (7f5e425c1800) [pid = 19506] [serial = 19] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:33.184Z] 15:34:33     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 13 (7f9703c84400) [pid = 19872] [serial = 6] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:33.185Z] 15:34:33     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 12 (7f9703c91400) [pid = 19872] [serial = 17] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:33.186Z] 15:34:33     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 11 (7f970b0ae000) [pid = 19872] [serial = 3] [outer = 0] [url = http://example.com/1]
[task 2021-06-26T15:34:33.187Z] 15:34:33     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 10 (7f9703c87800) [pid = 19872] [serial = 8] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:33.188Z] 15:34:33     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 9 (7f9703c8c800) [pid = 19872] [serial = 14] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:33.191Z] 15:34:33     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 8 (7f9703c8b400) [pid = 19872] [serial = 11] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:33.191Z] 15:34:33     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 7 (7f970b0a8000) [pid = 19872] [serial = 2] [outer = 0] [url = about:blank]
[task 2021-06-26T15:34:33.192Z] 15:34:33     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 6 (7f9703c8a000) [pid = 19872] [serial = 9] [outer = 0] [url = http://www.example.com/0]
[task 2021-06-26T15:34:33.192Z] 15:34:33     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 5 (7f9703c8fc00) [pid = 19872] [serial = 12] [outer = 0] [url = http://www.example.com/1]
[task 2021-06-26T15:34:33.193Z] 15:34:33     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (7f970b0a9400) [pid = 19872] [serial = 5] [outer = 0] [url = about:blank]
[task 2021-06-26T15:35:22.235Z] 15:35:22     INFO - GECKO(19442) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-06-26T15:35:22.236Z] 15:35:22     INFO - GECKO(19442) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-06-26T15:35:22.240Z] 15:35:22     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f9703c8b800 == 1 [pid = 19872] [id = 4] [url = http://www.example.com/2]
[task 2021-06-26T15:35:22.240Z] 15:35:22     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f9703c8d400 == 0 [pid = 19872] [id = 5] [url = about:blank]
[task 2021-06-26T15:35:22.277Z] 15:35:22     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (7f9703c5a900) [pid = 19872] [serial = 16] [outer = 0] [url = about:blank]
[task 2021-06-26T15:35:22.278Z] 15:35:22     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (7f9703c5a740) [pid = 19872] [serial = 13] [outer = 0] [url = http://www.example.com/2]
[task 2021-06-26T15:35:22.279Z] 15:35:22     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (7f970256d400) [pid = 19872] [serial = 18] [outer = 0] [url = about:blank]
[task 2021-06-26T15:35:22.280Z] 15:35:22     INFO - GECKO(19442) | [Child 19872: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (7f97048da000) [pid = 19872] [serial = 15] [outer = 0] [url = http://www.example.com/2]
[task 2021-06-26T15:35:22.280Z] 15:35:22     INFO - GECKO(19442) | [Child 19872, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3357
[task 2021-06-26T15:35:22.290Z] 15:35:22     INFO - GECKO(19442) | [Child 19872, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4438
[task 2021-06-26T15:35:51.206Z] 15:35:51     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-26T15:35:51.206Z] 15:35:51     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | Test timed out - 
[task 2021-06-26T15:35:51.213Z] 15:35:51     INFO - GECKO(19442) | MEMORY STAT | vsize 2958MB | residentFast 331MB | heapAllocated 100MB
[task 2021-06-26T15:35:51.215Z] 15:35:51     INFO - TEST-OK | toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js | took 90030ms
```