Bug: Intermittent  TV browser/components/firefoxview/tests/browser/browser_setup_state.js | This test exceeded the timeout threshold. It should be rewritten or split up. If that's not possible, use requestLongerTimeout(N), but only as a last resort. -
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2022-08-02 14:03:26+00:00
Resolved: 2022-08-13 13:17:44+00:00

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

---
```
[task 2022-08-02T12:56:47.272Z] 12:56:47     INFO - TEST-START | browser/components/firefoxview/tests/browser/browser_setup_state.js
[task 2022-08-02T12:56:51.192Z] 12:56:51     INFO - GECKO(1439) | console.info: Skipping device list refresh; not signed in
[task 2022-08-02T12:56:53.854Z] 12:56:53     INFO - GECKO(1439) | console.info: Skipping device list refresh; not signed in
[task 2022-08-02T12:57:21.344Z] 12:57:21     INFO - GECKO(1439) | 1659445041343	Marionette	TRACE	Received observer notification browser-delayed-startup-finished
[task 2022-08-02T12:57:31.928Z] 12:57:31     INFO - GECKO(1439) | 1659445051927	Sync.ErrorHandler	ERROR	Sync encountered an error: null
[task 2022-08-02T12:57:31.942Z] 12:57:31     INFO - GECKO(1439) | JavaScript error: resource://services-sync/UIState.jsm, line 199: TypeError: can't access property "status", state is null
[task 2022-08-02T12:57:33.002Z] 12:57:33     INFO - TEST-INFO | started process screencapture
[task 2022-08-02T12:57:33.120Z] 12:57:33     INFO - TEST-INFO | screencapture: exit 0
[task 2022-08-02T12:57:33.121Z] 12:57:33     INFO - <snipped 213 output lines - if you need more context, please use SimpleTest.requestCompleteLog() in your test>
[task 2022-08-02T12:57:33.121Z] 12:57:33     INFO - Buffered messages logged at 12:57:14
[task 2022-08-02T12:57:33.122Z] 12:57:33     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_setup_state.js | Button has an a11y name - 
[task 2022-08-02T12:57:33.122Z] 12:57:33     INFO - Clicking the promo close button: [object HTMLButtonElement]
[task 2022-08-02T12:57:33.123Z] 12:57:33     INFO - Check the promo box got hidden
[task 2022-08-02T12:57:33.123Z] 12:57:33     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_setup_state.js | Promo pref is updated when close is clicked - 
[task 2022-08-02T12:57:33.124Z] 12:57:33     INFO - Buffered messages logged at 12:57:15
[task 2022-08-02T12:57:33.124Z] 12:57:33     INFO - Console message: 1659445034993	FirefoxView.TabsSetup	DEBUG	maybeUpdateUI, _uiUpdateNeeded:: true
[task 2022-08-02T12:57:33.124Z] 12:57:33     INFO - Leaving test bound test_mobile_promo_pref
[task 2022-08-02T12:57:33.125Z] 12:57:33     INFO - Entering test bound test_mobile_promo_windows
[task 2022-08-02T12:57:33.125Z] 12:57:33     INFO - Console message: 1659445035093	FirefoxView.TabsSetup	DEBUG	maybeUpdateUI, _uiUpdateNeeded:: true
[task 2022-08-02T12:57:33.126Z] 12:57:33     INFO - Console message: 1659445035101	FirefoxView.TabsSetup	DEBUG	maybeUpdateUI, _uiUpdateNeeded:: true
[task 2022-08-02T12:57:33.126Z] 12:57:33     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_setup_state.js | Firefox View tab doesn't exist prior to clicking the button - 
[task 2022-08-02T12:57:33.127Z] 12:57:33     INFO - Clicking the Firefox View button
[task 2022-08-02T12:57:33.127Z] 12:57:33     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_setup_state.js | Firefox View tab exists - 
[task 2022-08-02T12:57:33.128Z] 12:57:33     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_setup_state.js | Firefox View tab is hidden - 
[task 2022-08-02T12:57:33.128Z] 12:57:33     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_setup_state.js | Firefox View tab is the first tab - 
[task 2022-08-02T12:57:33.129Z] 12:57:33     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_setup_state.js | Firefox View tab is not in the list of visible tabs - 
[task 2022-08-02T12:57:33.129Z] 12:57:33     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_setup_state.js | Firefox View tab is selected - 
<...>
[task 2022-08-02T12:57:33.160Z] 12:57:33     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_setup_state.js | Firefox View tab exists - 
[task 2022-08-02T12:57:33.161Z] 12:57:33     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_setup_state.js | Firefox View tab is hidden - 
[task 2022-08-02T12:57:33.161Z] 12:57:33     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_setup_state.js | Firefox View tab is the first tab - 
[task 2022-08-02T12:57:33.162Z] 12:57:33     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_setup_state.js | Firefox View tab is not in the list of visible tabs - 
[task 2022-08-02T12:57:33.162Z] 12:57:33     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_setup_state.js | Firefox View tab is selected - 
[task 2022-08-02T12:57:33.163Z] 12:57:33     INFO - Buffered messages logged at 12:57:31
[task 2022-08-02T12:57:33.163Z] 12:57:33     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_setup_state.js | Got element with selector: #tabpickup-steps - 
[task 2022-08-02T12:57:33.163Z] 12:57:33     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_setup_state.js | Expected tabpickup-steps-view1 to be hidden - 
[task 2022-08-02T12:57:33.164Z] 12:57:33     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_setup_state.js | Expected tabpickup-steps-view2 to be hidden - 
[task 2022-08-02T12:57:33.164Z] 12:57:33     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_setup_state.js | Expected tabpickup-steps-view3 to be hidden - 
[task 2022-08-02T12:57:33.165Z] 12:57:33     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_setup_state.js | Correct message should show when there's a sync service error - 
[task 2022-08-02T12:57:33.165Z] 12:57:33     INFO - Buffered messages logged at 12:57:32
[task 2022-08-02T12:57:33.166Z] 12:57:33     INFO - Console message: 1659445051935	FirefoxView.TabsSetup	DEBUG	maybeUpdateUI, _uiUpdateNeeded:: true
[task 2022-08-02T12:57:33.167Z] 12:57:33     INFO - Console message: [JavaScript Error: "TypeError: can't access property "status", state is null" {file: "resource://services-sync/UIState.jsm" line: 199}]
[task 2022-08-02T12:57:33.167Z] 12:57:33     INFO - _setLastSyncTime@resource://services-sync/UIState.jsm:199:9
[task 2022-08-02T12:57:33.167Z] 12:57:33     INFO - toggleSyncActivity@resource://services-sync/UIState.jsm:134:10
[task 2022-08-02T12:57:33.167Z] 12:57:33     INFO - observe@resource://services-sync/UIState.jsm:102:14
[task 2022-08-02T12:57:33.167Z] 12:57:33     INFO - test_sync_error/<@chrome://mochitests/content/browser/browser/components/firefoxview/tests/browser/browser_setup_state.js:770:18
[task 2022-08-02T12:57:33.167Z] 12:57:33     INFO - withFirefoxView@chrome://mochitests/content/browser/browser/components/firefoxview/tests/browser/head.js:149:22
[task 2022-08-02T12:57:33.167Z] 12:57:33     INFO - 
[task 2022-08-02T12:57:33.168Z] 12:57:33     INFO - Console message: 1659445051963	FirefoxView.TabsSetup	DEBUG	maybeUpdateUI, _uiUpdateNeeded:: true
[task 2022-08-02T12:57:33.168Z] 12:57:33     INFO - Leaving test bound test_sync_error
[task 2022-08-02T12:57:33.169Z] 12:57:33     INFO - Buffered messages finished
[task 2022-08-02T12:57:33.170Z] 12:57:33     INFO - TEST-UNEXPECTED-FAIL | browser/components/firefoxview/tests/browser/browser_setup_state.js | This test exceeded the timeout threshold. It should be rewritten or split up. If that's not possible, use requestLongerTimeout(N), but only as a last resort. - 
[task 2022-08-02T12:57:33.170Z] 12:57:33     INFO - GECKO(1439) | MEMORY STAT | vsize 8038MB | residentFast 363MB | heapAllocated 165MB
[task 2022-08-02T12:57:33.170Z] 12:57:33     INFO - TEST-OK | browser/components/firefoxview/tests/browser/browser_setup_state.js | took 45731ms
[task 2022-08-02T12:57:33.170Z] 12:57:33     INFO - checking window state
[task 2022-08-02T12:57:33.171Z] 12:57:33     INFO - GECKO(1439) | Completed ShutdownLeaks collections in process 1439
[task 2022-08-02T12:57:33.171Z] 12:57:33     INFO - TEST-START | Shutdown
```