Bug: Intermittent browser/components/preferences/tests/browser_newtab_menu.js | The first item, Home (default), is selected. -
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-02-17 12:06:38+00:00
Resolved: 2021-06-01 17:02:16+00:00

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

---
```
[task 2021-02-17T10:28:47.535Z] 10:28:47     INFO - TEST-START | browser/components/preferences/tests/browser_newtab_menu.js
[task 2021-02-17T10:28:47.536Z] 10:28:47     INFO - GECKO(1724) | [Child 1729: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 0x107017800 == 2 [pid = 1729] [id = 20]
[task 2021-02-17T10:28:47.544Z] 10:28:47     INFO - GECKO(1724) | [Child 1729: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 4 (0x1070db200) [pid = 1729] [serial = 41] [outer = 0x0]
[task 2021-02-17T10:28:47.544Z] 10:28:47     INFO - GECKO(1724) | [Child 1729: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 5 (0x10dea5000) [pid = 1729] [serial = 42] [outer = 0x1070db200]
[task 2021-02-17T10:28:47.828Z] 10:28:47     INFO - GECKO(1724) | [Parent 1724: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 0x135842800 == 12 [pid = 1724] [id = 348]
[task 2021-02-17T10:28:47.828Z] 10:28:47     INFO - GECKO(1724) | [Parent 1724: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 57 (0x1680ec900) [pid = 1724] [serial = 903] [outer = 0x0]
[task 2021-02-17T10:28:47.828Z] 10:28:47     INFO - GECKO(1724) | [Parent 1724: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 58 (0x1688ccc00) [pid = 1724] [serial = 904] [outer = 0x1680ec900]
[task 2021-02-17T10:28:47.863Z] 10:28:47     INFO - GECKO(1724) | [Parent 1724: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 59 (0x16b265800) [pid = 1724] [serial = 905] [outer = 0x1680ec900]
[task 2021-02-17T10:28:47.879Z] 10:28:47     INFO - GECKO(1724) | [Parent 1724, Main Thread] WARNING: 'aOwner->IsDiscarded()', file /builds/worker/workspace/obj-build/dist/include/mozilla/dom/SyncedContextInlines.h:32
[task 2021-02-17T10:28:48.129Z] 10:28:48     INFO - GECKO(1724) | [Child 1729: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (0x10de12000) [pid = 1729] [serial = 38] [outer = 0x0] [url = about:blank]
[task 2021-02-17T10:28:48.130Z] 10:28:48     INFO - GECKO(1724) | [Child 1729: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 0x107017000 == 1 [pid = 1729] [id = 19] [url = about:blank]
[task 2021-02-17T10:28:48.130Z] 10:28:48     INFO - GECKO(1724) | [Child 1729: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (0x1070db040) [pid = 1729] [serial = 39] [outer = 0x0] [url = about:blank]
[task 2021-02-17T10:28:48.237Z] 10:28:48     INFO - GECKO(1724) | [Parent 1724, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/dom/base/nsContentUtils.cpp:3896
[task 2021-02-17T10:28:48.237Z] 10:28:48     INFO - GECKO(1724) | [Parent 1724: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 0x134e5ec00 == 13 [pid = 1724] [id = 349]
[task 2021-02-17T10:28:48.238Z] 10:28:48     INFO - GECKO(1724) | [Parent 1724: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 60 (0x12b1e3ac0) [pid = 1724] [serial = 906] [outer = 0x0]
[task 2021-02-17T10:28:48.370Z] 10:28:48     INFO - GECKO(1724) | [Parent 1724, Main Thread] WARNING: NS_ENSURE_TRUE(presShell) failed: file /builds/worker/checkouts/gecko/dom/base/nsGlobalWindowOuter.cpp:4252
[task 2021-02-17T10:28:48.399Z] 10:28:48     INFO - GECKO(1724) | [Parent 1724: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 61 (0x16eca4800) [pid = 1724] [serial = 907] [outer = 0x12b1e3ac0]
[task 2021-02-17T10:28:48.446Z] 10:28:48     INFO - GECKO(1724) | [Parent 1724: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 60 (0x1668d8000) [pid = 1724] [serial = 879] [outer = 0x0] [url = chrome://browser/content/preferences/dialogs/languages.xhtml]
[task 2021-02-17T10:28:48.446Z] 10:28:48     INFO - GECKO(1724) | [Parent 1724: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 59 (0x16d654c00) [pid = 1724] [serial = 830] [outer = 0x0] [url = chrome://browser/content/preferences/dialogs/applicationManager.xhtml]
[task 2021-02-17T10:28:48.446Z] 10:28:48     INFO - GECKO(1724) | [Parent 1724: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 58 (0x1688cfc00) [pid = 1724] [serial = 882] [outer = 0x0] [url = chrome://browser/content/preferences/dialogs/languages.xhtml]
[task 2021-02-17T10:28:48.897Z] 10:28:48     INFO - TEST-INFO | started process screencapture
[task 2021-02-17T10:28:48.983Z] 10:28:48     INFO - TEST-INFO | screencapture: exit 0
[task 2021-02-17T10:28:48.983Z] 10:28:48     INFO - Buffered messages logged at 10:28:47
[task 2021-02-17T10:28:48.983Z] 10:28:48     INFO - Entering test bound newtabPreloaded
[task 2021-02-17T10:28:48.983Z] 10:28:48     INFO - Buffered messages finished
[task 2021-02-17T10:28:48.984Z] 10:28:48     INFO - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_newtab_menu.js | The first item, Home (default), is selected. - 
[task 2021-02-17T10:28:48.984Z] 10:28:48     INFO - Stack trace:
[task 2021-02-17T10:28:48.984Z] 10:28:48     INFO - chrome://mochikit/content/browser-test.js:test_ok:1323
[task 2021-02-17T10:28:48.984Z] 10:28:48     INFO - chrome://mochitests/content/browser/browser/components/preferences/tests/browser_newtab_menu.js:newtabPreloaded:25
[task 2021-02-17T10:28:48.988Z] 10:28:48     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-02-17T10:28:48.988Z] 10:28:48     INFO - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_newtab_menu.js | Default Home allows preloading. - 
[task 2021-02-17T10:28:48.988Z] 10:28:48     INFO - Stack trace:
[task 2021-02-17T10:28:48.988Z] 10:28:48     INFO - chrome://mochikit/content/browser-test.js:test_ok:1323
[task 2021-02-17T10:28:48.988Z] 10:28:48     INFO - chrome://mochitests/content/browser/browser/components/preferences/tests/browser_newtab_menu.js:newtabPreloaded:26
[task 2021-02-17T10:28:48.988Z] 10:28:48     INFO - TEST-PASS | browser/components/preferences/tests/browser_newtab_menu.js | The second item, Blank, is selected. - 
[task 2021-02-17T10:28:48.988Z] 10:28:48     INFO - TEST-PASS | browser/components/preferences/tests/browser_newtab_menu.js | Non-Home prevents preloading. - 
[task 2021-02-17T10:28:48.989Z] 10:28:48     INFO - TEST-PASS | browser/components/preferences/tests/browser_newtab_menu.js | The first item, Home, is selected again. - 
[task 2021-02-17T10:28:48.989Z] 10:28:48     INFO - TEST-PASS | browser/components/preferences/tests/browser_newtab_menu.js | Default Home allows preloading again. - 
[task 2021-02-17T10:28:48.989Z] 10:28:48     INFO - GECKO(1724) | [Parent 1724, Main Thread] WARNING: NS_ENSURE_TRUE(uri) failed: file /builds/worker/checkouts/gecko/caps/BasePrincipal.cpp:1327
[task 2021-02-17T10:28:48.989Z] 10:28:48     INFO - GECKO(1724) | [Parent 1724, Main Thread] WARNING: '!inner', file /builds/worker/checkouts/gecko/dom/ipc/jsactor/JSWindowActorProtocol.cpp:181
[task 2021-02-17T10:28:48.989Z] 10:28:48     INFO - Leaving test bound newtabPreloaded
[task 2021-02-17T10:28:48.989Z] 10:28:48     INFO - GECKO(1724) | [Parent 1724, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80040111 (NS_ERROR_NOT_AVAILABLE): file /builds/worker/checkouts/gecko/netwerk/cache/nsApplicationCacheService.cpp:180
[task 2021-02-17T10:28:48.989Z] 10:28:48     INFO - GECKO(1724) | [Parent 1724: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 57 (0x15f299400) [pid = 1724] [serial = 873] [outer = 0x0] [url = chrome://browser/content/preferences/dialogs/languages.xhtml]
[task 2021-02-17T10:28:48.989Z] 10:28:48     INFO - GECKO(1724) | [Parent 1724: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 56 (0x16eca2800) [pid = 1724] [serial = 858] [outer = 0x0] [url = chrome://browser/content/preferences/dialogs/selectBookmark.xhtml]
[task 2021-02-17T10:28:48.989Z] 10:28:48     INFO - GECKO(1724) | [Parent 1724: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 55 (0x16e90fc00) [pid = 1724] [serial = 855] [outer = 0x0] [url = chrome://browser/content/preferences/dialogs/selectBookmark.xhtml]
[task 2021-02-17T10:28:48.989Z] 10:28:48     INFO - GECKO(1724) | [Parent 1724: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 54 (0x1668cc400) [pid = 1724] [serial = 876] [outer = 0x0] [url = chrome://browser/content/preferences/dialogs/languages.xhtml]
[task 2021-02-17T10:28:48.989Z] 10:28:48     INFO - GECKO(1724) | [Parent 1724: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 53 (0x12b9a3800) [pid = 1724] [serial = 884] [outer = 0x0] [url = about:blank]
[task 2021-02-17T10:28:48.990Z] 10:28:48     INFO - GECKO(1724) | [Parent 1724: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 52 (0x167ce9400) [pid = 1724] [serial = 881] [outer = 0x0] [url = about:blank]
[task 2021-02-17T10:28:49.029Z] 10:28:49     INFO - GECKO(1724) | MEMORY STAT | vsize 8270MB | residentFast 689MB | heapAllocated 256MB
[task 2021-02-17T10:28:49.029Z] 10:28:49     INFO - TEST-OK | browser/components/preferences/tests/browser_newtab_menu.js | took 1482ms
[task 2021-02-17T10:28:49.030Z] 10:28:49     INFO - GECKO(1724) | [Child 1726: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 0x109c16000 == 3 [pid = 1726] [id = 56]
[task 2021-02-17T10:28:49.030Z] 10:28:49     INFO - GECKO(1724) | [Child 1726: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 5 (0x10e088900) [pid = 1726] [serial = 116] [outer = 0x0]
[task 2021-02-17T10:28:49.033Z] 10:28:49     INFO - GECKO(1724) | [Child 1726: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 6 (0x10e0ac000) [pid = 1726] [serial = 117] [outer = 0x10e088900]
[task 2021-02-17T10:28:49.048Z] 10:28:49     INFO - checking window state```