Bug: Intermittent browser/components/privatebrowsing/test/browser/browser_privatebrowsing_focus_promo.js | A promise chain failed to handle a rejection: this.document.l10n is null - stack: _updateSearchModeUI@resource:///modules/UrlbarInput.jsm:2734:7
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2022-04-10 22:46:07+00:00
Resolved: 2022-05-31 17:02:28+00:00

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

---
```
[task 2022-04-10T22:06:47.854Z] 22:06:47     INFO - TEST-PASS | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_focus_promo.js | Focus promo is shown for allowed region - {} == true - 
[task 2022-04-10T22:06:47.855Z] 22:06:47     INFO - Buffered messages finished
[task 2022-04-10T22:06:47.856Z] 22:06:47     INFO - TEST-UNEXPECTED-FAIL | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_focus_promo.js | A promise chain failed to handle a rejection: this.document.l10n is null - stack: _updateSearchModeUI@resource:///modules/UrlbarInput.jsm:2734:7
[task 2022-04-10T22:06:47.856Z] 22:06:47     INFO - setSearchMode@resource:///modules/UrlbarInput.jsm:1601:12
[task 2022-04-10T22:06:47.856Z] 22:06:47     INFO - set searchMode@resource:///modules/UrlbarInput.jsm:1695:10
[task 2022-04-10T22:06:47.856Z] 22:06:47     INFO - observe@resource:///modules/UrlbarInput.jsm:1867:15
[task 2022-04-10T22:06:47.857Z] 22:06:47     INFO - notifyAction@resource://gre/modules/SearchUtils.jsm:223:20
[task 2022-04-10T22:06:47.857Z] 22:06:47     INFO - _updateFromManifest@resource://gre/modules/SearchEngine.jsm:1089:17
[task 2022-04-10T22:06:47.857Z] 22:06:47     INFO - _reloadEngines@resource://gre/modules/SearchService.jsm:774:14
[task 2022-04-10T22:06:47.857Z] 22:06:47     INFO - Rejection date: Sun Apr 10 2022 22:06:47 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 271
[task 2022-04-10T22:06:47.857Z] 22:06:47     INFO - Stack trace:
[task 2022-04-10T22:06:47.857Z] 22:06:47     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:271
[task 2022-04-10T22:06:47.857Z] 22:06:47     INFO - chrome://mochikit/content/browser-test.js:handleTask:1017
[task 2022-04-10T22:06:47.858Z] 22:06:47     INFO - Leaving test bound test_focus_promo_in_allowed_region
[task 2022-04-10T22:06:47.858Z] 22:06:47     INFO - Entering test bound test_focus_promo_in_disallowed_region
[task 2022-04-10T22:06:47.858Z] 22:06:47     INFO - GECKO(2322) | JavaScript error: resource:///modules/UrlbarInput.jsm, line 2734: TypeError: this.document.l10n is null
[task 2022-04-10T22:06:47.859Z] 22:06:47     INFO - GECKO(2322) | JavaScript error: resource:///modules/UrlbarInput.jsm, line 2734: TypeError: this.document.l10n is null
[task 2022-04-10T22:06:47.859Z] 22:06:47     INFO - Console message: [JavaScript Error: "TypeError: this.document.l10n is null" {file: "resource:///modules/UrlbarInput.jsm" line: 2734}]
[task 2022-04-10T22:06:47.860Z] 22:06:47     INFO - Console message: [JavaScript Error: "TypeError: this.document.l10n is null" {file: "resource:///modules/UrlbarInput.jsm" line: 2734}]
[task 2022-04-10T22:06:47.860Z] 22:06:47     INFO - Console message: 1649628407842	addons.xpi	WARN	Addon with ID amazondotcn@search.mozilla.org already installed, older version will be disabled
[task 2022-04-10T22:06:48.180Z] 22:06:48     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-10T22:06:48.188Z] 22:06:48     INFO - GECKO(2322) | JavaScript error: , line 0: AbortError: Actor 'AboutPrivateBrowsing' destroyed before query 'ShouldShowPromo' was resolved
[task 2022-04-10T22:06:48.200Z] 22:06:48     INFO - GECKO(2322) | JavaScript error: resource:///actors/ContentSearchParent.jsm, line 664: TypeError: browser is null
[task 2022-04-10T22:06:48.200Z] 22:06:48     INFO - GECKO(2322) | JavaScript error: resource:///actors/ContentSearchParent.jsm, line 664: TypeError: browser is null
[task 2022-04-10T22:06:48.204Z] 22:06:48     INFO - Console message: [JavaScript Error: "TypeError: browser is null" {file: "resource:///actors/ContentSearchParent.jsm" line: 664}]
[task 2022-04-10T22:06:48.204Z] 22:06:48     INFO - receiveMessage@resource:///actors/ContentSearchParent.jsm:664:5
[task 2022-04-10T22:06:48.204Z] 22:06:48     INFO - 
[task 2022-04-10T22:06:48.205Z] 22:06:48     INFO - Console message: [JavaScript Error: "TypeError: browser is null" {file: "resource:///actors/ContentSearchParent.jsm" line: 664}]
[task 2022-04-10T22:06:48.205Z] 22:06:48     INFO - receiveMessage@resource:///actors/ContentSearchParent.jsm:664:5
[task 2022-04-10T22:06:48.205Z] 22:06:48     INFO - 
[task 2022-04-10T22:06:48.206Z] 22:06:48     INFO - Console message: [JavaScript Error: "AbortError: Actor 'AboutPrivateBrowsing' destroyed before query 'ShouldShowPromo' was resolved"]
[task 2022-04-10T22:06:48.207Z] 22:06:48     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-04-10T22:06:48.209Z] 22:06:48     INFO - TEST-UNEXPECTED-FAIL | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_focus_promo.js | A promise chain failed to handle a rejection: this.document.l10n is null - stack: _updateSearchModeUI@resource:///modules/UrlbarInput.jsm:2734:7
[task 2022-04-10T22:06:48.209Z] 22:06:48     INFO - setSearchMode@resource:///modules/UrlbarInput.jsm:1601:12
[task 2022-04-10T22:06:48.209Z] 22:06:48     INFO - set searchMode@resource:///modules/UrlbarInput.jsm:1695:10
[task 2022-04-10T22:06:48.209Z] 22:06:48     INFO - observe@resource:///modules/UrlbarInput.jsm:1867:15
[task 2022-04-10T22:06:48.209Z] 22:06:48     INFO - notifyAction@resource://gre/modules/SearchUtils.jsm:223:20
[task 2022-04-10T22:06:48.209Z] 22:06:48     INFO - _updateFromManifest@resource://gre/modules/SearchEngine.jsm:1089:17
[task 2022-04-10T22:06:48.209Z] 22:06:48     INFO - _reloadEngines@resource://gre/modules/SearchService.jsm:774:14
[task 2022-04-10T22:06:48.209Z] 22:06:48     INFO - Rejection date: Sun Apr 10 2022 22:06:47 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 271
[task 2022-04-10T22:06:48.209Z] 22:06:48     INFO - Stack trace:
[task 2022-04-10T22:06:48.209Z] 22:06:48     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:271
[task 2022-04-10T22:06:48.209Z] 22:06:48     INFO - chrome://mochikit/content/browser-test.js:handleTask:1017
[task 2022-04-10T22:06:48.210Z] 22:06:48     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-04-10T22:06:48.211Z] 22:06:48     INFO - TEST-UNEXPECTED-FAIL | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_focus_promo.js | A promise chain failed to handle a rejection: this.document.l10n is null - stack: _updateSearchModeUI@resource:///modules/UrlbarInput.jsm:2734:7
[task 2022-04-10T22:06:48.211Z] 22:06:48     INFO - setSearchMode@resource:///modules/UrlbarInput.jsm:1601:12
[task 2022-04-10T22:06:48.211Z] 22:06:48     INFO - set searchMode@resource:///modules/UrlbarInput.jsm:1695:10
[task 2022-04-10T22:06:48.211Z] 22:06:48     INFO - observe@resource:///modules/UrlbarInput.jsm:1867:15
[task 2022-04-10T22:06:48.211Z] 22:06:48     INFO - notifyAction@resource://gre/modules/SearchUtils.jsm:223:20
[task 2022-04-10T22:06:48.211Z] 22:06:48     INFO - _updateFromManifest@resource://gre/modules/SearchEngine.jsm:1089:17
[task 2022-04-10T22:06:48.211Z] 22:06:48     INFO - _reloadEngines@resource://gre/modules/SearchService.jsm:774:14
[task 2022-04-10T22:06:48.211Z] 22:06:48     INFO - Rejection date: Sun Apr 10 2022 22:06:47 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 271
[task 2022-04-10T22:06:48.211Z] 22:06:48     INFO - Stack trace:
[task 2022-04-10T22:06:48.211Z] 22:06:48     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:271
[task 2022-04-10T22:06:48.211Z] 22:06:48     INFO - chrome://mochikit/content/browser-test.js:handleTask:1017
[task 2022-04-10T22:06:48.212Z] 22:06:48     INFO - Leaving test bound test_focus_promo_in_disallowed_region
[task 2022-04-10T22:06:48.218Z] 22:06:48     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-04-10T22:06:48.220Z] 22:06:48     INFO - TEST-UNEXPECTED-FAIL | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_focus_promo.js | A promise chain failed to handle a rejection: this.document.l10n is null - stack: _updateSearchModeUI@resource:///modules/UrlbarInput.jsm:2734:7
[task 2022-04-10T22:06:48.220Z] 22:06:48     INFO - setSearchMode@resource:///modules/UrlbarInput.jsm:1601:12
[task 2022-04-10T22:06:48.220Z] 22:06:48     INFO - set searchMode@resource:///modules/UrlbarInput.jsm:1695:10
[task 2022-04-10T22:06:48.220Z] 22:06:48     INFO - observe@resource:///modules/UrlbarInput.jsm:1867:15
[task 2022-04-10T22:06:48.220Z] 22:06:48     INFO - notifyAction@resource://gre/modules/SearchUtils.jsm:223:20
[task 2022-04-10T22:06:48.220Z] 22:06:48     INFO - _updateFromManifest@resource://gre/modules/SearchEngine.jsm:1089:17
[task 2022-04-10T22:06:48.220Z] 22:06:48     INFO - _reloadEngines@resource://gre/modules/SearchService.jsm:774:14
[task 2022-04-10T22:06:48.220Z] 22:06:48     INFO - ensureDOMPromiseRejectionsProcessed@resource://testing-common/PromiseTestUtils.jsm:120:17
[task 2022-04-10T22:06:48.220Z] 22:06:48     INFO - nextTest@chrome://mochikit/content/browser-test.js:624:29
[task 2022-04-10T22:06:48.221Z] 22:06:48     INFO - Rejection date: Sun Apr 10 2022 22:06:48 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 271
[task 2022-04-10T22:06:48.221Z] 22:06:48     INFO - Stack trace:
[task 2022-04-10T22:06:48.221Z] 22:06:48     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:271
[task 2022-04-10T22:06:48.221Z] 22:06:48     INFO - chrome://mochikit/content/browser-test.js:nextTest:625
[task 2022-04-10T22:06:48.221Z] 22:06:48     INFO - GECKO(2322) | JavaScript error: resource:///modules/UrlbarInput.jsm, line 2734: TypeError: this.document.l10n is null
[task 2022-04-10T22:06:48.223Z] 22:06:48     INFO - Console message: [JavaScript Error: "TypeError: this.document.l10n is null" {file: "resource:///modules/UrlbarInput.jsm" line: 2734}]
[task 2022-04-10T22:06:48.223Z] 22:06:48     INFO - GECKO(2322) | MEMORY STAT | vsize 16789MB | residentFast 734MB | heapAllocated 367MB
[task 2022-04-10T22:06:48.224Z] 22:06:48     INFO - TEST-OK | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_focus_promo.js | took 964ms
[task 2022-04-10T22:06:48.230Z] 22:06:48     INFO - checking window state
[task 2022-04-10T22:06:48.237Z] 22:06:48     INFO - TEST-START | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_history_shift_click.js
```