Bug: High freq Linux browser/base/content/test/tabPrompts/browser_contentOrigins.js | Found an unexpected unknown window with document URI: chrome://global/content/commonDialog.xhtml and title: Authentication Req - when Gecko 133 switches to beta on 2024-10-28
Status: RESOLVED
Priority: --
Resolution: FIXED
Created: 2024-10-18 14:13:38+00:00
Resolved: 2024-10-28 07:23:05+00:00

[Central-as-beta-simulation](https://treeherder.mozilla.org/jobs?repo=try&resultStatus=testfailed%2Cbusted%2Cexception%2Crunnable&revision=56c07833102e182ac82910b762505a3c2871046f&searchStr=Linux%2C18.04%2Cx64%2CWebRender%2Cdebug%2CMochitests%2Cwith%2Csoftware%2Cwebrender%2Cenabled%2Ctest-linux1804-64-qr%2Fdebug-mochitest-browser-chrome-swr%2Cbc13)

[How to run these simulations](https://wiki.mozilla.org/Sheriffing/How_To/Beta_simulations#TRUNK_AS_EARLY_BETA)


[Failure log](https://treeherder.mozilla.org/logviewer?job_id=478862465&repo=try&lineNumber=9493)
* Failure line:
```
[task 2024-10-18T12:16:05.362Z] 12:16:05     INFO - TEST-START | browser/base/content/test/tabPrompts/browser_contentOrigins.js
[task 2024-10-18T12:16:05.364Z] 12:16:05     INFO - GECKO(6223) | Chrome file doesn't exist: /builds/worker/workspace/build/tests/mochitest/browser/browser/base/content/test/tabPrompts/head.js
[task 2024-10-18T12:16:05.392Z] 12:16:05     INFO - GECKO(6223) | [Child 7111: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7f8879e74800 == 1 [pid = 7111] [id = 0]
[task 2024-10-18T12:16:05.393Z] 12:16:05     INFO - GECKO(6223) | [Child 7111: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (7f88795b3c00) [pid = 7111] [serial = 1] [outer = 0]
[task 2024-10-18T12:16:05.394Z] 12:16:05     INFO - GECKO(6223) | [Child 7111: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (7f8879e75000) [pid = 7111] [serial = 2] [outer = 7f88795b3c00]
[task 2024-10-18T12:16:05.423Z] 12:16:05     INFO - GECKO(6223) | [Child 6326: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (7f309d07b000) [pid = 6326] [serial = 8] [outer = 0] [url = about:blank]
[task 2024-10-18T12:16:05.425Z] 12:16:05     INFO - GECKO(6223) | [Child 6326: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (7f309d074400) [pid = 6326] [serial = 10] [outer = 0] [url = about:blank]
[task 2024-10-18T12:16:05.510Z] 12:16:05     INFO - GECKO(6223) | [Parent 6223, Main Thread] WARNING: BounceTrackingState::OnDocumentStartRequest failed.: 'NS_SUCCEEDED(rv)', file /builds/worker/checkouts/gecko/netwerk/ipc/DocumentLoadListener.cpp:2631
[task 2024-10-18T12:16:05.524Z] 12:16:05     INFO - GECKO(6223) | [Child 7111: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (7f8879e78000) [pid = 7111] [serial = 3] [outer = 7f88795b3c00]
[task 2024-10-18T12:16:05.787Z] 12:16:05     INFO - GECKO(6223) | [Parent 6223: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7ff0ac998400 == 13 [pid = 6223] [id = 46]
[task 2024-10-18T12:16:05.788Z] 12:16:05     INFO - GECKO(6223) | [Parent 6223: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 54 (7ff0ac978c00) [pid = 6223] [serial = 107] [outer = 0]
[task 2024-10-18T12:16:05.788Z] 12:16:05     INFO - GECKO(6223) | [Parent 6223: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 55 (7ff0cbf47800) [pid = 6223] [serial = 108] [outer = 7ff0ac978c00]
[task 2024-10-18T12:16:05.794Z] 12:16:05     INFO - GECKO(6223) | [Parent 6223: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7ff0cbf47c00 == 14 [pid = 6223] [id = 47]
[task 2024-10-18T12:16:05.794Z] 12:16:05     INFO - GECKO(6223) | [Parent 6223: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 56 (7ff0b4b7e800) [pid = 6223] [serial = 109] [outer = 0]
[task 2024-10-18T12:16:05.795Z] 12:16:05     INFO - GECKO(6223) | [Parent 6223: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 57 (7ff0cbf48000) [pid = 6223] [serial = 110] [outer = 7ff0b4b7e800]
[task 2024-10-18T12:16:05.800Z] 12:16:05     INFO - GECKO(6223) | [Parent 6223: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7ff0cbf4ac00 == 15 [pid = 6223] [id = 48]
[task 2024-10-18T12:16:05.800Z] 12:16:05     INFO - GECKO(6223) | [Parent 6223: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 58 (7ff0b4b7ea00) [pid = 6223] [serial = 111] [outer = 0]
[task 2024-10-18T12:16:05.801Z] 12:16:05     INFO - GECKO(6223) | [Parent 6223: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 59 (7ff0cbf43400) [pid = 6223] [serial = 112] [outer = 7ff0b4b7ea00]
[task 2024-10-18T12:16:05.806Z] 12:16:05     INFO - GECKO(6223) | [Parent 6223: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7ff0cbf44800 == 16 [pid = 6223] [id = 49]
[task 2024-10-18T12:16:05.806Z] 12:16:05     INFO - GECKO(6223) | [Parent 6223: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 60 (7ff0b4b7f200) [pid = 6223] [serial = 113] [outer = 0]
[task 2024-10-18T12:16:05.807Z] 12:16:05     INFO - GECKO(6223) | [Parent 6223: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 61 (7ff0cbf46400) [pid = 6223] [serial = 114] [outer = 7ff0b4b7f200]
[task 2024-10-18T12:16:05.812Z] 12:16:05     INFO - GECKO(6223) | [Parent 6223: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7ff0cbf48400 == 17 [pid = 6223] [id = 50]
[task 2024-10-18T12:16:05.812Z] 12:16:05     INFO - GECKO(6223) | [Parent 6223: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 62 (7ff0b7f0b800) [pid = 6223] [serial = 115] [outer = 0]
[task 2024-10-18T12:16:05.813Z] 12:16:05     INFO - GECKO(6223) | [Parent 6223: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 63 (7ff0cbf45000) [pid = 6223] [serial = 116] [outer = 7ff0b7f0b800]
[task 2024-10-18T12:16:05.865Z] 12:16:05     INFO - GECKO(6223) | [Parent 6223, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/chrome/nsChromeRegistry.cpp:182
[task 2024-10-18T12:16:05.865Z] 12:16:05     INFO - GECKO(6223) | [Parent 6223, Main Thread] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/chrome/nsChromeProtocolHandler.cpp:73
[task 2024-10-18T12:16:05.877Z] 12:16:05     INFO - GECKO(6223) | [Parent 6223: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 64 (7ff0cbf4d000) [pid = 6223] [serial = 117] [outer = 7ff0b4b7f200]
[task 2024-10-18T12:16:06.034Z] 12:16:06     INFO - GECKO(6223) | [Child 7117: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7fcc9f975400 == 1 [pid = 7117] [id = 0]
[task 2024-10-18T12:16:06.034Z] 12:16:06     INFO - GECKO(6223) | [Child 7117: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (7fcc9f1ecc00) [pid = 7117] [serial = 1] [outer = 0]
[task 2024-10-18T12:16:06.035Z] 12:16:06     INFO - GECKO(6223) | [Child 7117: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (7fcc9f975c00) [pid = 7117] [serial = 2] [outer = 7fcc9f1ecc00]
[task 2024-10-18T12:16:06.136Z] 12:16:06     INFO - GECKO(6223) | [Parent 6223, Main Thread] WARNING: BounceTrackingState::OnDocumentStartRequest failed.: 'NS_SUCCEEDED(rv)', file /builds/worker/checkouts/gecko/netwerk/ipc/DocumentLoadListener.cpp:2631
[task 2024-10-18T12:16:06.144Z] 12:16:06     INFO - GECKO(6223) | [Child 7111: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f8879e74800 == 0 [pid = 7111] [id = 0] [url = https://example.com/]
<...>
[task 2024-10-18T12:16:12.880Z] 12:16:12     INFO - GECKO(6223) | [Parent 6223, Main Thread] WARNING: NS_ENSURE_TRUE(uri) failed: file /builds/worker/checkouts/gecko/caps/BasePrincipal.cpp:1497
[task 2024-10-18T12:16:12.940Z] 12:16:12     INFO - GECKO(6223) | [Child 7325: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f4cfb183c00 == 1 [pid = 7325] [id = 1] [url = about:blank]
[task 2024-10-18T12:16:12.943Z] 12:16:12     INFO - GECKO(6223) | [Child 7325: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f4cfb182800 == 0 [pid = 7325] [id = 0] [url = http://example.org/1]
[task 2024-10-18T12:16:12.965Z] 12:16:12     INFO - GECKO(6223) | [Child 7325: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (7f4cfb184400) [pid = 7325] [serial = 5] [outer = 0] [url = about:blank]
[task 2024-10-18T12:16:12.966Z] 12:16:12     INFO - GECKO(6223) | [Child 7325: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (7f4cfb183000) [pid = 7325] [serial = 2] [outer = 0] [url = about:blank]
[task 2024-10-18T12:16:12.967Z] 12:16:12     INFO - GECKO(6223) | [Child 7325: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (7f4cfb185800) [pid = 7325] [serial = 3] [outer = 0] [url = http://example.org/1]
[task 2024-10-18T12:16:12.967Z] 12:16:12     INFO - GECKO(6223) | [Child 7325: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (7f4d173a8a00) [pid = 7325] [serial = 4] [outer = 0] [url = about:blank]
[task 2024-10-18T12:16:12.968Z] 12:16:12     INFO - GECKO(6223) | [Child 7325: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (7f4cfa871c00) [pid = 7325] [serial = 1] [outer = 0] [url = http://example.org/1]
[task 2024-10-18T12:16:12.977Z] 12:16:12     INFO - GECKO(6223) | [Parent 6223, Main Thread] WARNING: NS_ENSURE_TRUE(root) failed: file /builds/worker/checkouts/gecko/layout/base/nsDocumentViewer.cpp:2595
[task 2024-10-18T12:16:13.028Z] 12:16:13     INFO - GECKO(6223) | [WARN  webrender::renderer::init] asking to enable_gpu_markers but no supporting extension was found
[task 2024-10-18T12:16:13.404Z] 12:16:13     INFO - GECKO(6223) | [Child 6386: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (7f257d382c00) [pid = 6386] [serial = 6] [outer = 0] [url = about:blank]
[task 2024-10-18T12:16:13.404Z] 12:16:13     INFO - GECKO(6223) | [Child 6386: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (7f257d384400) [pid = 6386] [serial = 11] [outer = 0] [url = data:text/html,<body>]
[task 2024-10-18T12:16:13.405Z] 12:16:13     INFO - GECKO(6223) | [Child 6386: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (7f257d380800) [pid = 6386] [serial = 8] [outer = 0] [url = about:blank]
[task 2024-10-18T12:16:13.406Z] 12:16:13     INFO - GECKO(6223) | [Child 6386: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (7f257d383400) [pid = 6386] [serial = 10] [outer = 0] [url = about:blank]
[task 2024-10-18T12:16:13.414Z] 12:16:13     INFO - GECKO(6223) | MEMORY STAT | vsize 11461MB | residentFast 533MB | heapAllocated 324MB
[task 2024-10-18T12:16:13.415Z] 12:16:13     INFO - TEST-OK | browser/base/content/test/tabPrompts/browser_contentOrigins.js | took 8054ms
[task 2024-10-18T12:16:13.422Z] 12:16:13     INFO - GECKO(6223) | [Child 6386: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7f257d37f400 == 1 [pid = 6386] [id = 5]
[task 2024-10-18T12:16:13.422Z] 12:16:13     INFO - GECKO(6223) | [Child 6386: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (7f257cb69a00) [pid = 6386] [serial = 12] [outer = 0]
[task 2024-10-18T12:16:13.423Z] 12:16:13     INFO - GECKO(6223) | [Child 6386: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (7f257d37f800) [pid = 6386] [serial = 13] [outer = 7f257cb69a00]
[task 2024-10-18T12:16:13.452Z] 12:16:13     INFO - checking window state
[task 2024-10-18T12:16:13.452Z] 12:16:13     INFO - TEST-INFO | started process screentopng
[task 2024-10-18T12:16:13.645Z] 12:16:13     INFO - TEST-INFO | screentopng: exit 0
[task 2024-10-18T12:16:13.646Z] 12:16:13     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/tabPrompts/browser_contentOrigins.js | Found an unexpected unknown window with document URI: chrome://global/content/commonDialog.xhtml and title: Authentication Required - Firefox Nightly at the end of test run - 
[task 2024-10-18T12:16:13.647Z] 12:16:13     INFO - GECKO(6223) | must wait for focus
[task 2024-10-18T12:16:13.648Z] 12:16:13     INFO - GECKO(6223) | [Parent 6223, Main Thread] WARNING: Should not try to set the focus on a disabled window: file /builds/worker/checkouts/gecko/dom/base/nsGlobalWindowOuter.cpp:4856
[task 2024-10-18T12:16:13.649Z] 12:16:13     INFO - GECKO(6223) | [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
[task 2024-10-18T12:16:13.649Z] 12:16:13     INFO - TEST-START | browser/base/content/test/tabPrompts/browser_multiplePrompts.js

```