Bug: Intermittent browser/components/privatebrowsing/test/browser/browser_privatebrowsing_focus_promo.js | A promise chain failed to handle a rejection: can't access property "setAttributes", this.document.l10n is null - stack: _updateSearchModeUI@resource://
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2022-04-05 12:25:35+00:00
Resolved: 2022-05-17 17:02:20+00:00

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

---
```
[task 2022-04-05T11:41:50.711Z] 11:41:50     INFO - TEST-START | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_focus_promo.js
[task 2022-04-05T11:41:50.737Z] 11:41:50     INFO - GECKO(2231) | JavaScript error: resource:///modules/UrlbarInput.jsm, line 2734: TypeError: can't access property "setAttributes", this.document.l10n is null
[task 2022-04-05T11:41:51.070Z] 11:41:51     INFO - TEST-INFO | started process screencapture
[task 2022-04-05T11:41:51.192Z] 11:41:51     INFO - TEST-INFO | screencapture: exit 0
[task 2022-04-05T11:41:51.193Z] 11:41:51     INFO - Buffered messages logged at 11:41:50
[task 2022-04-05T11:41:51.193Z] 11:41:51     INFO - Entering test bound test_focus_promo_in_allowed_region
[task 2022-04-05T11:41:51.193Z] 11:41:51     INFO - Console message: [JavaScript Error: "TypeError: can't access property "setAttributes", this.document.l10n is null" {file: "resource:///modules/UrlbarInput.jsm" line: 2734}]
[task 2022-04-05T11:41:51.194Z] 11:41:51     INFO - Buffered messages logged at 11:41:51
[task 2022-04-05T11:41:51.194Z] 11:41:51     INFO - TEST-PASS | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_focus_promo.js | Focus promo is shown for allowed region - {} == true - 
[task 2022-04-05T11:41:51.194Z] 11:41:51     INFO - Buffered messages finished
[task 2022-04-05T11:41:51.195Z] 11:41:51     INFO - TEST-UNEXPECTED-FAIL | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_focus_promo.js | A promise chain failed to handle a rejection: can't access property "setAttributes", this.document.l10n is null - stack: _updateSearchModeUI@resource:///modules/UrlbarInput.jsm:2734:7
[task 2022-04-05T11:41:51.195Z] 11:41:51     INFO - setSearchMode@resource:///modules/UrlbarInput.jsm:1601:12
[task 2022-04-05T11:41:51.195Z] 11:41:51     INFO - set searchMode@resource:///modules/UrlbarInput.jsm:1695:10
[task 2022-04-05T11:41:51.195Z] 11:41:51     INFO - observe@resource:///modules/UrlbarInput.jsm:1867:15
[task 2022-04-05T11:41:51.195Z] 11:41:51     INFO - notifyAction@resource://gre/modules/SearchUtils.jsm:223:20
[task 2022-04-05T11:41:51.196Z] 11:41:51     INFO - _updateFromManifest@resource://gre/modules/SearchEngine.jsm:1089:17
[task 2022-04-05T11:41:51.196Z] 11:41:51     INFO - _reloadEngines@resource://gre/modules/SearchService.jsm:774:14
[task 2022-04-05T11:41:51.196Z] 11:41:51     INFO - Rejection date: Tue Apr 05 2022 11:41:50 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 271
[task 2022-04-05T11:41:51.196Z] 11:41:51     INFO - Stack trace:
[task 2022-04-05T11:41:51.196Z] 11:41:51     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:271
[task 2022-04-05T11:41:51.196Z] 11:41:51     INFO - chrome://mochikit/content/browser-test.js:handleTask:1017
[task 2022-04-05T11:41:51.196Z] 11:41:51     INFO - Leaving test bound test_focus_promo_in_allowed_region
[task 2022-04-05T11:41:51.196Z] 11:41:51     INFO - Entering test bound test_focus_promo_in_disallowed_region
[task 2022-04-05T11:41:51.197Z] 11:41:51     INFO - GECKO(2231) | JavaScript error: resource:///modules/UrlbarInput.jsm, line 2734: TypeError: can't access property "setAttributes", this.document.l10n is null
[task 2022-04-05T11:41:51.197Z] 11:41:51     INFO - GECKO(2231) | JavaScript error: resource:///modules/UrlbarInput.jsm, line 2734: TypeError: can't access property "setAttributes", this.document.l10n is null
[task 2022-04-05T11:41:51.198Z] 11:41:51     INFO - Console message: [JavaScript Error: "TypeError: can't access property "setAttributes", this.document.l10n is null" {file: "resource:///modules/UrlbarInput.jsm" line: 2734}]
[task 2022-04-05T11:41:51.198Z] 11:41:51     INFO - Console message: [JavaScript Error: "TypeError: can't access property "setAttributes", this.document.l10n is null" {file: "resource:///modules/UrlbarInput.jsm" line: 2734}]
[task 2022-04-05T11:41:51.201Z] 11:41:51     INFO - Console message: 1649158911199	addons.xpi	WARN	Addon with ID amazondotcn@search.mozilla.org already installed, older version will be disabled
[task 2022-04-05T11:41:51.432Z] 11:41:51     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-05T11:41:51.482Z] 11:41:51     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-04-05T11:41:51.483Z] 11:41:51     INFO - TEST-UNEXPECTED-FAIL | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_focus_promo.js | A promise chain failed to handle a rejection: can't access property "setAttributes", this.document.l10n is null - stack: _updateSearchModeUI@resource:///modules/UrlbarInput.jsm:2734:7
[task 2022-04-05T11:41:51.484Z] 11:41:51     INFO - setSearchMode@resource:///modules/UrlbarInput.jsm:1601:12
[task 2022-04-05T11:41:51.484Z] 11:41:51     INFO - set searchMode@resource:///modules/UrlbarInput.jsm:1695:10
[task 2022-04-05T11:41:51.484Z] 11:41:51     INFO - observe@resource:///modules/UrlbarInput.jsm:1867:15
[task 2022-04-05T11:41:51.484Z] 11:41:51     INFO - notifyAction@resource://gre/modules/SearchUtils.jsm:223:20
[task 2022-04-05T11:41:51.484Z] 11:41:51     INFO - _updateFromManifest@resource://gre/modules/SearchEngine.jsm:1089:17
[task 2022-04-05T11:41:51.484Z] 11:41:51     INFO - _reloadEngines@resource://gre/modules/SearchService.jsm:774:14
[task 2022-04-05T11:41:51.484Z] 11:41:51     INFO - Rejection date: Tue Apr 05 2022 11:41:51 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 271
```