Bug: Intermittent [tier 2] TV browser/components/newtab/test/browser/abouthomecache/browser_sanitize.js | Should have found the Discovery Stream top sites. - null == true - got null, expected true (operator ==)
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-10-27 01:22:08+00:00
Resolved: 2023-10-27 12:03:20+00:00

**Filed by:** mlaza [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=356125595&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/SNqmKbRfTXi-ugXwv21KDQ/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/SNqmKbRfTXi-ugXwv21KDQ/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
[task 2021-10-27T00:12:34.317Z] 00:12:34     INFO - TEST-START | browser/components/newtab/test/browser/abouthomecache/browser_sanitize.js
[task 2021-10-27T00:12:34.405Z] 00:12:34     INFO - GECKO(12251) | [Child 12329: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7f9273d48800 == 3 [pid = 12329] [id = 2]
[task 2021-10-27T00:12:34.405Z] 00:12:34     INFO - GECKO(12251) | [Child 12329: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 7 (7f9273230740) [pid = 12329] [serial = 7] [outer = 0]
[task 2021-10-27T00:12:34.407Z] 00:12:34     INFO - GECKO(12251) | [Child 12329: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 8 (7f9273d48c00) [pid = 12329] [serial = 8] [outer = 7f9273230740]
[task 2021-10-27T00:12:34.459Z] 00:12:34     INFO - GECKO(12251) | [2021-10-27T00:12:34Z WARN  webrender::device::gl] Attribute VertexAttribute { name: "aUvRect1", count: 4, kind: F32 } is not found in the shader composite. Expected at 6, found at -1
[task 2021-10-27T00:12:34.462Z] 00:12:34     INFO - GECKO(12251) | [2021-10-27T00:12:34Z WARN  webrender::device::gl] Attribute VertexAttribute { name: "aUvRect2", count: 4, kind: F32 } is not found in the shader composite. Expected at 7, found at -1
[task 2021-10-27T00:12:34.469Z] 00:12:34     INFO - GECKO(12251) | [2021-10-27T00:12:34Z WARN  webrender::device::gl] Attribute VertexAttribute { name: "aColor", count: 4, kind: F32 } is not found in the shader composite. Expected at 3, found at -1
[task 2021-10-27T00:12:34.473Z] 00:12:34     INFO - GECKO(12251) | [2021-10-27T00:12:34Z WARN  webrender::device::gl] Attribute VertexAttribute { name: "aUvRect1", count: 4, kind: F32 } is not found in the shader composite. Expected at 6, found at -1
[task 2021-10-27T00:12:34.475Z] 00:12:34     INFO - GECKO(12251) | [2021-10-27T00:12:34Z WARN  webrender::device::gl] Attribute VertexAttribute { name: "aUvRect2", count: 4, kind: F32 } is not found in the shader composite. Expected at 7, found at -1
[task 2021-10-27T00:12:34.554Z] 00:12:34     INFO - GECKO(12251) | [Child 12348: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7ff17cdb5400 == 5 [pid = 12348] [id = 2] [url = moz-extension://55495ca5-8a94-4e13-9a31-1416e317c514/_generated_background_page.html]
[task 2021-10-27T00:12:34.638Z] 00:12:34     INFO - GECKO(12251) | [Child 12329: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 9 (7f9273d49800) [pid = 12329] [serial = 9] [outer = 7f9273230740]
[task 2021-10-27T00:12:34.831Z] 00:12:34     INFO - GECKO(12251) | [2021-10-27T00:12:34Z WARN  webrender::device::gl] Cropping texture upload Box2D((0, 0), (0, 1)) to None
[task 2021-10-27T00:12:34.832Z] 00:12:34     INFO - GECKO(12251) | [2021-10-27T00:12:34Z WARN  webrender::device::gl] Cropping texture upload Box2D((0, 0), (0, 1)) to None
[task 2021-10-27T00:12:34.832Z] 00:12:34     INFO - GECKO(12251) | [2021-10-27T00:12:34Z WARN  webrender::device::gl] Cropping texture upload Box2D((0, 0), (0, 1)) to None
[task 2021-10-27T00:12:35.036Z] 00:12:35     INFO - GECKO(12251) | [Child 12329, Main Thread] WARNING: Scrolled rect smaller than scrollport?: file /builds/worker/checkouts/gecko/layout/generic/nsGfxScrollFrame.cpp:7041
[task 2021-10-27T00:12:35.069Z] 00:12:35     INFO - GECKO(12251) | [Child 12348: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 17 (7ff196d7ce40) [pid = 12348] [serial = 5] [outer = 0] [url = moz-extension://55495ca5-8a94-4e13-9a31-1416e317c514/_generated_background_page.html]
[task 2021-10-27T00:12:35.909Z] 00:12:35     INFO - GECKO(12251) | [Child 12329, Main Thread] WARNING: Scrolled rect smaller than scrollport?: file /builds/worker/checkouts/gecko/layout/generic/nsGfxScrollFrame.cpp:7038
[task 2021-10-27T00:12:36.002Z] 00:12:36     INFO - GECKO(12251) | [Child 12329, Main Thread] WARNING: Scrolled rect smaller than scrollport?: file /builds/worker/checkouts/gecko/layout/generic/nsGfxScrollFrame.cpp:7038
[task 2021-10-27T00:12:36.632Z] 00:12:36     INFO - GECKO(12251) | [Child 12329: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f927af3f800 == 2 [pid = 12329] [id = 0] [url = about:home]
[task 2021-10-27T00:12:36.653Z] 00:12:36     INFO - GECKO(12251) | [Child 12329: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 10 (7f92727c7c00) [pid = 12329] [serial = 10] [outer = 7f9273230740]
[task 2021-10-27T00:12:36.894Z] 00:12:36     INFO - TEST-INFO | started process screentopng
[task 2021-10-27T00:12:37.225Z] 00:12:37     INFO - TEST-INFO | screentopng: exit 0
[task 2021-10-27T00:12:37.226Z] 00:12:37     INFO - Buffered messages logged at 00:12:34
[task 2021-10-27T00:12:37.227Z] 00:12:37     INFO - Entering test bound test_sanitize
[task 2021-10-27T00:12:37.227Z] 00:12:37     INFO - Console message: 1635293554322	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2021-10-27T00:12:37.228Z] 00:12:37     INFO - Console message: 1635293554335	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2021-10-27T00:12:37.228Z] 00:12:37     INFO - Console message: 1635293554636	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2021-10-27T00:12:37.229Z] 00:12:37     INFO - Console message: 1635293554640	AboutHomeStartupCache	TRACE	Preloaded about:newtab was updated.
[task 2021-10-27T00:12:37.230Z] 00:12:37     INFO - Buffered messages logged at 00:12:35
[task 2021-10-27T00:12:37.231Z] 00:12:37     INFO - Simulating restart of the browser
[task 2021-10-27T00:12:37.231Z] 00:12:37     INFO - Simulating shutdown write
[task 2021-10-27T00:12:37.233Z] 00:12:37     INFO - Console message: 1635293555128	AboutHomeStartupCache	TRACE	Never wrote a cache this session. Arming cache task.
[task 2021-10-27T00:12:37.234Z] 00:12:37     INFO - Console message: 1635293555128	AboutHomeStartupCache	TRACE	Finalizing cache task on shutdown
[task 2021-10-27T00:12:37.238Z] 00:12:37     INFO - Console message: 1635293555132	AboutHomeStartupCache	TRACE	Caching now.
[task 2021-10-27T00:12:37.238Z] 00:12:37     INFO - Console message: 1635293555132	AboutHomeStartupCache	TRACE	Parent is requesting Activity Stream state object.
[task 2021-10-27T00:12:37.239Z] 00:12:37     INFO - Console message: 1635293555132	AboutHomeStartupCache	TRACE	Parent is requesting cache streams.
[task 2021-10-27T00:12:37.239Z] 00:12:37     INFO - Console message: 1635293555140	AboutHomeStartupCache	TRACE	Skipping timeout mechanism.
[task 2021-10-27T00:12:37.241Z] 00:12:37     INFO - Console message: 1635293555154	AboutHomeStartupCache	TRACE	Ignoring preloaded newtab update after finalization.
[task 2021-10-27T00:12:37.243Z] 00:12:37     INFO - Console message: 1635293555159	AboutHomeStartupCache	TRACE	Ignoring preloaded newtab update after finalization.
[task 2021-10-27T00:12:37.244Z] 00:12:37     INFO - Console message: 1635293555293	AboutHomeStartupCache	TRACE	Ignoring preloaded newtab update after finalization.
[task 2021-10-27T00:12:37.244Z] 00:12:37     INFO - Console message: 1635293555323	AboutHomeStartupCache	TRACE	Ignoring preloaded newtab update after finalization.
[task 2021-10-27T00:12:37.245Z] 00:12:37     INFO - Console message: 1635293555334	AboutHomeStartupCache	TRACE	Ignoring preloaded newtab update after finalization.
[task 2021-10-27T00:12:37.245Z] 00:12:37     INFO - Buffered messages logged at 00:12:36
[task 2021-10-27T00:12:37.251Z] 00:12:37     INFO - Console message: 1635293556426	AboutHomeStartupCache	TRACE	Parent received cache streams.
[task 2021-10-27T00:12:37.252Z] 00:12:37     INFO - Console message: 1635293556426	AboutHomeStartupCache	TRACE	Got cache streams.
[task 2021-10-27T00:12:37.252Z] 00:12:37     INFO - Console message: 1635293556426	AboutHomeStartupCache	TRACE	Populating cache.
[task 2021-10-27T00:12:37.253Z] 00:12:37     INFO - Console message: 1635293556426	AboutHomeStartupCache	TRACE	Populating the cache. Dooming old entry.
[task 2021-10-27T00:12:37.253Z] 00:12:37     INFO - Console message: 1635293556427	AboutHomeStartupCache	TRACE	Clearing the cache.
[task 2021-10-27T00:12:37.253Z] 00:12:37     INFO - Console message: 1635293556427	AboutHomeStartupCache	TRACE	Opening the page output stream.
[task 2021-10-27T00:12:37.254Z] 00:12:37     INFO - Console message: 1635293556427	AboutHomeStartupCache	INFO	Writing the page cache.
[task 2021-10-27T00:12:37.254Z] 00:12:37     INFO - Console message: 1635293556434	AboutHomeStartupCache	TRACE	Writing the page data is complete. Now opening the script output stream.
[task 2021-10-27T00:12:37.255Z] 00:12:37     INFO - Console message: 1635293556435	AboutHomeStartupCache	INFO	Writing the script cache.
[task 2021-10-27T00:12:37.255Z] 00:12:37     INFO - Shutdown write done
[task 2021-10-27T00:12:37.255Z] 00:12:37     INFO - Waiting for AboutHomeStartupCacheChild to uninit
[task 2021-10-27T00:12:37.255Z] 00:12:37     INFO - Console message: 1635293556437	AboutHomeStartupCache	TRACE	Writing the script cache is done. Setting version.
[task 2021-10-27T00:12:37.255Z] 00:12:37     INFO - Console message: 1635293556437	AboutHomeStartupCache	TRACE	Version is set to 20211026232316.
[task 2021-10-27T00:12:37.256Z] 00:12:37     INFO - Console message: 1635293556437	AboutHomeStartupCache	INFO	Caching of page and script is done.
[task 2021-10-27T00:12:37.259Z] 00:12:37     INFO - Console message: 1635293556437	AboutHomeStartupCache	TRACE	populateCache has finished.
[task 2021-10-27T00:12:37.260Z] 00:12:37     INFO - Console message: 1635293556437	AboutHomeStartupCache	TRACE	Done writing to cache.
[task 2021-10-27T00:12:37.260Z] 00:12:37     INFO - Console message: 1635293556438	AboutHomeStartupCache	TRACE	Done blocking shutdown.
[task 2021-10-27T00:12:37.261Z] 00:12:37     INFO - Console message: 1635293556438	AboutHomeStartupCache	TRACE	onShutdown is exiting
[task 2021-10-27T00:12:37.262Z] 00:12:37     INFO - Console message: 1635293556439	AboutHomeStartupCache	TRACE	Uninitialized.
[task 2021-10-27T00:12:37.263Z] 00:12:37     INFO - AboutHomeStartupCacheChild uninitted
[task 2021-10-27T00:12:37.264Z] 00:12:37     INFO - Waiting for AboutHomeStartupCache cache entry
[task 2021-10-27T00:12:37.264Z] 00:12:37     INFO - Got AboutHomeStartupCache cache entry
[task 2021-10-27T00:12:37.265Z] 00:12:37     INFO - Ensuring cache bytes are available
[task 2021-10-27T00:12:37.265Z] 00:12:37     INFO - Console message: 1635293556462	AboutHomeStartupCache	TRACE	Initting.
[task 2021-10-27T00:12:37.266Z] 00:12:37     INFO - Console message: 1635293556462	AboutHomeStartupCache	TRACE	Constructing pipes.
[task 2021-10-27T00:12:37.266Z] 00:12:37     INFO - Console message: 1635293556463	AboutHomeStartupCache	TRACE	Cache entry is available.
[task 2021-10-27T00:12:37.267Z] 00:12:37     INFO - Console message: 1635293556463	AboutHomeStartupCache	TRACE	Connecting nsICacheEntry to pipes.
[task 2021-10-27T00:12:37.268Z] 00:12:37     INFO - Console message: 1635293556463	AboutHomeStartupCache	TRACE	
[task 2021-10-27T00:12:37.268Z] 00:12:37     INFO - Console message: 1635293556463	AboutHomeStartupCache	INFO	Version retrieved is: 20211026232316
[task 2021-10-27T00:12:37.269Z] 00:12:37     INFO - Console message: 1635293556466	AboutHomeStartupCache	TRACE	Connecting page stream to pipe.
[task 2021-10-27T00:12:37.269Z] 00:12:37     INFO - Console message: 1635293556467	AboutHomeStartupCache	TRACE	Connecting script stream to pipe.
[task 2021-10-27T00:12:37.270Z] 00:12:37     INFO - Console message: 1635293556467	AboutHomeStartupCache	TRACE	Streams connected to pipes.
[task 2021-10-27T00:12:37.270Z] 00:12:37     INFO - Console message: 1635293556468	AboutHomeStartupCache	TRACE	Initialized.
[task 2021-10-27T00:12:37.271Z] 00:12:37     INFO - Console message: 1635293556469	AboutHomeStartupCache	TRACE	A privileged about content process is launching with ID 1.
[task 2021-10-27T00:12:37.272Z] 00:12:37     INFO - Console message: 1635293556469	AboutHomeStartupCache	INFO	Sending input streams down to content process.
[task 2021-10-27T00:12:37.272Z] 00:12:37     INFO - Console message: 1635293556484	AboutHomeStartupCache	INFO	Page stream connected to pipe.
[task 2021-10-27T00:12:37.273Z] 00:12:37     INFO - Console message: 1635293556484	AboutHomeStartupCache	INFO	Script stream connected to pipe.
[task 2021-10-27T00:12:37.274Z] 00:12:37     INFO - Waiting for about:home to load
[task 2021-10-27T00:12:37.274Z] 00:12:37     INFO - Console message: 1635293556690	AboutHomeStartupCache	TRACE	Received usage result. Success = true
[task 2021-10-27T00:12:37.275Z] 00:12:37     INFO - about:home loaded
[task 2021-10-27T00:12:37.275Z] 00:12:37     INFO - TEST-PASS | browser/components/newtab/test/browser/abouthomecache/browser_sanitize.js | There should be page scripts. - true == true - 
[task 2021-10-27T00:12:37.276Z] 00:12:37     INFO - TEST-PASS | browser/components/newtab/test/browser/abouthomecache/browser_sanitize.js | Found about:home?jscache script tag, indicating the cached doc - "about:home?jscache" == "about:home?jscache" - 
[task 2021-10-27T00:12:37.277Z] 00:12:37     INFO - TEST-PASS | browser/components/newtab/test/browser/abouthomecache/browser_sanitize.js | Should have found window.__FROM_STARTUP_CACHE__ - true == true - 
[task 2021-10-27T00:12:37.277Z] 00:12:37     INFO - TEST-PASS | browser/components/newtab/test/browser/abouthomecache/browser_sanitize.js | Should have found activity-stream class on <body> element - true == true - 
[task 2021-10-27T00:12:37.278Z] 00:12:37     INFO - Buffered messages finished
[task 2021-10-27T00:12:37.279Z] 00:12:37     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/abouthomecache/browser_sanitize.js | Should have found the Discovery Stream top sites. - null == true - got null, expected true (operator ==)
[task 2021-10-27T00:12:37.279Z] 00:12:37     INFO - Stack trace:
[task 2021-10-27T00:12:37.279Z] 00:12:37     INFO - @chrome://mochitests/content/browser/browser/components/newtab/test/browser/abouthomecache/head.js:269:12
[task 2021-10-27T00:12:37.280Z] 00:12:37     INFO - execute@resource://specialpowers/SpecialPowersSandbox.jsm:141:12
[task 2021-10-27T00:12:37.280Z] 00:12:37     INFO - _spawnTask@resource://specialpowers/SpecialPowersChild.jsm:1656:15
[task 2021-10-27T00:12:37.281Z] 00:12:37     INFO - receiveMessage@resource://specialpowers/SpecialPowersChild.jsm:310:21
[task 2021-10-27T00:12:37.281Z] 00:12:37     INFO - TEST-PASS | browser/components/newtab/test/browser/abouthomecache/browser_sanitize.js | Expected the right value set to browser.startup.abouthome_cache_result scalar. - 6 == 6 - 
```