Bug: Intermittent browser/base/content/test/general/browser_tab_close_dependent_window.js | Test timed out | Found a browser window after previous test timed out
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2022-06-01 14:43:24+00:00
Resolved: 2022-08-12 20:34:43+00:00

**Filed by:** mlaza [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=379902971&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/a-2Lm1vJSi-z-CAZ7oE5Dg/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2022-06-01T14:02:24.304Z] 14:02:24     INFO - TEST-START | browser/base/content/test/general/browser_tab_close_dependent_window.js
[task 2022-06-01T14:02:24.313Z] 14:02:24     INFO - GECKO(1623) | [Parent 1623: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7fafe5e6f400 == 9 [pid = 1623] [id = 236]
[task 2022-06-01T14:02:24.315Z] 14:02:24     INFO - GECKO(1623) | [Parent 1623: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 27 (7fb011534b70) [pid = 1623] [serial = 520] [outer = 0]
[task 2022-06-01T14:02:24.317Z] 14:02:24     INFO - GECKO(1623) | [Parent 1623: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 28 (7fafe5e74800) [pid = 1623] [serial = 521] [outer = 7fb011534b70]
[task 2022-06-01T14:02:24.321Z] 14:02:24     INFO - GECKO(1623) | [Parent 1623, Main Thread] WARNING: NS_ENSURE_TRUE(uri) failed: file /builds/worker/checkouts/gecko/caps/BasePrincipal.cpp:1358
[task 2022-06-01T14:02:24.532Z] 14:02:24     INFO - GECKO(1623) | [Parent 1623: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7fafe7d42800 == 10 [pid = 1623] [id = 237]
[task 2022-06-01T14:02:24.533Z] 14:02:24     INFO - GECKO(1623) | [Parent 1623: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 29 (7fb011537350) [pid = 1623] [serial = 522] [outer = 0]
[task 2022-06-01T14:02:24.535Z] 14:02:24     INFO - GECKO(1623) | [Parent 1623: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 30 (7fafe7d40000) [pid = 1623] [serial = 523] [outer = 7fb011537350]
[task 2022-06-01T14:02:24.590Z] 14:02:24     INFO - GECKO(1623) | [GLX] window 1e008bb has VisualID 0x41
...
[task 2022-06-01T14:03:26.015Z] 14:03:26     INFO - GECKO(1623) | [Child 1823: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (7f8b5f812000) [pid = 1823] [serial = 162] [outer = 0] [url = about:blank]
[task 2022-06-01T14:03:54.324Z] 14:03:54     INFO - TEST-INFO | started process screentopng
[task 2022-06-01T14:03:54.643Z] 14:03:54     INFO - TEST-INFO | screentopng: exit 0
[task 2022-06-01T14:03:54.644Z] 14:03:54     INFO - Buffered messages logged at 14:02:24
[task 2022-06-01T14:03:54.645Z] 14:03:54     INFO - Entering test bound closing_tab_with_dependents_should_close_window
[task 2022-06-01T14:03:54.646Z] 14:03:54     INFO - Opening window
[task 2022-06-01T14:03:54.646Z] 14:03:54     INFO - Buffered messages logged at 14:02:27
[task 2022-06-01T14:03:54.647Z] 14:03:54     INFO - Opening tab with data URI
[task 2022-06-01T14:03:54.649Z] 14:03:54     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”." {file: "data:text/html,<html%20onclick="W=window.open()"><body%20onbeforeunload="W.close()">" line: 0}]
[task 2022-06-01T14:03:54.649Z] 14:03:54     INFO - Buffered messages finished
[task 2022-06-01T14:03:54.650Z] 14:03:54     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/general/browser_tab_close_dependent_window.js | Test timed out - 
[task 2022-06-01T14:03:54.650Z] 14:03:54     INFO - GECKO(1623) | MEMORY STAT | vsize 12778MB | residentFast 993MB | heapAllocated 608MB
[task 2022-06-01T14:03:54.651Z] 14:03:54     INFO - TEST-OK | browser/base/content/test/general/browser_tab_close_dependent_window.js | took 90032ms
[task 2022-06-01T14:03:54.651Z] 14:03:54     INFO - GECKO(1623) | [Child 1892: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7f2db102f000 == 1 [pid = 1892] [id = 7]
[task 2022-06-01T14:03:54.653Z] 14:03:54     INFO - GECKO(1623) | [Child 1892: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (7f2dcc095820) [pid = 1892] [serial = 19] [outer = 0]
[task 2022-06-01T14:03:54.654Z] 14:03:54     INFO - GECKO(1623) | [Child 1892: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (7f2db102fc00) [pid = 1892] [serial = 20] [outer = 7f2dcc095820]
[task 2022-06-01T14:03:54.654Z] 14:03:54     INFO - checking window state
[task 2022-06-01T14:03:54.655Z] 14:03:54     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-06-01T14:03:54.655Z] 14:03:54     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/general/browser_tab_close_dependent_window.js | Found a browser window after previous test timed out - 
[task 2022-06-01T14:03:54.655Z] 14:03:54     INFO - GECKO(1623) | JavaScript error: data:text/html,<html%20onclick="W=window.open()"><body%20onbeforeunload="W.close()">, line 1: ReferenceError: W is not defined
[task 2022-06-01T14:03:54.656Z] 14:03:54     INFO - GECKO(1623) | must wait for focus
[task 2022-06-01T14:03:54.657Z] 14:03:54     INFO - GECKO(1623) | [Parent 1623, Main Thread] WARNING: '!CanHandleWith(aPresContext)', file /builds/worker/checkouts/gecko/dom/events/IMEStateManager.cpp:499
[task 2022-06-01T14:03:54.657Z] 14:03:54     INFO - GECKO(1623) | [Child 1860, Main Thread] WARNING: '!CanHandleWith(aPresContext)', file /builds/worker/checkouts/gecko/dom/events/IMEStateManager.cpp:499
[task 2022-06-01T14:03:54.850Z] 14:03:54     INFO - GECKO(1623) | [Parent 1623, Compositor] WARNING: Possibly dropping task posted to updater thread: file /builds/worker/checkouts/gecko/gfx/layers/apz/src/APZUpdater.cpp:365
[task 2022-06-01T14:03:54.850Z] 14:03:54     INFO - GECKO(1623) | [Parent 1623, Compositor] WARNING: Possibly dropping task posted to updater thread: file /builds/worker/checkouts/gecko/gfx/layers/apz/src/APZUpdater.cpp:365
[task 2022-06-01T14:03:54.850Z] 14:03:54     INFO - GECKO(1623) | [Parent 1623, Compositor] WARNING: Possibly dropping task posted to updater thread: file /builds/worker/checkouts/gecko/gfx/layers/apz/src/APZUpdater.cpp:365
[task 2022-06-01T14:03:54.855Z] 14:03:54     INFO - TEST-START | browser/base/content/test/general/browser_tab_detach_restore.js
```