Bug: Intermittent browser/base/content/test/fullscreen/browser_bug1620341.js | Uncaught exception - Close buttons should be visible only on the active tab (tabs have width=0 so closebuttons gets set on them) - timed out after 50 tries.
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2021-09-27 11:46:31+00:00
Resolved: 2022-07-26 00:15:01+00:00

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

---
```
[task 2021-09-27T10:06:28.459Z] 10:06:28     INFO - TEST-START | browser/base/content/test/fullscreen/browser_bug1620341.js
[task 2021-09-27T10:06:28.462Z] 10:06:28     INFO - GECKO(1693) | [Child 1699, Main Thread] WARNING: IPC message discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:527
[task 2021-09-27T10:06:28.462Z] 10:06:28     INFO - GECKO(1693) | [Child 1699, Main Thread] WARNING: IPC message discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:527
[task 2021-09-27T10:06:28.473Z] 10:06:28     INFO - GECKO(1693) | [Child 1699, Main Thread] WARNING: IPC message discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:527
[task 2021-09-27T10:06:28.476Z] 10:06:28     INFO - GECKO(1693) | [Child 1697: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 10de11c00 == 2 [pid = 1697] [id = 1]
[task 2021-09-27T10:06:28.476Z] 10:06:28     INFO - GECKO(1693) | [Child 1697: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 4 (111f6c200) [pid = 1697] [serial = 4] [outer = 0]
[task 2021-09-27T10:06:28.477Z] 10:06:28     INFO - GECKO(1693) | [Child 1697: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 5 (111e04000) [pid = 1697] [serial = 5] [outer = 111f6c200]
[task 2021-09-27T10:06:28.479Z] 10:06:28     INFO - GECKO(1693) | [Child 1699: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 10eee0c00 == 0 [pid = 1699] [id = 0] [url = https://example.com/]
[task 2021-09-27T10:06:28.489Z] 10:06:28     INFO - GECKO(1693) | [Child 1699, Main Thread] WARNING: IPC message discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:527
[task 2021-09-27T10:06:28.493Z] 10:06:28     INFO - GECKO(1693) | [Child 1699, Main Thread] WARNING: IPC message discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:527
[task 2021-09-27T10:06:28.495Z] 10:06:28     INFO - GECKO(1693) | [Child 1699: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (1065c9c80) [pid = 1699] [serial = 1] [outer = 0] [url = https://example.com/]
[task 2021-09-27T10:06:28.495Z] 10:06:28     INFO - GECKO(1693) | [Child 1699: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (10ee3b800) [pid = 1699] [serial = 3] [outer = 0] [url = https://example.com/]
[task 2021-09-27T10:06:28.496Z] 10:06:28     INFO - GECKO(1693) | [Child 1699: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (10eee1c00) [pid = 1699] [serial = 2] [outer = 0] [url = about:blank]
[task 2021-09-27T10:06:28.496Z] 10:06:28     INFO - GECKO(1693) | [Child 1699, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3357
[task 2021-09-27T10:06:28.497Z] 10:06:28     INFO - GECKO(1693) | [Child 1699, Main Thread] WARNING: IPC message discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:527
[task 2021-09-27T10:06:28.500Z] 10:06:28     INFO - GECKO(1693) | [Child 1699, Main Thread] WARNING: IPC message discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:527
[task 2021-09-27T10:06:28.500Z] 10:06:28     INFO - GECKO(1693) | [Child 1699, Main Thread] WARNING: IPC message discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:527
[task 2021-09-27T10:06:28.501Z] 10:06:28     INFO - GECKO(1693) | [Child 1699, Main Thread] WARNING: IPC message discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:527
[task 2021-09-27T10:06:28.504Z] 10:06:28     INFO - GECKO(1693) | [Child 1699, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4438
[task 2021-09-27T10:06:28.511Z] 10:06:28     INFO - GECKO(1693) | [Child 1697: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 6 (111e0fc00) [pid = 1697] [serial = 6] [outer = 111f6c200]
[task 2021-09-27T10:06:28.913Z] 10:06:28     INFO - GECKO(1693) | [Child 1700: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 10b212c00 == 1 [pid = 1700] [id = 0]
[task 2021-09-27T10:06:28.913Z] 10:06:28     INFO - GECKO(1693) | [Child 1700: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (1054bfc80) [pid = 1700] [serial = 1] [outer = 0]
[task 2021-09-27T10:06:28.914Z] 10:06:28     INFO - GECKO(1693) | [Child 1700: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (10b22d000) [pid = 1700] [serial = 2] [outer = 1054bfc80]
[task 2021-09-27T10:06:28.975Z] 10:06:28     INFO - GECKO(1693) | [Child 1700, Main Thread] WARNING: NS_ENSURE_TRUE(info) failed: file /builds/worker/checkouts/gecko/extensions/permissions/PermissionDelegateHandler.cpp:348
[task 2021-09-27T10:06:28.976Z] 10:06:28     INFO - GECKO(1693) | [Child 1700: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (10b235000) [pid = 1700] [serial = 3] [outer = 1054bfc80]
[task 2021-09-27T10:06:28.988Z] 10:06:28     INFO - GECKO(1693) | [Child 1700: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 10b239000 == 2 [pid = 1700] [id = 1]
[task 2021-09-27T10:06:28.989Z] 10:06:28     INFO - GECKO(1693) | [Child 1700: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 4 (10b737200) [pid = 1700] [serial = 4] [outer = 0]
[task 2021-09-27T10:06:28.989Z] 10:06:28     INFO - GECKO(1693) | [Child 1700: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 5 (10b239c00) [pid = 1700] [serial = 5] [outer = 10b737200]
[task 2021-09-27T10:06:28.995Z] 10:06:28     INFO - GECKO(1693) | [Child 1700: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 10b7e6800 == 3 [pid = 1700] [id = 2]
[task 2021-09-27T10:06:28.995Z] 10:06:28     INFO - GECKO(1693) | [Child 1700: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 6 (10b737580) [pid = 1700] [serial = 6] [outer = 0]
[task 2021-09-27T10:06:28.996Z] 10:06:28     INFO - GECKO(1693) | [Child 1700: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 7 (10b7e7800) [pid = 1700] [serial = 7] [outer = 10b737580]
[task 2021-09-27T10:06:29.041Z] 10:06:29     INFO - GECKO(1693) | [Child 1701: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 11bb02400 == 1 [pid = 1701] [id = 0]
[task 2021-09-27T10:06:29.042Z] 10:06:29     INFO - GECKO(1693) | [Child 1701: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (112fb7200) [pid = 1701] [serial = 1] [outer = 0]
[task 2021-09-27T10:06:29.042Z] 10:06:29     INFO - GECKO(1693) | [Child 1701: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (11bb03400) [pid = 1701] [serial = 2] [outer = 112fb7200]
[task 2021-09-27T10:06:29.064Z] 10:06:29     INFO - GECKO(1693) | [Child 1701: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 11bb06400 == 2 [pid = 1701] [id = 1]
[task 2021-09-27T10:06:29.064Z] 10:06:29     INFO - GECKO(1693) | [Child 1701: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (112fb7900) [pid = 1701] [serial = 3] [outer = 0]
[task 2021-09-27T10:06:29.064Z] 10:06:29     INFO - GECKO(1693) | [Child 1701: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 4 (11bb07800) [pid = 1701] [serial = 4] [outer = 112fb7900]
[task 2021-09-27T10:06:29.073Z] 10:06:29     INFO - GECKO(1693) | [Parent 1693, Main Thread] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/netwerk/cache2/CacheFileChunk.cpp:402
[task 2021-09-27T10:06:29.074Z] 10:06:29     INFO - GECKO(1693) | [Child 1701: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 5 (11bb0d400) [pid = 1701] [serial = 5] [outer = 112fb7200]
[task 2021-09-27T10:06:29.083Z] 10:06:29     INFO - GECKO(1693) | [Child 1701: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 6 (11c0cd400) [pid = 1701] [serial = 6] [outer = 112fb7900]
[task 2021-09-27T10:06:30.058Z] 10:06:30     INFO - GECKO(1693) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to /var/folders/5m/11tgmp310_b_rfvw14dklrbc000014/T/tmpjysuvlrn.mozrunner/runtests_leaks_tab_pid1703.log
[task 2021-09-27T10:06:30.059Z] 10:06:30     INFO - GECKO(1693) | [1703, Main Thread] WARNING: XPCOM_MEM_BLOAT_LOG is set, disabling native allocations.: file /builds/worker/checkouts/gecko/tools/profiler/core/platform.cpp:251
[task 2021-09-27T10:06:30.183Z] 10:06:30     INFO - GECKO(1693) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to /var/folders/5m/11tgmp310_b_rfvw14dklrbc000014/T/tmpjysuvlrn.mozrunner/runtests_leaks_tab_pid1704.log
[task 2021-09-27T10:06:30.183Z] 10:06:30     INFO - GECKO(1693) | [1704, Main Thread] WARNING: XPCOM_MEM_BLOAT_LOG is set, disabling native allocations.: file /builds/worker/checkouts/gecko/tools/profiler/core/platform.cpp:251
[task 2021-09-27T10:06:33.330Z] 10:06:33     INFO - GECKO(1693) | [Child 1695: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 107fdf000 == 2 [pid = 1695] [id = 1] [url = about:blank]
[task 2021-09-27T10:06:33.330Z] 10:06:33     INFO - GECKO(1693) | [Child 1695: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 107fdd400 == 1 [pid = 1695] [id = 0] [url = about:blank]
[task 2021-09-27T10:06:33.348Z] 10:06:33     INFO - GECKO(1693) | [Child 1695: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 7 (1021b4e40) [pid = 1695] [serial = 1] [outer = 0] [url = about:blank]
[task 2021-09-27T10:06:33.348Z] 10:06:33     INFO - GECKO(1693) | [Child 1695: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 6 (107fcc040) [pid = 1695] [serial = 4] [outer = 0] [url = about:blank]
[task 2021-09-27T10:06:34.603Z] 10:06:34     INFO - GECKO(1693) | [Child 1697: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 111ea7800 == 1 [pid = 1697] [id = 0] [url = about:blank]
[task 2021-09-27T10:06:34.619Z] 10:06:34     INFO - GECKO(1693) | [Child 1697: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 5 (10dcb3c80) [pid = 1697] [serial = 1] [outer = 0] [url = about:blank]
[task 2021-09-27T10:06:37.137Z] 10:06:37     INFO - GECKO(1693) | [Child 1700: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 10b239000 == 2 [pid = 1700] [id = 1] [url = about:blank]
[task 2021-09-27T10:06:37.137Z] 10:06:37     INFO - GECKO(1693) | [Child 1700: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 10b7e6800 == 1 [pid = 1700] [id = 2] [url = about:blank]
[task 2021-09-27T10:06:37.218Z] 10:06:37     INFO - GECKO(1693) | [Child 1698: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 10b5c9800 == 0 [pid = 1698] [id = 0] [url = about:blank]
[task 2021-09-27T10:06:37.226Z] 10:06:37     INFO - GECKO(1693) | [Child 1698: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (1076adac0) [pid = 1698] [serial = 1] [outer = 0] [url = about:blank]
[task 2021-09-27T10:06:37.519Z] 10:06:37     INFO - GECKO(1693) | [Child 1700: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 6 (10b737580) [pid = 1700] [serial = 6] [outer = 0] [url = about:blank]
[task 2021-09-27T10:06:37.519Z] 10:06:37     INFO - GECKO(1693) | [Child 1700: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 5 (10b737200) [pid = 1700] [serial = 4] [outer = 0] [url = about:blank]
[task 2021-09-27T10:06:37.785Z] 10:06:37     INFO - GECKO(1693) | [Child 1695: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 5 (102318000) [pid = 1695] [serial = 3] [outer = 0] [url = about:blank]
[task 2021-09-27T10:06:37.785Z] 10:06:37     INFO - GECKO(1693) | [Child 1695: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (107fde400) [pid = 1695] [serial = 2] [outer = 0] [url = about:blank]
[task 2021-09-27T10:06:37.786Z] 10:06:37     INFO - GECKO(1693) | [Child 1695: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (108402800) [pid = 1695] [serial = 5] [outer = 0] [url = about:blank]
[task 2021-09-27T10:06:37.786Z] 10:06:37     INFO - GECKO(1693) | [Child 1695: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (10840f000) [pid = 1695] [serial = 6] [outer = 0] [url = about:blank]
[task 2021-09-27T10:06:38.196Z] 10:06:38     INFO - GECKO(1693) | [Parent 1693: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 10 (11f53ec00) [pid = 1693] [serial = 6] [outer = 0] [url = about:blank]
[task 2021-09-27T10:06:38.537Z] 10:06:38     INFO - TEST-INFO | started process screencapture
[task 2021-09-27T10:06:38.643Z] 10:06:38     INFO - TEST-INFO | screencapture: exit 0
[task 2021-09-27T10:06:38.643Z] 10:06:38     INFO - Buffered messages logged at 10:06:28
[task 2021-09-27T10:06:38.644Z] 10:06:38     INFO - Entering test bound test_fullscreen_cross_origin
[task 2021-09-27T10:06:38.644Z] 10:06:38     INFO - Buffered messages logged at 10:06:29
[task 2021-09-27T10:06:38.645Z] 10:06:38     INFO - Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "https://example.com/browser/browser/base/content/test/fullscreen/fullscreen_frame.html" line: 0}]
[task 2021-09-27T10:06:38.646Z] 10:06:38     INFO - Console message: [JavaScript Error: "Unknown Collection "main/partitioning-exempt-urls"" {file: "resource://services-settings/RemoteSettingsClient.jsm" line: 160}]
[task 2021-09-27T10:06:38.646Z] 10:06:38     INFO - UnknownCollectionError@resource://services-settings/RemoteSettingsClient.jsm:160:5
[task 2021-09-27T10:06:38.646Z] 10:06:38     INFO - sync@resource://services-settings/RemoteSettingsClient.jsm:503:13
[task 2021-09-27T10:06:38.646Z] 10:06:38     INFO - 
[task 2021-09-27T10:06:38.646Z] 10:06:38     INFO - Start fullscreen on iframe frameAllowed
[task 2021-09-27T10:06:38.647Z] 10:06:38     INFO - TEST-PASS | browser/base/content/test/fullscreen/browser_bug1620341.js | Close buttons should be visible on every tab - 
[task 2021-09-27T10:06:38.647Z] 10:06:38     INFO - TEST-PASS | browser/base/content/test/fullscreen/browser_bug1620341.js | Request should be allowed - "fullscreenchange" == "fullscreenchange" - 
[task 2021-09-27T10:06:38.648Z] 10:06:38     INFO - Buffered messages finished
[task 2021-09-27T10:06:38.648Z] 10:06:38     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/fullscreen/browser_bug1620341.js | Uncaught exception - Close buttons should be visible only on the active tab (tabs have width=0 so closebuttons gets set on them) - timed out after 50 tries.
[task 2021-09-27T10:06:38.649Z] 10:06:38     INFO - Leaving test bound test_fullscreen_cross_origin
[task 2021-09-27T10:06:38.649Z] 10:06:38     INFO - GECKO(1693) | MEMORY STAT | vsize 7925MB | residentFast 326MB | heapAllocated 112MB
[task 2021-09-27T10:06:38.649Z] 10:06:38     INFO - TEST-OK | browser/base/content/test/fullscreen/browser_bug1620341.js | took 10088ms
[task 2021-09-27T10:06:38.650Z] 10:06:38     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-09-27T10:06:38.650Z] 10:06:38     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/fullscreen/browser_bug1620341.js | Found an unexpected tab at the end of test run: https://example.com/browser/browser/base/content/test/fullscreen/fullscreen_frame.html - 
[task 2021-09-27T10:06:38.651Z] 10:06:38     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-09-27T10:06:38.651Z] 10:06:38     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/fullscreen/browser_bug1620341.js | Found an unexpected tab at the end of test run: data:text/html,  <html xmlns="http://www.w3.org/1999/xhtml">    <head>      <meta charset="utf-8"/>      <title>First tab to be loaded</title>    </head>    <body>      <button>JUST A BUTTON</button>    </body>  </html> - 
[task 2021-09-27T10:06:38.652Z] 10:06:38     INFO - GECKO(1693) | [Child 1698: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 10b8d4c00 == 1 [pid = 1698] [id = 1]
[task 2021-09-27T10:06:38.652Z] 10:06:38     INFO - GECKO(1693) | [Child 1698: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (1076adac0) [pid = 1698] [serial = 3] [outer = 0]
[task 2021-09-27T10:06:38.653Z] 10:06:38     INFO - GECKO(1693) | [Child 1698: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (10b8d6400) [pid = 1698] [serial = 4] [outer = 1076adac0]
[task 2021-09-27T10:06:38.655Z] 10:06:38     INFO - checking window state
[task 2021-09-27T10:06:38.672Z] 10:06:38     INFO - Console message: [JavaScript Warning: "Exited fullscreen because fullscreen element was removed from document." {file: "chrome://browser/content/tabbrowser.js" line: 3994}]
[task 2021-09-27T10:06:38.702Z] 10:06:38     INFO - GECKO(1693) | [Child 1696, Main Thread] WARNING: Scrolled rect smaller than scrollport?: file /builds/worker/checkouts/gecko/layout/generic/nsGfxScrollFrame.cpp:7049
[task 2021-09-27T10:06:38.721Z] 10:06:38     INFO - TEST-START | browser/base/content/test/fullscreen/browser_fullscreen_api_fission.js
```