Bug: Intermittent browser/base/content/test/captivePortal/browser_closeCapPortalTabCanonicalURL.js | Uncaught exception - Login button on the captive portal tab is visible - timed out after 50 tries.
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2020-04-02 06:35:30+00:00
Resolved: 2020-05-12 17:03:12+00:00

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

---

```
[task 2020-04-01T22:00:46.828Z] 22:00:46     INFO - TEST-START | browser/base/content/test/captivePortal/browser_closeCapPortalTabCanonicalURL.js
[task 2020-04-01T22:00:52.654Z] 22:00:52     INFO - TEST-INFO | started process screentopng
[task 2020-04-01T22:00:52.844Z] 22:00:52     INFO - TEST-INFO | screentopng: exit 0
[task 2020-04-01T22:00:52.844Z] 22:00:52     INFO - Buffered messages logged at 22:00:46
[task 2020-04-01T22:00:52.844Z] 22:00:52     INFO - Entering test bound setup
[task 2020-04-01T22:00:52.844Z] 22:00:52     INFO - Mock server is now set up for captive portal redirect
[task 2020-04-01T22:00:52.844Z] 22:00:52     INFO - Leaving test bound setup
[task 2020-04-01T22:00:52.844Z] 22:00:52     INFO - Entering test bound checkCaptivePortalTabCloseOnCanonicalURL_one
[task 2020-04-01T22:00:52.847Z] 22:00:52     INFO - Buffered messages logged at 22:00:47
[task 2020-04-01T22:00:52.847Z] 22:00:52     INFO - A cert error page was opened
[task 2020-04-01T22:00:52.848Z] 22:00:52     INFO - Captive portal error page UI is visible
[task 2020-04-01T22:00:52.848Z] 22:00:52     INFO - Click on the login button on the captive portal error page
[task 2020-04-01T22:00:52.848Z] 22:00:52     INFO - TEST-PASS | browser/base/content/test/captivePortal/browser_closeCapPortalTabCanonicalURL.js | Captive Portal login page is now open in a new foreground tab. - 
[task 2020-04-01T22:00:52.849Z] 22:00:52     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: "http://localhost:8080/login" line: 0}]
[task 2020-04-01T22:00:52.850Z] 22:00:52     INFO - Buffered messages finished
[task 2020-04-01T22:00:52.850Z] 22:00:52     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/captivePortal/browser_closeCapPortalTabCanonicalURL.js | Uncaught exception - Login button on the captive portal tab is visible - timed out after 50 tries.
[task 2020-04-01T22:00:52.850Z] 22:00:52     INFO - Leaving test bound checkCaptivePortalTabCloseOnCanonicalURL_one
[task 2020-04-01T22:00:52.851Z] 22:00:52     INFO - Entering test bound checkCaptivePortalTabCloseOnCanonicalURL_two
[task 2020-04-01T22:00:53.069Z] 22:00:53     INFO - A cert error page was opened
[task 2020-04-01T22:00:53.177Z] 22:00:53     INFO - Captive portal error page UI is visible
[task 2020-04-01T22:00:53.181Z] 22:00:53     INFO - Click on the login button on the captive portal error page
[task 2020-04-01T22:01:31.850Z] 22:01:31     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-04-01T22:01:31.853Z] 22:01:31     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/captivePortal/browser_closeCapPortalTabCanonicalURL.js | Test timed out - 
[task 2020-04-01T22:01:31.858Z] 22:01:31     INFO - GECKO(2149) | MEMORY STAT | vsize 3120MB | residentFast 333MB | heapAllocated 95MB
[task 2020-04-01T22:01:31.858Z] 22:01:31     INFO - TEST-OK | browser/base/content/test/captivePortal/browser_closeCapPortalTabCanonicalURL.js | took 45030ms
[task 2020-04-01T22:01:31.859Z] 22:01:31     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-04-01T22:01:31.864Z] 22:01:31     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 2020-04-01T22:01:31.865Z] 22:01:31     INFO - Not taking screenshot here: see the one that was previously logged
```