Bug: Intermittent browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about_default_promo.js | Focus promo is not shown in a new tab after being dismissed in another tab - false == true - got false, expected true (operator ==)
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2022-05-09 03:09:48+00:00
Resolved: 2022-06-21 17:03:08+00:00

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

---
```
[task 2022-05-09T02:08:08.813Z] 02:08:08     INFO - TEST-START | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about_default_promo.js
[task 2022-05-09T02:08:08.835Z] 02:08:08     INFO - GECKO(3125) | [Parent 3125: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7f9afc1bc000 == 17 [pid = 3125] [id = 18]
[task 2022-05-09T02:08:08.836Z] 02:08:08     INFO - GECKO(3125) | [Parent 3125: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 39 (7f9b250890e0) [pid = 3125] [serial = 39] [outer = 0]
[task 2022-05-09T02:08:08.839Z] 02:08:08     INFO - GECKO(3125) | [Parent 3125: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 40 (7f9afc1bac00) [pid = 3125] [serial = 40] [outer = 7f9b250890e0]
[task 2022-05-09T02:08:08.849Z] 02:08:08     INFO - GECKO(3125) | [Parent 3125, Main Thread] WARNING: NS_ENSURE_TRUE(uri) failed: file /builds/worker/checkouts/gecko/caps/BasePrincipal.cpp:1358
[task 2022-05-09T02:08:09.001Z] 02:08:09     INFO - GECKO(3125) | [Child 3221: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 9 (7f3b6b616800) [pid = 3221] [serial = 6] [outer = 0] [url = about:blank]
[task 2022-05-09T02:08:09.003Z] 02:08:09     INFO - GECKO(3125) | [Child 3221: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 8 (7f3b6b618800) [pid = 3221] [serial = 7] [outer = 0] [url = https://example.com/browser/browser/components/privatebrowsing/test/browser/file_triggeringprincipal_oa.html]
[task 2022-05-09T02:08:09.004Z] 02:08:09     INFO - GECKO(3125) | [Child 3221: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 7 (7f3b6b60d400) [pid = 3221] [serial = 2] [outer = 0] [url = about:blank]
[task 2022-05-09T02:08:09.005Z] 02:08:09     INFO - GECKO(3125) | [Child 3221: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f3b6b61b000 == 1 [pid = 3221] [id = 2] [url = about:blank]
[task 2022-05-09T02:08:09.026Z] 02:08:09     INFO - GECKO(3125) | [Parent 3125: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7f9b09376000 == 18 [pid = 3125] [id = 19]
[task 2022-05-09T02:08:09.026Z] 02:08:09     INFO - GECKO(3125) | [Parent 3125: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 41 (7f9b2508a6a0) [pid = 3125] [serial = 41] [outer = 0]
[task 2022-05-09T02:08:09.052Z] 02:08:09     INFO - GECKO(3125) | [Child 3221: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 6 (7f3b86496de0) [pid = 3221] [serial = 8] [outer = 0] [url = about:blank]
[task 2022-05-09T02:08:09.054Z] 02:08:09     INFO - GECKO(3125) | [Child 3221: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 5 (7f3b86495bc0) [pid = 3221] [serial = 1] [outer = 0] [url = about:blank]
[task 2022-05-09T02:08:09.076Z] 02:08:09     INFO - GECKO(3125) | [2022-05-09T02:08:09Z WARN  webrender::renderer] asking to enable_gpu_markers but no supporting extension was found
[task 2022-05-09T02:08:09.085Z] 02:08:09     INFO - GECKO(3125) | [Child 3270: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7f4bdd5fb800 == 4 [pid = 3270] [id = 7]
<...>
[task 2022-05-09T02:08:15.169Z] 02:08:15     INFO - TEST-PASS | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about_default_promo.js | Focus promo is shown in a new tab - {} == true - 
[task 2022-05-09T02:08:15.171Z] 02:08:15     INFO - Buffered messages finished
[task 2022-05-09T02:08:15.172Z] 02:08:15     INFO - TEST-UNEXPECTED-FAIL | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about_default_promo.js | Focus promo is not shown in a new tab after being dismissed in another tab - false == true - got false, expected true (operator ==)
[task 2022-05-09T02:08:15.173Z] 02:08:15     INFO - Stack trace:
[task 2022-05-09T02:08:15.173Z] 02:08:15     INFO - ok@resource://specialpowers/SpecialPowersSandbox.jsm:87:21
[task 2022-05-09T02:08:15.174Z] 02:08:15     INFO - @chrome://mochitests/content/browser/browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about_default_promo.js:65:7
[task 2022-05-09T02:08:15.175Z] 02:08:15     INFO - execute@resource://specialpowers/SpecialPowersSandbox.jsm:141:12
[task 2022-05-09T02:08:15.176Z] 02:08:15     INFO - _spawnTask@resource://specialpowers/SpecialPowersChild.jsm:1640:15
[task 2022-05-09T02:08:15.176Z] 02:08:15     INFO - receiveMessage@resource://specialpowers/SpecialPowersChild.jsm:298:21
[task 2022-05-09T02:08:15.176Z] 02:08:15     INFO - GECKO(3125) | [Parent 3125, Compositor] WARNING: Possibly dropping task posted to updater thread: file /builds/worker/checkouts/gecko/gfx/layers/apz/src/APZUpdater.cpp:365
[task 2022-05-09T02:08:15.176Z] 02:08:15     INFO - Console message: [JavaScript Warning: "Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content." {file: "about:privatebrowsing" line: 0}]
[task 2022-05-09T02:08:15.176Z] 02:08:15     INFO - Leaving test bound test_remove_promo_from_prerendered_tab_if_blocked
[task 2022-05-09T02:08:15.176Z] 02:08:15     INFO - GECKO(3125) | MEMORY STAT | vsize 11747MB | residentFast 554MB | heapAllocated 280MB
[task 2022-05-09T02:08:15.176Z] 02:08:15     INFO - TEST-OK | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about_default_promo.js | took 5956ms
[task 2022-05-09T02:08:15.176Z] 02:08:15     INFO - GECKO(3125) | [Child 3309: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7f4c6d4c2800 == 1 [pid = 3309] [id = 3]
[task 2022-05-09T02:08:15.176Z] 02:08:15     INFO - GECKO(3125) | [Child 3309: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 5 (7f4c83195bc0) [pid = 3309] [serial = 8] [outer = 0]
[task 2022-05-09T02:08:15.176Z] 02:08:15     INFO - GECKO(3125) | [Child 3309: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 6 (7f4c6d4c4c00) [pid = 3309] [serial = 9] [outer = 7f4c83195bc0]
[task 2022-05-09T02:08:15.177Z] 02:08:15     INFO - checking window state
[task 2022-05-09T02:08:15.177Z] 02:08:15     INFO - GECKO(3125) | must wait for focus
[task 2022-05-09T02:08:15.177Z] 02:08:15     INFO - TEST-START | browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about_nimbus.js
```