Bug: Intermittent browser/components/newtab/test/browser/abouthomecache/browser_bump_version.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2022-08-08 16:34:22+00:00
Resolved: 2023-10-11 12:00:42+00:00

**Filed by:** apavel [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=386675392&repo=mozilla-esr91
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/U_qpnji8RsWl5BzQjqKUtg/runs/1/artifacts/public/logs/live_backing.log

---
```
task 2022-08-08T15:23:17.642Z] 15:23:17     INFO - GECKO(7660) | [Child 4888: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 26b398da400 == 3 [pid = 4888] [id = 2]
[task 2022-08-08T15:23:17.656Z] 15:23:17     INFO - GECKO(7660) | [Child 4888: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 8 (26b37bcdac0) [pid = 4888] [serial = 8] [outer = 0]
[task 2022-08-08T15:23:17.656Z] 15:23:17     INFO - GECKO(7660) | [Child 4888: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 9 (26b398db800) [pid = 4888] [serial = 9] [outer = 26b37bcdac0]
[task 2022-08-08T15:23:17.661Z] 15:23:17     INFO - GECKO(7660) | [Child 4888, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80040111 (NS_ERROR_NOT_AVAILABLE): file /builds/worker/checkouts/gecko/caps/BasePrincipal.cpp:1328
[task 2022-08-08T15:23:17.662Z] 15:23:17     INFO - GECKO(7660) | [Child 4888, Main Thread] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/dom/storage/LocalStorageManager.cpp:160
[task 2022-08-08T15:23:17.689Z] 15:23:17     INFO - GECKO(7660) | [Child 4888: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 10 (26b39956c00) [pid = 4888] [serial = 10] [outer = 26b37bcdac0]
[task 2022-08-08T15:23:17.706Z] 15:23:17     INFO - GECKO(7660) | [Child 4888, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80040111 (NS_ERROR_NOT_AVAILABLE): file /builds/worker/checkouts/gecko/caps/BasePrincipal.cpp:1328
[task 2022-08-08T15:23:17.707Z] 15:23:17     INFO - GECKO(7660) | [Child 4888, Main Thread] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/dom/storage/LocalStorageManager.cpp:160
[task 2022-08-08T15:23:17.858Z] 15:23:17     INFO - GECKO(7660) | [Child 4888, Main Thread] WARNING: Scrolled rect smaller than scrollport?: file /builds/worker/checkouts/gecko/layout/generic/nsGfxScrollFrame.cpp:7065
[task 2022-08-08T15:23:17.862Z] 15:23:17     INFO - GECKO(7660) | [Child 4888, Main Thread] WARNING: Scrolled rect smaller than scrollport?: file /builds/worker/checkouts/gecko/layout/generic/nsGfxScrollFrame.cpp:7065
[task 2022-08-08T15:23:18.274Z] 15:23:18     INFO - GECKO(7660) | [Child 4888: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 11 (26b3c3b3800) [pid = 4888] [serial = 11] [outer = 26b37bcdac0]
[task 2022-08-08T15:23:18.282Z] 15:23:18     INFO - GECKO(7660) | [Child 4888, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80040111 (NS_ERROR_NOT_AVAILABLE): file /builds/worker/checkouts/gecko/caps/BasePrincipal.cpp:1328
[task 2022-08-08T15:23:18.283Z] 15:23:18     INFO - GECKO(7660) | [Child 4888, Main Thread] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/dom/storage/LocalStorageManager.cpp:160
[task 2022-08-08T15:23:18.428Z] 15:23:18     INFO - GECKO(7660) | [Child 4888: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 12 (26b3c3a5400) [pid = 4888] [serial = 12] [outer = 26b37bcdac0]
[task 2022-08-08T15:23:18.447Z] 15:23:18     INFO - GECKO(7660) | [Child 4888, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80040111 (NS_ERROR_NOT_AVAILABLE): file /builds/worker/checkouts/gecko/caps/BasePrincipal.cpp:1328
[task 2022-08-08T15:23:18.448Z] 15:23:18     INFO - GECKO(7660) | [Child 4888, Main Thread] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/dom/storage/LocalStorageManager.cpp:160
[task 2022-08-08T15:23:18.622Z] 15:23:18     INFO - TEST-INFO | started process screenshot
[task 2022-08-08T15:23:18.721Z] 15:23:18     INFO - TEST-INFO | screenshot: exit 0
[task 2022-08-08T15:23:18.723Z] 15:23:18     INFO - Buffered messages logged at 15:23:17
[task 2022-08-08T15:23:18.724Z] 15:23:18     INFO - Entering test bound test_bump_version
[task 2022-08-08T15:23:18.724Z] 15:23:18     INFO - Console message: 1659972197607	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2022-08-08T15:23:18.725Z] 15:23:18     INFO - Console message: 1659972197608	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2022-08-08T15:23:18.726Z] 15:23:18     INFO - Console message: 1659972197609	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2022-08-08T15:23:18.726Z] 15:23:18     INFO - Console message: 1659972197700	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2022-08-08T15:23:18.727Z] 15:23:18     INFO - Console message: 1659972197701	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2022-08-08T15:23:18.728Z] 15:23:18     INFO - Simulating restart of the browser
[task 2022-08-08T15:23:18.728Z] 15:23:18     INFO - Simulating shutdown write
[task 2022-08-08T15:23:18.729Z] 15:23:18     INFO - Console message: 1659972197947	AboutHomeStartupCache	TRACE	Never wrote a cache this session. Arming cache task.
[task 2022-08-08T15:23:18.730Z] 15:23:18     INFO - Console message: 1659972197948	AboutHomeStartupCache	TRACE	Finalizing cache task on shutdown
[task 2022-08-08T15:23:18.730Z] 15:23:18     INFO - Console message: 1659972197948	AboutHomeStartupCache	TRACE	Caching now.
[task 2022-08-08T15:23:18.731Z] 15:23:18     INFO - Console message: 1659972197948	AboutHomeStartupCache	TRACE	Parent is requesting Activity Stream state object.
[task 2022-08-08T15:23:18.731Z] 15:23:18     INFO - Console message: 1659972197949	AboutHomeStartupCache	TRACE	Parent is requesting cache streams.
[task 2022-08-08T15:23:18.732Z] 15:23:18     INFO - Console message: 1659972197951	AboutHomeStartupCache	TRACE	Skipping timeout mechanism.
[task 2022-08-08T15:23:18.732Z] 15:23:18     INFO - Buffered messages logged at 15:23:18
[task 2022-08-08T15:23:18.733Z] 15:23:18     INFO - Console message: 1659972198126	AboutHomeStartupCache	TRACE	Parent received cache streams.
[task 2022-08-08T15:23:18.733Z] 15:23:18     INFO - Console message: 1659972198126	AboutHomeStartupCache	TRACE	Got cache streams.
[task 2022-08-08T15:23:18.734Z] 15:23:18     INFO - Console message: 1659972198127	AboutHomeStartupCache	TRACE	Populating cache.
[task 2022-08-08T15:23:18.734Z] 15:23:18     INFO - Console message: 1659972198127	AboutHomeStartupCache	TRACE	Populating the cache. Dooming old entry.
[task 2022-08-08T15:23:18.735Z] 15:23:18     INFO - Console message: 1659972198127	AboutHomeStartupCache	TRACE	Clearing the cache.
[task 2022-08-08T15:23:18.736Z] 15:23:18     INFO - Console message: 1659972198127	AboutHomeStartupCache	TRACE	Opening the page output stream.
[task 2022-08-08T15:23:18.737Z] 15:23:18     INFO - Console message: 1659972198127	AboutHomeStartupCache	INFO	Writing the page cache.
[task 2022-08-08T15:23:18.737Z] 15:23:18     INFO - Console message: 1659972198129	AboutHomeStartupCache	TRACE	Writing the page data is complete. Now opening the script output stream.
[task 2022-08-08T15:23:18.738Z] 15:23:18     INFO - Console message: 1659972198129	AboutHomeStartupCache	INFO	Writing the script cache.
[task 2022-08-08T15:23:18.738Z] 15:23:18     INFO - Shutdown write done
[task 2022-08-08T15:23:18.739Z] 15:23:18     INFO - Waiting for AboutHomeStartupCacheChild to uninit
[task 2022-08-08T15:23:18.739Z] 15:23:18     INFO - Console message: 1659972198130	AboutHomeStartupCache	TRACE	Writing the script cache is done. Setting version.
[task 2022-08-08T15:23:18.740Z] 15:23:18     INFO - Console message: 1659972198130	AboutHomeStartupCache	TRACE	Version is set to 20220808133932.
[task 2022-08-08T15:23:18.740Z] 15:23:18     INFO - Console message: 1659972198130	AboutHomeStartupCache	INFO	Caching of page and script is done.
[task 2022-08-08T15:23:18.741Z] 15:23:18     INFO - Console message: 1659972198130	AboutHomeStartupCache	TRACE	populateCache has finished.
[task 2022-08-08T15:23:18.742Z] 15:23:18     INFO - Console message: 1659972198130	AboutHomeStartupCache	TRACE	Done writing to cache.
[task 2022-08-08T15:23:18.743Z] 15:23:18     INFO - Console message: 1659972198130	AboutHomeStartupCache	TRACE	Done blocking shutdown.
[task 2022-08-08T15:23:18.743Z] 15:23:18     INFO - Console message: 1659972198130	AboutHomeStartupCache	TRACE	onShutdown is exiting
[task 2022-08-08T15:23:18.744Z] 15:23:18     INFO - Console message: 1659972198130	AboutHomeStartupCache	TRACE	Uninitialized.
[task 2022-08-08T15:23:18.744Z] 15:23:18     INFO - AboutHomeStartupCacheChild uninitted
[task 2022-08-08T15:23:18.745Z] 15:23:18     INFO - Waiting for AboutHomeStartupCache cache entry
[task 2022-08-08T15:23:18.745Z] 15:23:18     INFO - Got AboutHomeStartupCache cache entry
[task 2022-08-08T15:23:18.746Z] 15:23:18     INFO - Ensuring cache bytes are available
[task 2022-08-08T15:23:18.746Z] 15:23:18     INFO - Console message: 1659972198140	AboutHomeStartupCache	TRACE	Initting.
[task 2022-08-08T15:23:18.748Z] 15:23:18     INFO - Console message: 1659972198140	AboutHomeStartupCache	TRACE	Constructing pipes.
[task 2022-08-08T15:23:18.748Z] 15:23:18     INFO - Console message: 1659972198140	AboutHomeStartupCache	TRACE	Cache entry is available.
[task 2022-08-08T15:23:18.749Z] 15:23:18     INFO - Console message: 1659972198141	AboutHomeStartupCache	TRACE	Connecting nsICacheEntry to pipes.
[task 2022-08-08T15:23:18.749Z] 15:23:18     INFO - Console message: 1659972198141	AboutHomeStartupCache	TRACE	
[task 2022-08-08T15:23:18.750Z] 15:23:18     INFO - Console message: 1659972198141	AboutHomeStartupCache	INFO	Version retrieved is: 20220808133932
[task 2022-08-08T15:23:18.750Z] 15:23:18     INFO - Console message: 1659972198141	AboutHomeStartupCache	TRACE	Connecting page stream to pipe.
[task 2022-08-08T15:23:18.751Z] 15:23:18     INFO - Console message: 1659972198141	AboutHomeStartupCache	TRACE	Connecting script stream to pipe.
[task 2022-08-08T15:23:18.751Z] 15:23:18     INFO - Console message: 1659972198141	AboutHomeStartupCache	TRACE	Streams connected to pipes.
[task 2022-08-08T15:23:18.752Z] 15:23:18     INFO - Console message: 1659972198142	AboutHomeStartupCache	TRACE	Initialized.
[task 2022-08-08T15:23:18.753Z] 15:23:18     INFO - Console message: 1659972198142	AboutHomeStartupCache	TRACE	A privileged about content process is launching with ID 2.
[task 2022-08-08T15:23:18.754Z] 15:23:18     INFO - Console message: 1659972198142	AboutHomeStartupCache	INFO	Sending input streams down to content process.
[task 2022-08-08T15:23:18.754Z] 15:23:18     INFO - Console message: 1659972198146	AboutHomeStartupCache	INFO	Page stream connected to pipe.
[task 2022-08-08T15:23:18.755Z] 15:23:18     INFO - Console message: 1659972198146	AboutHomeStartupCache	INFO	Script stream connected to pipe.
[task 2022-08-08T15:23:18.756Z] 15:23:18     INFO - Waiting for about:home to load
[task 2022-08-08T15:23:18.756Z] 15:23:18     INFO - Console message: 1659972198292	AboutHomeStartupCache	TRACE	Received usage result. Success = true
[task 2022-08-08T15:23:18.756Z] 15:23:18     INFO - about:home loaded
[task 2022-08-08T15:23:18.758Z] 15:23:18     INFO - TEST-PASS | browser/components/newtab/test/browser/abouthomecache/browser_bump_version.js | Cache entry should be versioned on the build ID - "20220808133932" == "20220808133932" - 
[task 2022-08-08T15:23:18.758Z] 15:23:18     INFO - Simulating restart of the browser
[task 2022-08-08T15:23:18.759Z] 15:23:18     INFO - Intentionally skipping shutdown write
[task 2022-08-08T15:23:18.759Z] 15:23:18     INFO - Waiting for AboutHomeStartupCacheChild to uninit
[task 2022-08-08T15:23:18.759Z] 15:23:18     INFO - Console message: 1659972198414	AboutHomeStartupCache	TRACE	Uninitialized.
[task 2022-08-08T15:23:18.759Z] 15:23:18     INFO - AboutHomeStartupCacheChild uninitted
[task 2022-08-08T15:23:18.761Z] 15:23:18     INFO - Waiting for AboutHomeStartupCache cache entry
[task 2022-08-08T15:23:18.762Z] 15:23:18     INFO - Got AboutHomeStartupCache cache entry
[task 2022-08-08T15:23:18.762Z] 15:23:18     INFO - Waiting for about:home to load
task 2022-08-08T15:23:18.763Z] 15:23:18     INFO - Console message: 1659972198428	AboutHomeStartupCache	TRACE	Initting.
[task 2022-08-08T15:23:18.763Z] 15:23:18     INFO - Console message: 1659972198429	AboutHomeStartupCache	TRACE	Constructing pipes.
[task 2022-08-08T15:23:18.764Z] 15:23:18     INFO - Console message: 1659972198429	AboutHomeStartupCache	TRACE	Cache entry is available.
[task 2022-08-08T15:23:18.765Z] 15:23:18     INFO - Console message: 1659972198429	AboutHomeStartupCache	TRACE	Connecting nsICacheEntry to pipes.
[task 2022-08-08T15:23:18.765Z] 15:23:18     INFO - Console message: 1659972198429	AboutHomeStartupCache	TRACE	
[task 2022-08-08T15:23:18.766Z] 15:23:18     INFO - Console message: 1659972198429	AboutHomeStartupCache	INFO	Version retrieved is: somethingnew
[task 2022-08-08T15:23:18.766Z] 15:23:18     INFO - Console message: 1659972198429	AboutHomeStartupCache	INFO	Version does not match! Dooming and closing streams.
[task 2022-08-08T15:23:18.767Z] 15:23:18     INFO - 
[task 2022-08-08T15:23:18.767Z] 15:23:18     INFO - Console message: 1659972198429	AboutHomeStartupCache	TRACE	Clearing the cache.
[task 2022-08-08T15:23:18.768Z] 15:23:18     INFO - Console message: 1659972198430	AboutHomeStartupCache	TRACE	Initialized.
[task 2022-08-08T15:23:18.768Z] 15:23:18     INFO - Console message: 1659972198430	AboutHomeStartupCache	TRACE	A privileged about content process is launching with ID 2.
[task 2022-08-08T15:23:18.769Z] 15:23:18     INFO - Console message: 1659972198430	AboutHomeStartupCache	INFO	Sending input streams down to content process.
[task 2022-08-08T15:23:18.770Z] 15:23:18     INFO - Console message: 1659972198437	AboutHomeStartupCache	TRACE	Received usage result. Success = false
[task 2022-08-08T15:23:18.770Z] 15:23:18     INFO - about:home loaded
[task 2022-08-08T15:23:18.771Z] 15:23:18     INFO - TEST-PASS | browser/components/newtab/test/browser/abouthomecache/browser_bump_version.js | There should be no page scripts. - 0 == 0 - 
[task 2022-08-08T15:23:18.772Z] 15:23:18     INFO - TEST-PASS | browser/components/newtab/test/browser/abouthomecache/browser_bump_version.js | Should not have found window.__FROM_STARTUP_CACHE__ - "undefined" == "undefined" - 
[task 2022-08-08T15:23:18.772Z] 15:23:18     INFO - TEST-PASS | browser/components/newtab/test/browser/abouthomecache/browser_bump_version.js | Should have found activity-stream class on <body> element - true == true - 
[task 2022-08-08T15:23:18.772Z] 15:23:18     INFO - Buffered messages finished
[task 2022-08-08T15:23:18.773Z] 15:23:18     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/abouthomecache/browser_bump_version.js | Should have found the Discovery Stream top sites. - null == true - got null, expected true (operator ==)
[task 2022-08-08T15:23:18.773Z] 15:23:18     INFO - Stack trace:
[task 2022-08-08T15:23:18.773Z] 15:23:18     INFO - @chrome://mochitests/content/browser/browser/components/newtab/test/browser/abouthomecache/head.js:319:12
[task 2022-08-08T15:23:18.773Z] 15:23:18     INFO - execute@resource://specialpowers/SpecialPowersSandbox.jsm:141:12
[task 2022-08-08T15:23:18.775Z] 15:23:18     INFO - _spawnTask@resource://specialpowers/SpecialPowersChild.jsm:1630:15
[task 2022-08-08T15:23:18.775Z] 15:23:18     INFO - receiveMessage@resource://specialpowers/SpecialPowersChild.jsm:310:21
[task 2022-08-08T15:23:18.775Z] 15:23:18     INFO - TEST-PASS | browser/components/newtab/test/browser/abouthomecache/browser_bump_version.js | Expected the right value set to browser.startup.abouthome_cache_result scalar. - 4 == 4 - 
[task 2022-08-08T15:23:18.776Z] 15:23:18     INFO - Leaving test bound test_bump_version
[task 2022-08-08T15:23:18.776Z] 15:23:18     INFO - GECKO(7660) | MEMORY STAT | vsize 2104210MB | vsizeMaxContiguous 65229911MB | residentFast 280MB | heapAllocated 111MB
[task 2022-08-08T15:23:18.776Z] 15:23:18     INFO - TEST-OK | browser/components/newtab/test/browser/abouthomecache/browser_bump_version.js | took 1101ms
[task 2022-08-08T15:23:18.777Z] 15:23:18     INFO - GECKO(7660) | [Parent 5632, Main Thread] WARNING: NS_ENSURE_TRUE(!!aDelayMs) failed: file /builds/worker/checkouts/gecko/xpcom/threads/ThreadEventTarget.cpp:108
[task 2022-08-08T15:23:18.778Z] 15:23:18     INFO - GECKO(7660) | [Child 3324: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 1ce7f499800 == 1 [pid = 3324] [id = 0]
[task 2022-08-08T15:23:18.779Z] 15:23:18     INFO - GECKO(7660) | [Child 3324: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (1ce7f4c5580) [pid = 3324] [serial = 1] [outer = 0]
[task 2022-08-08T15:23:18.780Z] 15:23:18     INFO - GECKO(7660) | [Child 3324: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (1ce7fd43400) [pid = 3324] [serial = 2] [outer = 1ce7f4c5580]
[task 2022-08-08T15:23:18.780Z] 15:23:18     INFO - GECKO(7660) | [Child 3324, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80040111 (NS_ERROR_NOT_AVAILABLE): file /builds/worker/checkouts/gecko/caps/BasePrincipal.cpp:1328
[task 2022-08-08T15:23:18.780Z] 15:23:18     INFO - GECKO(7660) | [Child 3324, Main Thread] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/dom/storage/LocalStorageManager.cpp:160
[task 2022-08-08T15:23:18.781Z] 15:23:18     INFO - checking window state
```