Bug: Intermittent browser/base/content/test/captivePortal/browser_closeCapPortalTabCanonicalURL.js | Test timed out | Found a tab after previous test timed out: https://expired.example.com/
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2021-12-21 00:03:11+00:00
Resolved: 2022-01-25 20:01:13+00:00

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

---
```
[task 2021-12-20T21:53:27.642Z] 21:53:27     INFO - TEST-PASS | browser/base/content/test/captivePortal/browser_closeCapPortalTabCanonicalURL.js | Captive Portal login page is now open in a new foreground tab. - 
[task 2021-12-20T21:53:27.650Z] 21:53:27     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”." {file: "http://localhost:8080/login" line: 0}]
[task 2021-12-20T21:53:27.651Z] 21:53:27     INFO - Clicking the login button on the captive portal tab page
[task 2021-12-20T21:53:27.694Z] 21:53:27     INFO - Console message: [JavaScript Error: "XML Parsing Error: mismatched tag. Expected: </div>.
[task 2021-12-20T21:53:27.694Z] 21:53:27     INFO - Location: jar:file:///builds/worker/workspace/build/application/firefox/browser/omni.ja!/chrome/browser/content/browser/certerror/aboutNetError.xhtml
[task 2021-12-20T21:53:27.694Z] 21:53:27     INFO - Line Number 90, Column 131:" {file: "jar:file:///builds/worker/workspace/build/application/firefox/browser/omni.ja!/chrome/browser/content/browser/certerror/aboutNetError.xhtml" line: 90 column: 131 source: "        <div id="es_nssBadCert_MOZILLA_PKIX_ERROR_NOT_YET_VALID_ISSUER_CERTIFICATE">&certerror.expiredCert.whatCanYouDoAboutIt2;</div>"}]
[task 2021-12-20T21:53:27.695Z] 21:53:27     INFO - Re-direct to canonical URL in the captive portal tab was succcessful after login
[task 2021-12-20T21:53:27.697Z] 21:53:27     INFO - Captive portal tab was closed on re-direct to canonical URL after login as expected
[task 2021-12-20T21:53:27.713Z] 21:53:27     INFO - Buffered messages finished
[task 2021-12-20T21:53:27.714Z] 21:53:27     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/captivePortal/browser_closeCapPortalTabCanonicalURL.js | Test timed out - 
[task 2021-12-20T21:53:27.714Z] 21:53:27     INFO - GECKO(3383) | MEMORY STAT | vsize 3231MB | residentFast 436MB | heapAllocated 168MB
[task 2021-12-20T21:53:27.715Z] 21:53:27     INFO - TEST-OK | browser/base/content/test/captivePortal/browser_closeCapPortalTabCanonicalURL.js | took 90088ms
[task 2021-12-20T21:53:27.717Z] 21:53:27     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-12-20T21:53:27.722Z] 21:53:27     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/captivePortal/browser_closeCapPortalTabCanonicalURL.js | Found a tab after previous test timed out: https://expired.example.com/ - 
[task 2021-12-20T21:53:27.722Z] 21:53:27     INFO - GECKO(3383) | [Child 3546: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7fec74e83400 == 1 [pid = 3546] [id = 6]
[task 2021-12-20T21:53:27.733Z] 21:53:27     INFO - GECKO(3383) | [Child 3546: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (7fec8a57d740) [pid = 3546] [serial = 16] [outer = 0]
[task 2021-12-20T21:53:27.734Z] 21:53:27     INFO - GECKO(3383) | [Child 3546: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (7fec74e83800) [pid = 3546] [serial = 17] [outer = 7fec8a57d740]
[task 2021-12-20T21:53:27.750Z] 21:53:27     INFO - GECKO(3383) | [Parent 3383, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, false) failed with result 0x804B0050 (NS_ERROR_INSUFFICIENT_DOMAIN_LEVELS): file /builds/worker/checkouts/gecko/toolkit/components/antitracking/URLQueryStringStripper.cpp:129
[task 2021-12-20T21:53:27.753Z] 21:53:27     INFO - GECKO(3383) | [Child 3546, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, false) failed with result 0x804B0050 (NS_ERROR_INSUFFICIENT_DOMAIN_LEVELS): file /builds/worker/checkouts/gecko/toolkit/components/antitracking/URLQueryStringStripper.cpp:129
[task 2021-12-20T21:53:27.758Z] 21:53:27     INFO - GECKO(3383) | [Child 3546, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, false) failed with result 0x804B0050 (NS_ERROR_INSUFFICIENT_DOMAIN_LEVELS): file /builds/worker/checkouts/gecko/toolkit/components/antitracking/URLQueryStringStripper.cpp:129
[task 2021-12-20T21:53:27.769Z] 21:53:27     INFO - checking window state
[task 2021-12-20T21:53:27.781Z] 21:53:27     INFO - GECKO(3383) | [Parent 3383: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 11 (7f8e0390cc00) [pid = 3383] [serial = 81] [outer = 7f8e1c437e40]
[task 2021-12-20T21:53:27.786Z] 21:53:27     INFO - GECKO(3383) | [Parent 3383, Main Thread] WARNING: NS_ENSURE_TRUE(presShell) failed: file /builds/worker/checkouts/gecko/dom/base/nsGlobalWindowOuter.cpp:4233
[task 2021-12-20T21:53:27.853Z] 21:53:27     INFO - GECKO(3383) | [Child 3453: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f6e71cbdc00 == 0 [pid = 3453] [id = 18] [url = about:blank]
[task 2021-12-20T21:53:28.028Z] 21:53:28     INFO - GECKO(3383) | [Child 3524: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f2e1628b800 == 0 [pid = 3524] [id = 0] [url = about:newtab]
[task 2021-12-20T21:53:28.130Z] 21:53:28     INFO - GECKO(3383) | [Child 3524: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (7f2e2ba7d740) [pid = 3524] [serial = 1] [outer = 0] [url = about:newtab]
[task 2021-12-20T21:53:28.133Z] 21:53:28     INFO - GECKO(3383) | [Child 3524: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (7f2e1628d800) [pid = 3524] [serial = 3] [outer = 0] [url = about:newtab]
[task 2021-12-20T21:53:28.971Z] 21:53:28     INFO - GECKO(3383) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
```