Bug: Perma Beta browser/components/privatebrowsing/test/browser/browser_privatebrowsing_focus_promo.js | Uncaught exception in test - at chrome://<...>/browser_privatebrowsing_focus_promo.js:59 - TypeError: ASRouter.resetMessageState is not a function
Status: RESOLVED
Priority: P1
Resolution: FIXED
Created: 2022-04-13 20:27:37+00:00
Resolved: 2022-04-25 06:08:12+00:00

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

---
```
[task 2022-04-13T19:33:30.575Z] 19:33:30     INFO - TEST-START | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_focus_promo.js
[task 2022-04-13T19:33:31.196Z] 19:33:31     INFO - GECKO(4946) | -----------------------------------------------------
[task 2022-04-13T19:33:31.196Z] 19:33:31     INFO - GECKO(4946) | Suppressions used:
[task 2022-04-13T19:33:31.196Z] 19:33:31     INFO - GECKO(4946) |   count      bytes template
[task 2022-04-13T19:33:31.196Z] 19:33:31     INFO - GECKO(4946) |      12        384 nsComponentManagerImpl
[task 2022-04-13T19:33:31.196Z] 19:33:31     INFO - GECKO(4946) |       2        288 libfontconfig.so
[task 2022-04-13T19:33:31.196Z] 19:33:31     INFO - GECKO(4946) | -----------------------------------------------------
[task 2022-04-13T19:33:31.200Z] 19:33:31     INFO - GECKO(4946) | -----------------------------------------------------
[task 2022-04-13T19:33:31.200Z] 19:33:31     INFO - GECKO(4946) | Suppressions used:
[task 2022-04-13T19:33:31.200Z] 19:33:31     INFO - GECKO(4946) |   count      bytes template
[task 2022-04-13T19:33:31.200Z] 19:33:31     INFO - GECKO(4946) |      12        384 nsComponentManagerImpl
[task 2022-04-13T19:33:31.200Z] 19:33:31     INFO - GECKO(4946) |       2        288 libfontconfig.so
[task 2022-04-13T19:33:31.200Z] 19:33:31     INFO - GECKO(4946) | -----------------------------------------------------
[task 2022-04-13T19:33:32.373Z] 19:33:32     INFO - GECKO(4946) | JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
[task 2022-04-13T19:33:34.123Z] 19:33:34     INFO - TEST-INFO | started process screentopng
[task 2022-04-13T19:33:34.606Z] 19:33:34     INFO - TEST-INFO | screentopng: exit 0
[task 2022-04-13T19:33:34.606Z] 19:33:34     INFO - Buffered messages logged at 19:33:30
[task 2022-04-13T19:33:34.606Z] 19:33:34     INFO - Entering test bound test_focus_promo_in_allowed_region
[task 2022-04-13T19:33:34.606Z] 19:33:34     INFO - Buffered messages logged at 19:33:32
[task 2022-04-13T19:33:34.606Z] 19:33:34     INFO - Console message: [JavaScript Error: "Error: Can't find profile directory." {file: "resource://gre/modules/XULStore.jsm" line: 66}]
[task 2022-04-13T19:33:34.606Z] 19:33:34     INFO - load@resource://gre/modules/XULStore.jsm:66:15
[task 2022-04-13T19:33:34.606Z] 19:33:34     INFO - XULStore@resource://gre/modules/XULStore.jsm:24:10
[task 2022-04-13T19:33:34.606Z] 19:33:34     INFO - 
[task 2022-04-13T19:33:34.606Z] 19:33:34     INFO - TEST-PASS | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_focus_promo.js | Focus promo is shown for allowed region - {} == true - 
[task 2022-04-13T19:33:34.606Z] 19:33:34     INFO - Leaving test bound test_focus_promo_in_allowed_region
[task 2022-04-13T19:33:34.609Z] 19:33:34     INFO - Entering test bound test_focus_promo_in_disallowed_region
[task 2022-04-13T19:33:34.610Z] 19:33:34     INFO - Buffered messages logged at 19:33:33
[task 2022-04-13T19:33:34.611Z] 19:33:34     INFO - Console message: 1649878413249	addons.xpi	WARN	Addon with ID amazondotcn@search.mozilla.org already installed, older version will be disabled
[task 2022-04-13T19:33:34.614Z] 19:33:34     INFO - Buffered messages logged at 19:33:34
[task 2022-04-13T19:33:34.615Z] 19:33:34     INFO - TEST-PASS | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_focus_promo.js | Focus promo is not shown for disallowed region - true == true - 
[task 2022-04-13T19:33:34.615Z] 19:33:34     INFO - Leaving test bound test_focus_promo_in_disallowed_region
[task 2022-04-13T19:33:34.615Z] 19:33:34     INFO - Entering test bound test_focus_promo_in_DE_region_with_English_locale
[task 2022-04-13T19:33:34.615Z] 19:33:34     INFO - Buffered messages finished
[task 2022-04-13T19:33:34.615Z] 19:33:34     INFO - TEST-UNEXPECTED-FAIL | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_focus_promo.js | Uncaught exception in test - at chrome://mochitests/content/browser/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_focus_promo.js:59 - TypeError: ASRouter.resetMessageState is not a function
[task 2022-04-13T19:33:34.616Z] 19:33:34     INFO - Stack trace:
[task 2022-04-13T19:33:34.616Z] 19:33:34     INFO - test_focus_promo_in_DE_region_with_English_locale@chrome://mochitests/content/browser/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_focus_promo.js:59:18
[task 2022-04-13T19:33:34.616Z] 19:33:34     INFO - handleTask@chrome://mochikit/content/browser-test.js:989:26
[task 2022-04-13T19:33:34.616Z] 19:33:34     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1061:18
[task 2022-04-13T19:33:34.617Z] 19:33:34     INFO - Leaving test bound test_focus_promo_in_DE_region_with_English_locale
[task 2022-04-13T19:33:34.617Z] 19:33:34     INFO - GECKO(4946) | MEMORY STAT | vsize 20983913MB | residentFast 1592MB
[task 2022-04-13T19:33:34.619Z] 19:33:34     INFO - TEST-OK | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_focus_promo.js | took 3712ms
[task 2022-04-13T19:33:34.619Z] 19:33:34     INFO - checking window state
[task 2022-04-13T19:33:34.619Z] 19:33:34     INFO - TEST-START | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_history_shift_click.js
```