Bug: Intermittent TV browser/components/newtab/test/browser/abouthomecache/browser_no_startup_actions.js | Should have found the Discovery Stream top sites. - null == true - got null, expected true (operator ==)
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2020-07-09 01:57:51+00:00
Resolved: 2023-04-21 19:19:08+00:00

**Filed by:** malexandru [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer.html#?job_id=309056760&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/IKR4qqY6Rf6A409GAuBymQ/runs/0/artifacts/public/logs/live_backing.log
**Reftest URL:** https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/IKR4qqY6Rf6A409GAuBymQ/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---

```
[task 2020-07-08T23:07:35.798Z] 23:07:35     INFO - TEST-START | browser/components/newtab/test/browser/abouthomecache/browser_no_startup_actions.js
[task 2020-07-08T23:07:35.798Z] 23:07:35     INFO - GECKO(1212) | [Child 1216: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 0x1209a4800 == 3 [pid = 1216] [id = {29404520-f29d-0a41-bf11-4926c7e39fc2}]
[task 2020-07-08T23:07:35.800Z] 23:07:35     INFO - GECKO(1212) | [Child 1216: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 8 (0x1197139a0) [pid = 1216] [serial = 8] [outer = 0x0]
[task 2020-07-08T23:07:35.800Z] 23:07:35     INFO - GECKO(1212) | [Child 1216: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 9 (0x1209a5c00) [pid = 1216] [serial = 9] [outer = 0x1197139a0]
[task 2020-07-08T23:07:35.908Z] 23:07:35     INFO - GECKO(1212) | [Child 1216: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 10 (0x1209aa800) [pid = 1216] [serial = 10] [outer = 0x1197139a0]
[task 2020-07-08T23:07:36.101Z] 23:07:36     INFO - GECKO(1212) | [1218, MainThread] WARNING: XPCOM objects created/destroyed from static ctor/dtor: file /builds/worker/checkouts/gecko/xpcom/base/nsTraceRefcnt.cpp, line 202
[task 2020-07-08T23:07:36.101Z] 23:07:36     INFO - GECKO(1212) | [1218, MainThread] WARNING: XPCOM objects created/destroyed from static ctor/dtor: file /builds/worker/checkouts/gecko/xpcom/base/nsTraceRefcnt.cpp, line 202
[task 2020-07-08T23:07:36.101Z] 23:07:36     INFO - GECKO(1212) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to /var/folders/mx/15ww1m2s701gthpd5h8vmkbr000017/T/tmpc4ldjS.mozrunner/runtests_leaks_tab_pid1218.log
[task 2020-07-08T23:07:36.101Z] 23:07:36     INFO - GECKO(1212) | [1218, MainThread] WARNING: XPCOM objects created/destroyed from static ctor/dtor: file /builds/worker/checkouts/gecko/xpcom/base/nsTraceRefcnt.cpp, line 202
[task 2020-07-08T23:07:36.101Z] 23:07:36     INFO - GECKO(1212) | [1218, MainThread] WARNING: XPCOM objects created/destroyed from static ctor/dtor: file /builds/worker/checkouts/gecko/xpcom/base/nsTraceRefcnt.cpp, line 202
[task 2020-07-08T23:07:36.101Z] 23:07:36     INFO - GECKO(1212) | [1218, Main Thread] WARNING: XPCOM_MEM_BLOAT_LOG is set, disabling native allocations.: file /builds/worker/checkouts/gecko/tools/profiler/core/platform.cpp, line 245
[task 2020-07-08T23:07:36.342Z] 23:07:36     INFO - GECKO(1212) | Couldn't convert chrome URL: chrome://branding/locale/brand.properties
[task 2020-07-08T23:07:36.342Z] 23:07:36     INFO - GECKO(1212) | [Child 1218, Main Thread] WARNING: Could not get the program name for a cubeb stream.: 'NS_SUCCEEDED(rv)', file /builds/worker/checkouts/gecko/dom/media/CubebUtils.cpp, line 379
[task 2020-07-08T23:07:37.586Z] 23:07:37     INFO - GECKO(1212) | [Child 1216: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 11 (0x12899e000) [pid = 1216] [serial = 11] [outer = 0x1197139a0]
[task 2020-07-08T23:07:37.587Z] 23:07:37     INFO - GECKO(1212) | [Child 1216, Main Thread] WARNING: NS_ENSURE_TRUE(!mHasOrHasHadOwnerWindow || mOwnerWindow) failed: file /builds/worker/checkouts/gecko/dom/events/DOMEventTargetHelper.cpp, line 291
[task 2020-07-08T23:07:37.951Z] 23:07:37     INFO - TEST-INFO | started process screencapture
[task 2020-07-08T23:07:38.138Z] 23:07:38     INFO - TEST-INFO | screencapture: exit 0
[task 2020-07-08T23:07:38.138Z] 23:07:38     INFO - Buffered messages logged at 23:07:35
[task 2020-07-08T23:07:38.139Z] 23:07:38     INFO - Entering test bound test_no_startup_actions
[task 2020-07-08T23:07:38.139Z] 23:07:38     INFO - Console message: 1594249655776	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2020-07-08T23:07:38.140Z] 23:07:38     INFO - Console message: 1594249655777	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2020-07-08T23:07:38.140Z] 23:07:38     INFO - Console message: 1594249655778	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2020-07-08T23:07:38.140Z] 23:07:38     INFO - Console message: 1594249655871	AboutHomeStartupCache	TRACE	Received usage result. Success = false
[task 2020-07-08T23:07:38.141Z] 23:07:38     INFO - Console message: 1594249655872	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2020-07-08T23:07:38.144Z] 23:07:38     INFO - Console message: 1594249655874	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2020-07-08T23:07:38.144Z] 23:07:38     INFO - Buffered messages logged at 23:07:36
[task 2020-07-08T23:07:38.144Z] 23:07:38     INFO - Test is clearing the cache
[task 2020-07-08T23:07:38.144Z] 23:07:38     INFO - Test has cleared the cache.
[task 2020-07-08T23:07:38.144Z] 23:07:38     INFO - Simulating restart of the browser
[task 2020-07-08T23:07:38.144Z] 23:07:38     INFO - Simulating shutdown write
[task 2020-07-08T23:07:38.144Z] 23:07:38     INFO - Console message: 1594249656340	AboutHomeStartupCache	TRACE	Clearing the cache.
[task 2020-07-08T23:07:38.144Z] 23:07:38     INFO - Console message: 1594249656343	AboutHomeStartupCache	TRACE	Never wrote a cache this session. Arming cache task.
[task 2020-07-08T23:07:38.144Z] 23:07:38     INFO - Console message: 1594249656343	AboutHomeStartupCache	TRACE	Finalizing cache task on shutdown
[task 2020-07-08T23:07:38.144Z] 23:07:38     INFO - Console message: 1594249656344	AboutHomeStartupCache	TRACE	Caching now.
[task 2020-07-08T23:07:38.144Z] 23:07:38     INFO - Console message: 1594249656344	AboutHomeStartupCache	TRACE	Parent is requesting Activity Stream state object.
[task 2020-07-08T23:07:38.144Z] 23:07:38     INFO - Console message: 1594249656344	AboutHomeStartupCache	TRACE	Parent received cache streams.
[task 2020-07-08T23:07:38.144Z] 23:07:38     INFO - Console message: 1594249656415	AboutHomeStartupCache	TRACE	Ignoring preloaded newtab update after finalization.
[task 2020-07-08T23:07:38.144Z] 23:07:38     INFO - Console message: 1594249656420	AboutHomeStartupCache	TRACE	Ignoring preloaded newtab update after finalization.
[task 2020-07-08T23:07:38.144Z] 23:07:38     INFO - Console message: 1594249656503	AboutHomeStartupCache	TRACE	Ignoring preloaded newtab update after finalization.
[task 2020-07-08T23:07:38.150Z] 23:07:38     INFO - Console message: 1594249656520	AboutHomeStartupCache	TRACE	Ignoring preloaded newtab update after finalization.
[task 2020-07-08T23:07:38.150Z] 23:07:38     INFO - Console message: 1594249656531	AboutHomeStartupCache	TRACE	Ignoring preloaded newtab update after finalization.
[task 2020-07-08T23:07:38.151Z] 23:07:38     INFO - Buffered messages logged at 23:07:37
[task 2020-07-08T23:07:38.151Z] 23:07:38     INFO - Console message: 1594249657279	AboutHomeStartupCache	TRACE	Parent received cache streams.
[task 2020-07-08T23:07:38.151Z] 23:07:38     INFO - Console message: 1594249657279	AboutHomeStartupCache	TRACE	Populating the cache. Dooming old entry.
[task 2020-07-08T23:07:38.151Z] 23:07:38     INFO - Console message: 1594249657279	AboutHomeStartupCache	TRACE	Clearing the cache.
[task 2020-07-08T23:07:38.152Z] 23:07:38     INFO - Console message: 1594249657280	AboutHomeStartupCache	TRACE	Opening the page output stream.
[task 2020-07-08T23:07:38.152Z] 23:07:38     INFO - Console message: 1594249657280	AboutHomeStartupCache	INFO	Writing the page cache.
[task 2020-07-08T23:07:38.152Z] 23:07:38     INFO - Console message: 1594249657282	AboutHomeStartupCache	TRACE	Writing the page data is complete. Now opening the script output stream.
[task 2020-07-08T23:07:38.152Z] 23:07:38     INFO - Console message: 1594249657283	AboutHomeStartupCache	INFO	Writing the script cache.
[task 2020-07-08T23:07:38.153Z] 23:07:38     INFO - Shutdown write done
[task 2020-07-08T23:07:38.153Z] 23:07:38     INFO - Waiting for AboutHomeStartupCacheChild to uninit
[task 2020-07-08T23:07:38.153Z] 23:07:38     INFO - Console message: 1594249657285	AboutHomeStartupCache	TRACE	Writing the script cache is done. Setting version.
[task 2020-07-08T23:07:38.153Z] 23:07:38     INFO - Console message: 1594249657286	AboutHomeStartupCache	TRACE	Version is set to 20200708220956.
[task 2020-07-08T23:07:38.154Z] 23:07:38     INFO - Console message: 1594249657286	AboutHomeStartupCache	INFO	Caching of page and script is done.
[task 2020-07-08T23:07:38.154Z] 23:07:38     INFO - Console message: 1594249657286	AboutHomeStartupCache	TRACE	Done writing to cache.
[task 2020-07-08T23:07:38.154Z] 23:07:38     INFO - Console message: 1594249657287	AboutHomeStartupCache	TRACE	Uninitialized.
[task 2020-07-08T23:07:38.155Z] 23:07:38     INFO - AboutHomeStartupCacheChild uninitted
[task 2020-07-08T23:07:38.155Z] 23:07:38     INFO - Waiting for AboutHomeStartupCache cache entry
[task 2020-07-08T23:07:38.155Z] 23:07:38     INFO - Got AboutHomeStartupCache cache entry
[task 2020-07-08T23:07:38.155Z] 23:07:38     INFO - Ensuring cache bytes are available
[task 2020-07-08T23:07:38.156Z] 23:07:38     INFO - Console message: 1594249657298	AboutHomeStartupCache	TRACE	Initting.
[task 2020-07-08T23:07:38.156Z] 23:07:38     INFO - Console message: 1594249657299	AboutHomeStartupCache	TRACE	Cache entry is available.
[task 2020-07-08T23:07:38.156Z] 23:07:38     INFO - Console message: 1594249657299	AboutHomeStartupCache	TRACE	Constructing pipes.
[task 2020-07-08T23:07:38.156Z] 23:07:38     INFO - Console message: 1594249657299	AboutHomeStartupCache	TRACE	
[task 2020-07-08T23:07:38.157Z] 23:07:38     INFO - Console message: 1594249657300	AboutHomeStartupCache	INFO	Version retrieved is: 20200708220956
[task 2020-07-08T23:07:38.158Z] 23:07:38     INFO - Console message: 1594249657301	AboutHomeStartupCache	TRACE	Connecting page stream to pipe.
[task 2020-07-08T23:07:38.159Z] 23:07:38     INFO - Console message: 1594249657301	AboutHomeStartupCache	TRACE	Connecting script stream to pipe.
[task 2020-07-08T23:07:38.159Z] 23:07:38     INFO - Console message: 1594249657302	AboutHomeStartupCache	TRACE	Streams connected to pipes. Dropping references to pipes.
[task 2020-07-08T23:07:38.159Z] 23:07:38     INFO - Console message: 1594249657302	AboutHomeStartupCache	TRACE	Initialized.
[task 2020-07-08T23:07:38.159Z] 23:07:38     INFO - Console message: 1594249657302	AboutHomeStartupCache	TRACE	Constructing pipes.
[task 2020-07-08T23:07:38.159Z] 23:07:38     INFO - Console message: 1594249657303	AboutHomeStartupCache	INFO	Sending input streams down to content process.
[task 2020-07-08T23:07:38.161Z] 23:07:38     INFO - Console message: 1594249657303	AboutHomeStartupCache	TRACE	The cache entry is already available. Connecting to pipes immediately.
[task 2020-07-08T23:07:38.161Z] 23:07:38     INFO - Console message: 1594249657303	AboutHomeStartupCache	TRACE	
[task 2020-07-08T23:07:38.161Z] 23:07:38     INFO - Console message: 1594249657303	AboutHomeStartupCache	INFO	Version retrieved is: 20200708220956
[task 2020-07-08T23:07:38.162Z] 23:07:38     INFO - Console message: 1594249657304	AboutHomeStartupCache	TRACE	Connecting page stream to pipe.
[task 2020-07-08T23:07:38.162Z] 23:07:38     INFO - Console message: 1594249657304	AboutHomeStartupCache	TRACE	Connecting script stream to pipe.
[task 2020-07-08T23:07:38.162Z] 23:07:38     INFO - Console message: 1594249657305	AboutHomeStartupCache	TRACE	Streams connected to pipes. Dropping references to pipes.
[task 2020-07-08T23:07:38.164Z] 23:07:38     INFO - Console message: 1594249657312	AboutHomeStartupCache	INFO	Page stream connected to pipe.
[task 2020-07-08T23:07:38.165Z] 23:07:38     INFO - Console message: 1594249657312	AboutHomeStartupCache	INFO	Script stream connected to pipe.
[task 2020-07-08T23:07:38.165Z] 23:07:38     INFO - Console message: 1594249657312	AboutHomeStartupCache	INFO	Page stream connected to pipe.
[task 2020-07-08T23:07:38.165Z] 23:07:38     INFO - Console message: 1594249657317	AboutHomeStartupCache	INFO	Script stream connected to pipe.
[task 2020-07-08T23:07:38.165Z] 23:07:38     INFO - Waiting for about:home to load
[task 2020-07-08T23:07:38.168Z] 23:07:38     INFO - Console message: 1594249657515	AboutHomeStartupCache	TRACE	Received usage result. Success = true
[task 2020-07-08T23:07:38.168Z] 23:07:38     INFO - Console message: 1594249657568	AboutHomeStartupCache	TRACE	Received usage result. Success = true
[task 2020-07-08T23:07:38.169Z] 23:07:38     INFO - about:home loaded
[task 2020-07-08T23:07:38.169Z] 23:07:38     INFO - TEST-PASS | browser/components/newtab/test/browser/abouthomecache/browser_no_startup_actions.js | There should be page scripts. - true == true - 
[task 2020-07-08T23:07:38.169Z] 23:07:38     INFO - TEST-PASS | browser/components/newtab/test/browser/abouthomecache/browser_no_startup_actions.js | Found about:home?jscache script tag, indicating the cached doc - "about:home?jscache" == "about:home?jscache" - 
[task 2020-07-08T23:07:38.169Z] 23:07:38     INFO - TEST-PASS | browser/components/newtab/test/browser/abouthomecache/browser_no_startup_actions.js | Should have found window.__FROM_STARTUP_CACHE__ - true == true - 
[task 2020-07-08T23:07:38.170Z] 23:07:38     INFO - TEST-PASS | browser/components/newtab/test/browser/abouthomecache/browser_no_startup_actions.js | Should have found activity-stream class on <body> element - true == true - 
[task 2020-07-08T23:07:38.170Z] 23:07:38     INFO - Buffered messages finished
[task 2020-07-08T23:07:38.170Z] 23:07:38     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/abouthomecache/browser_no_startup_actions.js | Should have found the Discovery Stream top sites. - null == true - got null, expected true (operator ==)
[task 2020-07-08T23:07:38.171Z] 23:07:38     INFO - Stack trace:
[task 2020-07-08T23:07:38.171Z] 23:07:38     INFO - @chrome://mochitests/content/browser/browser/components/newtab/test/browser/abouthomecache/head.js:246:12
[task 2020-07-08T23:07:38.171Z] 23:07:38     INFO - execute@resource://specialpowers/SpecialPowersSandbox.jsm:141:12
[task 2020-07-08T23:07:38.171Z] 23:07:38     INFO - _spawnTask@resource://specialpowers/SpecialPowersChild.jsm:1812:15
[task 2020-07-08T23:07:38.171Z] 23:07:38     INFO - receiveMessage@resource://specialpowers/SpecialPowersChild.jsm:318:21
[task 2020-07-08T23:07:38.174Z] 23:07:38     INFO - TEST-PASS | browser/components/newtab/test/browser/abouthomecache/browser_no_startup_actions.js | Expected the right value set to browser.startup.abouthome_cache_result scalar. - 6 == 6 - 
[task 2020-07-08T23:07:38.174Z] 23:07:38     INFO - Console message: 1594249658000	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2020-07-08T23:07:38.174Z] 23:07:38     INFO - Console message: 1594249658007	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2020-07-08T23:07:38.174Z] 23:07:38     INFO - Console message: 1594249658025	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2020-07-08T23:07:38.175Z] 23:07:38     INFO - Console message: 1594249658030	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2020-07-08T23:07:38.175Z] 23:07:38     INFO - Console message: 1594249658041	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2020-07-08T23:07:38.175Z] 23:07:38     INFO - Console message: 1594249658088	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2020-07-08T23:07:38.175Z] 23:07:38     INFO - Console message: 1594249658093	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2020-07-08T23:07:38.176Z] 23:07:38     INFO - Console message: 1594249658096	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2020-07-08T23:07:38.176Z] 23:07:38     INFO - Console message: 1594249658119	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2020-07-08T23:07:38.178Z] 23:07:38     INFO - Console message: 1594249658163	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2020-07-08T23:07:38.251Z] 23:07:38     INFO - Console message: 1594249658220	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2020-07-08T23:07:38.252Z] 23:07:38     INFO - Console message: 1594249658226	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2020-07-08T23:07:38.252Z] 23:07:38     INFO - Console message: 1594249658228	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2020-07-08T23:07:38.252Z] 23:07:38     INFO - Console message: 1594249658234	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2020-07-08T23:07:38.312Z] 23:07:38     INFO - Console message: 1594249658243	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2020-07-08T23:07:38.313Z] 23:07:38     INFO - Console message: 1594249658263	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2020-07-08T23:07:38.397Z] 23:07:38     INFO - Console message: 1594249658324	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2020-07-08T23:07:40.116Z] 23:07:40     INFO - GECKO(1212) | [Child 1216: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 0x1195d9800 == 2 [pid = 1216] [id = {7bc03b69-0ac1-6f4c-9adc-9719e397b6bf}] [url = about:blank]
[task 2020-07-08T23:07:40.448Z] 23:07:40     INFO - TEST-PASS | browser/components/newtab/test/browser/abouthomecache/browser_no_startup_actions.js | Should have seen startup actions. - true == true - 
[task 2020-07-08T23:07:40.448Z] 23:07:40     INFO - Saw 17 startup actions.
[task 2020-07-08T23:07:40.448Z] 23:07:40     INFO - TEST-PASS | browser/components/newtab/test/browser/abouthomecache/browser_no_startup_actions.js | Should be no non-startup actions. - 0 == 0 - 
[task 2020-07-08T23:07:40.489Z] 23:07:40     INFO - Leaving test bound test_no_startup_actions
[task 2020-07-08T23:07:40.523Z] 23:07:40     INFO - GECKO(1212) | [Child 1216, Main Thread] WARNING: NS_ENSURE_TRUE(!mHasOrHasHadOwnerWindow || mOwnerWindow) failed: file /builds/worker/checkouts/gecko/dom/events/DOMEventTargetHelper.cpp, line 291
[task 2020-07-08T23:07:40.562Z] 23:07:40     INFO - GECKO(1212) | MEMORY STAT vsizeMaxContiguous not supported in this build configuration.
[task 2020-07-08T23:07:40.562Z] 23:07:40     INFO - GECKO(1212) | MEMORY STAT | vsize 7668MB | residentFast 341MB | heapAllocated 117MB
[task 2020-07-08T23:07:40.562Z] 23:07:40     INFO - TEST-OK | browser/components/newtab/test/browser/abouthomecache/browser_no_startup_actions.js | took 4777ms
```