Bug: Intermittent [TV] browser/base/content/test/captivePortal/browser_closeCapPortalTabCanonicalURL.js | Uncaught exception in test - [Exception... "Component is not available"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame ::
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2022-03-30 10:31:58+00:00
Resolved: 2022-04-26 17:04:53+00:00

**Filed by:** smolnar [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=372795143&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/NDKukRCASU-pnQUVNnPXrg/runs/0/artifacts/public/logs/live_backing.log
**Reftest URL:** https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/NDKukRCASU-pnQUVNnPXrg/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
INFO - TEST-START | browser/base/content/test/captivePortal/browser_closeCapPortalTabCanonicalURL.js
[task 2022-03-30T10:00:31.109Z] 10:00:31     INFO - GECKO(18702) | !!! could not start server on port 8080: [Exception... "Component returned failure code: 0x804b0036 (NS_ERROR_SOCKET_ADDRESS_IN_USE) [nsIServerSocket.init]"  nsresult: "0x804b0036 (NS_ERROR_SOCKET_ADDRESS_IN_USE)"  location: "JS frame :: resource://testing-common/httpd.js :: _start :: line 579"  data: no]
[task 2022-03-30T10:00:31.112Z] 10:00:31     INFO - TEST-INFO | started process screentopng
[task 2022-03-30T10:00:31.889Z] 10:00:31     INFO - TEST-INFO | screentopng: exit 0
[task 2022-03-30T10:00:31.889Z] 10:00:31     INFO - Buffered messages logged at 10:00:31
[task 2022-03-30T10:00:31.890Z] 10:00:31     INFO - Entering test bound setup
[task 2022-03-30T10:00:31.890Z] 10:00:31     INFO - Buffered messages finished
[task 2022-03-30T10:00:31.890Z] 10:00:31     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/captivePortal/browser_closeCapPortalTabCanonicalURL.js | Uncaught exception in test - [Exception... "Component is not available"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: resource://testing-common/httpd.js :: _start :: line 624"  data: no]
[task 2022-03-30T10:00:31.890Z] 10:00:31     INFO - Stack trace:
[task 2022-03-30T10:00:31.891Z] 10:00:31     INFO - _start@resource://testing-common/httpd.js:624:24
[task 2022-03-30T10:00:31.891Z] 10:00:31     INFO - start@resource://testing-common/httpd.js:518:10
[task 2022-03-30T10:00:31.891Z] 10:00:31     INFO - setup@chrome://mochitests/content/browser/browser/base/content/test/captivePortal/browser_closeCapPortalTabCanonicalURL.js:44:10
[task 2022-03-30T10:00:31.891Z] 10:00:31     INFO - handleTask@chrome://mochikit/content/browser-test.js:989:26
[task 2022-03-30T10:00:31.891Z] 10:00:31     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1061:18
[task 2022-03-30T10:00:31.891Z] 10:00:31     INFO - Tester_execTest@chrome://mochikit/content/browser-test.js:1189:14
[task 2022-03-30T10:00:31.891Z] 10:00:31     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:972:14
[task 2022-03-30T10:00:31.892Z] 10:00:31     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1041:13
[task 2022-03-30T10:00:31.892Z] 10:00:31     INFO - Leaving test bound setup
[task 2022-03-30T10:00:31.893Z] 10:00:31     INFO - Entering test bound checkCaptivePortalTabCloseOnCanonicalURL_one
[task 2022-03-30T10:00:31.894Z] 10:00:31     INFO - A cert error page was opened
[task 2022-03-30T10:00:31.975Z] 10:00:31     INFO - Captive portal error page UI is visible
[task 2022-03-30T10:00:31.987Z] 10:00:31     INFO - Click on the login button on the captive portal error page
[task 2022-03-30T10:00:32.245Z] 10:00:32     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”." {file: "http://127.0.0.1:8888/captive-detect/success.txt" line: 0}]
[task 2022-03-30T10:01:16.114Z] 10:01:16     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-03-30T10:01:16.115Z] 10:01:16     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/captivePortal/browser_closeCapPortalTabCanonicalURL.js | Test timed out - 
[task 2022-03-30T10:01:16.116Z] 10:01:16     INFO - GECKO(18702) | MEMORY STAT | vsize 3196MB | residentFast 447MB | heapAllocated 203MB
[task 2022-03-30T10:01:16.117Z] 10:01:16     INFO - TEST-OK | browser/base/content/test/captivePortal/browser_closeCapPortalTabCanonicalURL.js | took 45010ms
```