Bug: Intermittent browser/components/newtab/test/browser/browser_asrouter_cfr.js | Count navigation to example.com - 0 == 1 - JS frame :: chrome://mochitests/content/browser/browser/components/newtab/test/browser/browser_asrouter_cfr.js :: test_onLocationChang
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2022-05-11 22:46:33+00:00
Resolved: 2024-04-27 00:57:35+00:00

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

---
```
task 2022-05-11T21:38:17.525Z] 21:38:17     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_asrouter_cfr.js | Panel should be visible - true == true - 
[task 2022-05-11T21:38:17.526Z] 21:38:17     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_asrouter_cfr.js | Panel have correct data attribute - "addon_recommendation" == "addon_recommendation" - 
[task 2022-05-11T21:38:17.527Z] 21:38:17     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_asrouter_cfr.js | Panel should have addon info container - {} == true - 
[task 2022-05-11T21:38:17.528Z] 21:38:17     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_asrouter_cfr.js | Panel should have addon rating info - {} == true - 
[task 2022-05-11T21:38:17.528Z] 21:38:17     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_asrouter_cfr.js | Panel should have author info - {} == true - 
[task 2022-05-11T21:38:17.529Z] 21:38:17     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_asrouter_cfr.js | {"_inheritedElements":{".button-text":{"_lastFormattedAccessKey":null},".button-menu-dropmarker":null},"initializedAttributeInheritance":true} == true - 
[task 2022-05-11T21:38:17.529Z] 21:38:17     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_asrouter_cfr.js | Should have removed the notification - 0 == 0 - 
[task 2022-05-11T21:38:17.530Z] 21:38:17     INFO - Leaving test bound test_cfr_addon_and_features_show
[task 2022-05-11T21:38:17.530Z] 21:38:17     INFO - Entering test bound test_onLocationChange_cb
[task 2022-05-11T21:38:17.531Z] 21:38:17     INFO - Console message: [JavaScript Error: "NetworkError when attempting to fetch resource."]
[task 2022-05-11T21:38:17.531Z] 21:38:17     INFO - reportError@resource://activity-stream/lib/ASRouter.jsm:112:8
[task 2022-05-11T21:38:17.531Z] 21:38:17     INFO - _remoteSettingsLoader@resource://activity-stream/lib/ASRouter.jsm:316:28
[task 2022-05-11T21:38:17.531Z] 21:38:17     INFO - 
[task 2022-05-11T21:38:17.532Z] 21:38:17     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use �<!DOCTYPE html>�." {file: "http://example.com/" line: 0}]
[task 2022-05-11T21:38:17.532Z] 21:38:17     INFO - Buffered messages finished
[task 2022-05-11T21:38:17.533Z] 21:38:17     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/browser_asrouter_cfr.js | Count navigation to example.com - 0 == 1 - JS frame :: chrome://mochitests/content/browser/browser/components/newtab/test/browser/browser_asrouter_cfr.js :: test_onLocationChange_cb :: line 650
[task 2022-05-11T21:38:17.533Z] 21:38:17     INFO - Stack trace:
[task 2022-05-11T21:38:17.533Z] 21:38:17     INFO - chrome://mochitests/content/browser/browser/components/newtab/test/browser/browser_asrouter_cfr.js:test_onLocationChange_cb:650
[task 2022-05-11T21:38:17.534Z] 21:38:17     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-05-11T21:38:17.535Z] 21:38:17     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/browser_asrouter_cfr.js | It should ignore same page navigation - 0 == 1 - JS frame :: chrome://mochitests/content/browser/browser/components/newtab/test/browser/browser_asrouter_cfr.js :: test_onLocationChange_cb :: line 660
[task 2022-05-11T21:38:17.535Z] 21:38:17     INFO - Stack trace:
[task 2022-05-11T21:38:17.535Z] 21:38:17     INFO - chrome://mochitests/content/browser/browser/components/newtab/test/browser/browser_asrouter_cfr.js:test_onLocationChange_cb:660
[task 2022-05-11T21:38:17.535Z] 21:38:17     INFO - GECKO(2128) | [Child 4784: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 1e22b168800 == 1 [pid = 4784] [id = 0]
[task 2022-05-11T21:38:17.536Z] 21:38:17     INFO - GECKO(2128) | [Child 4784: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (1e22626b260) [pid = 4784] [serial = 1] [outer = 0]
[task 2022-05-11T21:38:17.536Z] 21:38:17     INFO - GECKO(2128) | [Child 4784: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (1e22b168c00) [pid = 4784] [serial = 2] [outer = 1e22626b260]
[task 2022-05-11T21:38:17.537Z] 21:38:17     INFO - GECKO(2128) | [Child 4784: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (1e22b16c400) [pid = 4784] [serial = 3] [outer = 1e22626b260]
[task 2022-05-11T21:38:17.552Z] 21:38:17     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-05-11T21:38:17.553Z] 21:38:17     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/browser_asrouter_cfr.js | We moved to a new document - 0 == 2 - JS frame :: chrome://mochitests/content/browser/browser/components/newtab/test/browser/browser_asrouter_cfr.js :: test_onLocationChange_cb :: line 665
[task 2022-05-11T21:38:17.553Z] 21:38:17     INFO - Stack trace:
[task 2022-05-11T21:38:17.554Z] 21:38:17     INFO - chrome://mochitests/content/browser/browser/components/newtab/test/browser/browser_asrouter_cfr.js:test_onLocationChange_cb:665
[task 2022-05-11T21:38:17.554Z] 21:38:17     INFO - Leaving test bound test_onLocationChange_cb
[task 2022-05-11T21:38:17.554Z] 21:38:17     INFO - Entering test bound test_matchPattern
[task 2022-05-11T21:38:17.561Z] 21:38:17     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use �<!DOCTYPE html>�." {file: "https://example.com/browser/browser/components/newtab/test/browser/blue_page.html" line: 0}]
[task 2022-05-11T21:38:17.577Z] 21:38:17     INFO - GECKO(2128) | [Child 3080: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 26835d69800 == 1 [pid = 3080] [id = 0]
[task 2022-05-11T21:38:17.592Z] 21:38:17     INFO - GECKO(2128) | [Child 3080: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (26830e6b260) [pid = 3080] [serial = 1] [outer = 0]
[task 2022-05-11T21:38:17.594Z] 21:38:17     INFO - GECKO(2128) | [Child 3080: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (26835d69c00) [pid = 3080] [serial = 2] [outer = 26830e6b260]
[task 2022-05-11T21:38:17.639Z] 21:38:17     INFO - GECKO(2128) | [Child 3080: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (26835d6d000) [pid = 3080] [serial = 3] [outer = 26830e6b260]
<...>
[task 2022-05-11T21:38:18.165Z] 21:38:18     INFO - GECKO(2128) | [Child 2692: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 5 (1d92541ec00) [pid = 2692] [serial = 14] [outer = 0] [url = about:blank]
[task 2022-05-11T21:38:18.165Z] 21:38:18     INFO - GECKO(2128) | [Child 2692: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (1d92541e000) [pid = 2692] [serial = 16] [outer = 0] [url = about:blank]
[task 2022-05-11T21:38:18.169Z] 21:38:18     INFO - GECKO(2128) | [Child 2692: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (1d925424c00) [pid = 2692] [serial = 18] [outer = 0] [url = about:blank]
[task 2022-05-11T21:38:18.170Z] 21:38:18     INFO - GECKO(2128) | [Child 2692: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 1d92541b400 == 0 [pid = 2692] [id = 8] [url = about:blank]
[task 2022-05-11T21:38:18.185Z] 21:38:18     INFO - GECKO(2128) | [Child 2692: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (1d92056c260) [pid = 2692] [serial = 19] [outer = 0] [url = about:blank]
[task 2022-05-11T21:38:18.189Z] 21:38:18     INFO - GECKO(2128) | [Child 9024: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 200c6b41c00 == 2 [pid = 9024] [id = 1]
[task 2022-05-11T21:38:18.190Z] 21:38:18     INFO - GECKO(2128) | [Child 9024: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 4 (200c1d6b9a0) [pid = 9024] [serial = 4] [outer = 0]
[task 2022-05-11T21:38:18.191Z] 21:38:18     INFO - GECKO(2128) | [Child 9024: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 5 (200c6b42000) [pid = 9024] [serial = 5] [outer = 200c1d6b9a0]
[task 2022-05-11T21:38:18.204Z] 21:38:18     INFO - GECKO(2128) | [Child 9024: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 6 (200c6b43000) [pid = 9024] [serial = 6] [outer = 200c1d6b9a0]
[task 2022-05-11T21:38:18.245Z] 21:38:18     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use �<!DOCTYPE html>�." {file: "http://www.example.com/" line: 0}]
[task 2022-05-11T21:38:18.261Z] 21:38:18     INFO - Leaving test bound test_matchPattern
[task 2022-05-11T21:38:18.275Z] 21:38:18     INFO - Entering test bound test_providerNames
[task 2022-05-11T21:38:18.276Z] 21:38:18     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_asrouter_cfr.js | Provider id and pref name do not match - "onboarding" == "onboarding" - 
[task 2022-05-11T21:38:18.277Z] 21:38:18     INFO - Leaving test bound test_providerNames
```