Bug: Intermittent browser/components/newtab/test/browser/browser_aboutwelcome_fxa_signin_flow.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2023-07-12 13:39:18+00:00
Resolved: 2025-02-17 12:11:54+00:00

**Filed by:** ctuns [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=422401091&repo=try
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Pi7nX5XLQ12wplV-76zOkg/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2023-07-12T12:00:56.214Z] 12:00:56     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_aboutwelcome_fxa_signin_flow.js | FxA tab was not asked to close. - true == true - 
[task 2023-07-12T12:00:56.215Z] 12:00:56     INFO - Buffered messages finished
[task 2023-07-12T12:00:56.217Z] 12:00:56     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/browser_aboutwelcome_fxa_signin_flow.js | Uncaught exception in test bound test_fxa_sign_success_no_autoclose - at chrome://browser/content/tabbrowser.js:4167 - TypeError: browser.registeredOpenURI is null
[task 2023-07-12T12:00:56.217Z] 12:00:56     INFO - Stack trace:
[task 2023-07-12T12:00:56.217Z] 12:00:56     INFO - _beginRemoveTab@chrome://browser/content/tabbrowser.js:4167:1
[task 2023-07-12T12:00:56.217Z] 12:00:56     INFO - removeTab@chrome://browser/content/tabbrowser.js:3901:15
[task 2023-07-12T12:00:56.217Z] 12:00:56     INFO - removeTab@resource://testing-common/BrowserTestUtils.sys.mjs:1886:30
[task 2023-07-12T12:00:56.217Z] 12:00:56     INFO - test_fxa_sign_success_no_autoclose/<@chrome://mochitests/content/browser/browser/components/newtab/test/browser/browser_aboutwelcome_fxa_signin_flow.js:90:22
[task 2023-07-12T12:00:56.217Z] 12:00:56     INFO - async*withNewTab@resource://testing-common/BrowserTestUtils.sys.mjs:146:22
[task 2023-07-12T12:00:56.217Z] 12:00:56     INFO - async*test_fxa_sign_success_no_autoclose@chrome://mochitests/content/browser/browser/components/newtab/test/browser/browser_aboutwelcome_fxa_signin_flow.js:67:26
[task 2023-07-12T12:00:56.217Z] 12:00:56     INFO - handleTask@chrome://mochikit/content/browser-test.js:1131:26
[task 2023-07-12T12:00:56.217Z] 12:00:56     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1203:18
[task 2023-07-12T12:00:56.217Z] 12:00:56     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1345:14
[task 2023-07-12T12:00:56.217Z] 12:00:56     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1120:14
[task 2023-07-12T12:00:56.217Z] 12:00:56     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13
[task 2023-07-12T12:00:56.218Z] 12:00:56     INFO - Leaving test bound test_fxa_sign_success_no_autoclose
[task 2023-07-12T12:00:56.218Z] 12:00:56     INFO - Entering test bound test_fxa_signin_aborted
[task 2023-07-12T12:00:56.218Z] 12:00:56     INFO - GECKO(4008) | console.debug: AboutWelcomeParent:
[task 2023-07-12T12:00:56.218Z] 12:00:56     INFO - GECKO(4008) |   Terminate reason is welcome-tab-closed
[task 2023-07-12T12:00:56.219Z] 12:00:56     INFO - GECKO(4008) | console.debug: AboutWelcomeChild:
[task 2023-07-12T12:00:56.219Z] 12:00:56     INFO - GECKO(4008) |   Received page event DOMDocElementInserted
[task 2023-07-12T12:00:56.230Z] 12:00:56     INFO - GECKO(4008) | console.debug: AboutWelcomeParent:
[task 2023-07-12T12:00:56.230Z] 12:00:56     INFO - GECKO(4008) |   Received content event: AWPage:GET_ATTRIBUTION_DATA
[task 2023-07-12T12:00:56.261Z] 12:00:56     INFO - GECKO(4008) | console.debug: AboutWelcomeChild:
[task 2023-07-12T12:00:56.266Z] 12:00:56     INFO - GECKO(4008) |   Loading about:welcome with no experiment
[task 2023-07-12T12:00:56.270Z] 12:00:56     INFO - GECKO(4008) | console.debug: AboutWelcomeParent:
[task 2023-07-12T12:00:56.270Z] 12:00:56     INFO - GECKO(4008) |   Received content event: AWPage:NEED_DEFAULT
[task 2023-07-12T12:00:56.281Z] 12:00:56     INFO - GECKO(4008) | console.debug: AboutWelcomeParent:
[task 2023-07-12T12:00:56.285Z] 12:00:56     INFO - GECKO(4008) |   Received content event: AWPage:DOES_APP_NEED_PIN
[task 2023-07-12T12:00:56.324Z] 12:00:56     INFO - GECKO(4008) | console.debug: AboutWelcomeParent:
[task 2023-07-12T12:00:56.329Z] 12:00:56     INFO - GECKO(4008) |   Received content event: AWPage:FXA_METRICS_FLOW_URI
[task 2023-07-12T12:00:56.334Z] 12:00:56     INFO - GECKO(4008) | console.debug: AboutWelcomeParent:
[task 2023-07-12T12:00:56.335Z] 12:00:56     INFO - GECKO(4008) |   Received content event: AWPage:TELEMETRY_EVENT
[task 2023-07-12T12:00:56.337Z] 12:00:56     INFO - GECKO(4008) | console.debug: AboutWelcomeParent:
[task 2023-07-12T12:00:56.337Z] 12:00:56     INFO - GECKO(4008) |   Received content event: AWPage:SET_WELCOME_MESSAGE_SEEN
[task 2023-07-12T12:00:56.449Z] 12:00:56     INFO - GECKO(4008) | console.debug: AboutWelcomeParent:
[task 2023-07-12T12:00:56.460Z] 12:00:56     INFO - GECKO(4008) |   Received content event: AWPage:GET_SELECTED_THEME
[task 2023-07-12T12:00:56.465Z] 12:00:56     INFO - GECKO(4008) | console.debug: AboutWelcomeParent:
[task 2023-07-12T12:00:56.466Z] 12:00:56     INFO - GECKO(4008) |   Received content event: AWPage:EVALUATE_SCREEN_TARGETING
[task 2023-07-12T12:00:56.481Z] 12:00:56     INFO - GECKO(4008) | console.debug: AboutWelcomeParent:
[task 2023-07-12T12:00:56.491Z] 12:00:56     INFO - GECKO(4008) |   Received content event: AWPage:SPECIAL_ACTION
[task 2023-07-12T12:00:56.560Z] 12:00:56     INFO - GECKO(4008) | console.debug: AboutWelcomeParent:
[task 2023-07-12T12:00:56.572Z] 12:00:56     INFO - GECKO(4008) |   Received content event: AWPage:TELEMETRY_EVENT
[task 2023-07-12T12:00:56.578Z] 12:00:56     INFO - GECKO(4008) | console.debug: AboutWelcomeParent:
[task 2023-07-12T12:00:56.578Z] 12:00:56     INFO - GECKO(4008) |   Received content event: AWPage:ADD_SCREEN_IMPRESSION
[task 2023-07-12T12:00:56.701Z] 12:00:56     INFO - Console message: [JavaScript Error: "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://example.com/metrics-flow?entrypoint=aboutwelcome. (Reason: CORS header �Access-Control-Allow-Origin� missing). Status code: 404."]
[task 2023-07-12T12:00:56.764Z] 12:00:56     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_aboutwelcome_fxa_signin_flow.js | FxA tab was not asked to close yet. - true == true - 
```