Bug: Intermittent browser/components/preferences/tests/browser_sync_pairing.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: INCOMPLETE
Created: 2021-03-15 14:50:52+00:00
Resolved: 2022-03-22 17:00:16+00:00

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

---
```
INFO - TEST-START | browser/components/preferences/tests/browser_sync_pairing.js
[task 2021-03-15T13:54:28.774Z] 13:54:28     INFO - GECKO(1558) | console.error:
[task 2021-03-15T13:54:28.777Z] 13:54:28     INFO - GECKO(1558) |   NS_ERROR_DOM_BAD_URI: Component returned failure code: 0x805303f4 [nsIWebNavigation.loadURI]: _loadURI@chrome://browser/content/browser.js:1612:27
[task 2021-03-15T13:54:28.777Z] 13:54:28     INFO - GECKO(1558) | _switchToUrl@chrome://browser/content/preferences/fxaPairDevice.js:102:13
[task 2021-03-15T13:54:28.777Z] 13:54:28     INFO - GECKO(1558) | invoke@resource://testing-common/sinon-7.2.7.js:2609:51
[task 2021-03-15T13:54:28.777Z] 13:54:28     INFO - GECKO(1558) | proxy@resource://testing-common/sinon-7.2.7.js:2397:30
[task 2021-03-15T13:54:28.777Z] 13:54:28     INFO - GECKO(1558) | setupListeners/this._switchToWebContent@chrome://browser/content/preferences/fxaPairDevice.js:110:49
[task 2021-03-15T13:54:28.777Z] 13:54:28     INFO - GECKO(1558) | handler@resource://gre/modules/EventEmitter.jsm:97:19
[task 2021-03-15T13:54:28.777Z] 13:54:28     INFO - GECKO(1558) | emit@resource://gre/modules/EventEmitter.jsm:160:20
[task 2021-03-15T13:54:28.777Z] 13:54:28     INFO - GECKO(1558) | testSwitchToWebContent/<@chrome://mochitests/content/browser/browser/components/preferences/tests/browser_sync_pairing.js:103:13
[task 2021-03-15T13:54:41.418Z] 13:54:41     INFO - TEST-INFO | started process screentopng
[task 2021-03-15T13:54:41.988Z] 13:54:41     INFO - TEST-INFO | screentopng: exit 0
[task 2021-03-15T13:54:41.995Z] 13:54:41     INFO - Buffered messages logged at 13:47:15
[task 2021-03-15T13:54:41.996Z] 13:54:41     INFO - Entering test bound setup
[task 2021-03-15T13:54:41.996Z] 13:54:41     INFO - Leaving test bound setup
[task 2021-03-15T13:54:41.996Z] 13:54:41     INFO - Entering test bound testShowsQRCode
[task 2021-03-15T13:54:41.996Z] 13:54:41     INFO - Buffered messages logged at 13:47:21
[task 2021-03-15T13:54:41.996Z] 13:54:41     INFO - TEST-PASS | browser/components/preferences/tests/browser_sync_pairing.js | Check the proper URL is loaded - 
[task 2021-03-15T13:54:41.997Z] 13:54:41     INFO - TEST-PASS | browser/components/preferences/tests/browser_sync_pairing.js | Element should not be null, when checking visibility - 
[task 2021-03-15T13:54:41.997Z] 13:54:41     INFO - TEST-PASS | browser/components/preferences/tests/browser_sync_pairing.js | Overlay is visible - 
[task 2021-03-15T13:54:41.997Z] 13:54:41     INFO - found chrome://global/skin/in-content/common.css
[task 2021-03-15T13:54:41.997Z] 13:54:41     INFO - found chrome://browser/skin/preferences/dialog.css
[task 2021-03-15T13:54:41.998Z] 13:54:41     INFO - found chrome://browser/skin/preferences/preferences.css
[task 2021-03-15T13:54:41.998Z] 13:54:41     INFO - TEST-PASS | browser/components/preferences/tests/browser_sync_pairing.js | All expectedStyleSheetURLs should have been found - 
[task 2021-03-15T13:54:41.998Z] 13:54:41     INFO - Buffered messages logged at 13:47:26
[task 2021-03-15T13:54:41.999Z] 13:54:41     INFO - TEST-PASS | browser/components/preferences/tests/browser_sync_pairing.js | true == true - 
[task 2021-03-15T13:54:41.999Z] 13:54:41     INFO - waiting for dialog to unload
[task 2021-03-15T13:54:41.999Z] 13:54:41     INFO - Buffered messages logged at 13:47:27
[task 2021-03-15T13:54:41.999Z] 13:54:41     INFO - Leaving test bound testShowsQRCode
[task 2021-03-15T13:54:42.000Z] 13:54:41     INFO - Entering test bound testCantShowQrCode
[task 2021-03-15T13:54:42.000Z] 13:54:41     INFO - Buffered messages logged at 13:53:23
INFO - TEST-PASS | browser/components/preferences/tests/browser_sync_pairing.js | Check the proper URL is loaded - 
[task 2021-03-15T13:54:42.000Z] 13:54:42     INFO - TEST-PASS | browser/components/preferences/tests/browser_sync_pairing.js | Element should not be null, when checking visibility - 
[task 2021-03-15T13:54:42.000Z] 13:54:42     INFO - TEST-PASS | browser/components/preferences/tests/browser_sync_pairing.js | Overlay is visible - 
[task 2021-03-15T13:54:42.000Z] 13:54:42     INFO - found chrome://global/skin/in-content/common.css
[task 2021-03-15T13:54:42.001Z] 13:54:42     INFO - found chrome://browser/skin/preferences/dialog.css
[task 2021-03-15T13:54:42.001Z] 13:54:42     INFO - found chrome://browser/skin/preferences/preferences.css
[task 2021-03-15T13:54:42.001Z] 13:54:42     INFO - TEST-PASS | browser/components/preferences/tests/browser_sync_pairing.js | All expectedStyleSheetURLs should have been found - 
[task 2021-03-15T13:54:42.001Z] 13:54:42     INFO - Buffered messages logged at 13:53:33
[task 2021-03-15T13:54:42.002Z] 13:54:42     INFO - Console message: [JavaScript Error: "boom" {file: "chrome://mochitests/content/browser/browser/components/preferences/tests/browser_sync_pairing.js" line: 72}]
[task 2021-03-15T13:54:42.002Z] 13:54:42     INFO - testCantShowQrCode/FxAccountsPairingFlow.start@chrome://mochitests/content/browser/browser/components/preferences/tests/browser_sync_pairing.js:72:11
[task 2021-03-15T13:54:42.002Z] 13:54:42     INFO - startPairingFlow@chrome://browser/content/preferences/fxaPairDevice.js:67:31
[task 2021-03-15T13:54:42.002Z] 13:54:42     INFO - init/<@chrome://browser/content/preferences/fxaPairDevice.js:46:49
[task 2021-03-15T13:54:42.002Z] 13:54:42     INFO - 
[task 2021-03-15T13:54:42.002Z] 13:54:42     INFO - waiting for dialog to unload
[task 2021-03-15T13:54:42.002Z] 13:54:42     INFO - Leaving test bound testCantShowQrCode
[task 2021-03-15T13:54:42.002Z] 13:54:42     INFO - Entering test bound testSwitchToWebContent
[task 2021-03-15T13:54:42.003Z] 13:54:42     INFO - Buffered messages logged at 13:53:53
[task 2021-03-15T13:54:42.004Z] 13:54:42     INFO - TEST-PASS | browser/components/preferences/tests/browser_sync_pairing.js | Check the proper URL is loaded - 
[task 2021-03-15T13:54:42.004Z] 13:54:42     INFO - Buffered messages logged at 13:53:54
[task 2021-03-15T13:54:42.004Z] 13:54:42     INFO - TEST-PASS | browser/components/preferences/tests/browser_sync_pairing.js | Element should not be null, when checking visibility - 
[task 2021-03-15T13:54:42.004Z] 13:54:42     INFO - Buffered messages logged at 13:53:55
[task 2021-03-15T13:54:42.005Z] 13:54:42     INFO - TEST-PASS | browser/components/preferences/tests/browser_sync_pairing.js | Overlay is visible - 
[task 2021-03-15T13:54:42.005Z] 13:54:42     INFO - found chrome://global/skin/in-content/common.css
[task 2021-03-15T13:54:42.005Z] 13:54:42     INFO - Buffered messages logged at 13:53:56
[task 2021-03-15T13:54:42.005Z] 13:54:42     INFO - found chrome://browser/skin/preferences/dialog.css
[task 2021-03-15T13:54:42.005Z] 13:54:42     INFO - found chrome://browser/skin/preferences/preferences.css
[task 2021-03-15T13:54:42.005Z] 13:54:42     INFO - TEST-PASS | browser/components/preferences/tests/browser_sync_pairing.js | All expectedStyleSheetURLs should have been found - 
[task 2021-03-15T13:54:42.006Z] 13:54:42     INFO - Buffered messages logged at 13:54:28
[task 2021-03-15T13:54:42.007Z] 13:54:42     INFO - TEST-PASS | browser/components/preferences/tests/browser_sync_pairing.js | 1 == 1 - 
[task 2021-03-15T13:54:42.007Z] 13:54:42     INFO - Leaving test bound testSwitchToWebContent
[task 2021-03-15T13:54:42.007Z] 13:54:42     INFO - Entering test bound testError
[task 2021-03-15T13:54:42.008Z] 13:54:42     INFO - Buffered messages logged at 13:54:29
[task 2021-03-15T13:54:42.008Z] 13:54:42     INFO - Console message: [JavaScript Error: "Security Error: Content at moz-nullprincipal:{996ee26f-37cb-4825-8c5d-d189dc8861a0} may not load or link to about:robots."]
[task 2021-03-15T13:54:42.008Z] 13:54:42     INFO - Buffered messages logged at 13:54:34
[task 2021-03-15T13:54:42.008Z] 13:54:42     INFO - TEST-PASS | browser/components/preferences/tests/browser_sync_pairing.js | Check the proper URL is loaded - 
[task 2021-03-15T13:54:42.008Z] 13:54:42     INFO - TEST-PASS | browser/components/preferences/tests/browser_sync_pairing.js | Element should not be null, when checking visibility - 
[task 2021-03-15T13:54:42.009Z] 13:54:42     INFO - TEST-PASS | browser/components/preferences/tests/browser_sync_pairing.js | Overlay is visible - 
[task 2021-03-15T13:54:42.010Z] 13:54:42     INFO - found chrome://global/skin/in-content/common.css
[task 2021-03-15T13:54:42.010Z] 13:54:42     INFO - found chrome://browser/skin/preferences/dialog.css
[task 2021-03-15T13:54:42.011Z] 13:54:42     INFO - found chrome://browser/skin/preferences/preferences.css
INFO - TEST-PASS | browser/components/preferences/tests/browser_sync_pairing.js | All expectedStyleSheetURLs should have been found - 
[task 2021-03-15T13:54:42.011Z] 13:54:42     INFO - Buffered messages logged at 13:54:40
[task 2021-03-15T13:54:42.011Z] 13:54:42     INFO - Console message: [JavaScript Error: "undefined" {file: "chrome://browser/content/preferences/fxaPairDevice.js" line: 93}]
[task 2021-03-15T13:54:42.011Z] 13:54:42     INFO - onError@chrome://browser/content/preferences/fxaPairDevice.js:93:8
[task 2021-03-15T13:54:42.011Z] 13:54:42     INFO - setupListeners/this._onError@chrome://browser/content/preferences/fxaPairDevice.js:111:40
[task 2021-03-15T13:54:42.012Z] 13:54:42     INFO - emit@resource://gre/modules/EventEmitter.jsm:160:20
[task 2021-03-15T13:54:42.012Z] 13:54:42     INFO - testError/<@chrome://mochitests/content/browser/browser/components/preferences/tests/browser_sync_pairing.js:119:13
[task 2021-03-15T13:54:42.012Z] 13:54:42     INFO - 
[task 2021-03-15T13:54:42.012Z] 13:54:42     INFO - waiting for dialog to unload
[task 2021-03-15T13:54:42.013Z] 13:54:42     INFO - Buffered messages logged at 13:54:41
[task 2021-03-15T13:54:42.014Z] 13:54:42     INFO - Leaving test bound testError
[task 2021-03-15T13:54:42.014Z] 13:54:42     INFO - Buffered messages finished
[task 2021-03-15T13:54:42.014Z] 13:54:42     INFO - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_sync_pairing.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 2021-03-15T13:54:42.014Z] 13:54:42     INFO - GECKO(1558) | MEMORY STAT | vsize 130552523MB | residentFast 4529MB
[task 2021-03-15T13:54:42.014Z] 13:54:42     INFO - TEST-OK | browser/components/preferences/tests/browser_sync_pairing.js | took 447232ms
[task 2021-03-15T13:54:42.014Z] 13:54:42     INFO - checking window state
[task 2021-03-15T13:54:42.014Z] 13:54:42     INFO - TEST-START | browser/components/preferences/tests/browser_warning_permanent_private_browsing.js```