Bug: Intermittent browser/base/content/test/contextMenu/browser_contextmenu_badiframe.js | New tab should have page url, not about:neterror - Got "data:text/html,<frameset cols=\"400,400\"><frame src=\"http://example.com/\"><frame src=\"http://127.0.0.1:55555/
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-08-22 00:03:31+00:00
Resolved: 2021-11-30 17:02:28+00:00

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

---
```
[task 2021-08-21T21:09:39.201Z] 21:09:39     INFO - TEST-START | browser/base/content/test/contextMenu/browser_contextmenu_badiframe.js
[task 2021-08-21T21:09:39.207Z] 21:09:39     INFO - GECKO(7611) | Waiting for browser load
[task 2021-08-21T21:09:39.208Z] 21:09:39     INFO - GECKO(7611) | Waiting for browser state change
[task 2021-08-21T21:09:39.218Z] 21:09:39     INFO - GECKO(7611) | Saw state f0001 and status 0
[task 2021-08-21T21:09:39.259Z] 21:09:39     INFO - GECKO(7611) | Saw state c0010 and status 0
[task 2021-08-21T21:09:39.259Z] 21:09:39     INFO - GECKO(7611) | Browser got expected state change data:text/html,<frameset cols="400,400"><frame src="http://example.com/"><frame src="http://127.0.0.1:55555/"></frameset>
[task 2021-08-21T21:09:39.649Z] 21:09:39     INFO - GECKO(7611) | Waiting for browser load
[task 2021-08-21T21:09:39.649Z] 21:09:39     INFO - GECKO(7611) | Waiting for browser state change
[task 2021-08-21T21:09:39.656Z] 21:09:39     INFO - GECKO(7611) | Saw state f0001 and status 0
[task 2021-08-21T21:09:39.694Z] 21:09:39     INFO - GECKO(7611) | Saw state c0010 and status 0
[task 2021-08-21T21:09:39.694Z] 21:09:39     INFO - GECKO(7611) | Browser got expected state change data:text/html,<frameset cols="400,400"><frame src="http://example.com/"><frame src="http://127.0.0.1:55555/"></frameset>
[task 2021-08-21T21:09:40.468Z] 21:09:40     INFO - GECKO(7611) | Waiting for browser load
[task 2021-08-21T21:09:40.469Z] 21:09:40     INFO - GECKO(7611) | Waiting for browser state change
[task 2021-08-21T21:09:40.473Z] 21:09:40     INFO - GECKO(7611) | Saw state f0001 and status 0
[task 2021-08-21T21:09:40.504Z] 21:09:40     INFO - GECKO(7611) | Saw state c0010 and status 0
[task 2021-08-21T21:09:40.505Z] 21:09:40     INFO - GECKO(7611) | Browser got expected state change data:text/html,<frameset cols="400,400"><frame src="http://example.com/"><frame src="http://127.0.0.1:55555/"></frameset>
[task 2021-08-21T21:09:41.275Z] 21:09:41     INFO - GECKO(7611) | Waiting for browser load
[task 2021-08-21T21:09:41.276Z] 21:09:41     INFO - GECKO(7611) | Waiting for browser state change
[task 2021-08-21T21:09:41.285Z] 21:09:41     INFO - GECKO(7611) | Saw state f0001 and status 0
[task 2021-08-21T21:09:41.322Z] 21:09:41     INFO - GECKO(7611) | Saw state c0010 and status 0
[task 2021-08-21T21:09:41.322Z] 21:09:41     INFO - GECKO(7611) | Browser got expected state change data:text/html,<frameset cols="400,400"><frame src="http://example.com/"><frame src="http://127.0.0.1:55555/"></frameset>
[task 2021-08-21T21:09:41.885Z] 21:09:41     INFO - TEST-INFO | started process screencapture
[task 2021-08-21T21:09:42.042Z] 21:09:42     INFO - TEST-INFO | screencapture: exit 0
[task 2021-08-21T21:09:42.043Z] 21:09:42     INFO - Buffered messages logged at 21:09:39
[task 2021-08-21T21:09:42.043Z] 21:09:42     INFO - Entering test bound testOpenFrame
[task 2021-08-21T21:09:42.044Z] 21:09:42     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: "data:text/html,<frameset cols="400,400"><frame src="http://example.com/"><frame src="http://127.0.0.1:55555/"></frameset>" line: 0}]
[task 2021-08-21T21:09:42.044Z] 21:09:42     INFO - show only this frame for http://example.com/
[task 2021-08-21T21:09:42.045Z] 21:09:42     INFO - TEST-PASS | browser/base/content/test/contextMenu/browser_contextmenu_badiframe.js | Should navigate to page url, not about:neterror - 
[task 2021-08-21T21:09:42.045Z] 21:09:42     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: "data:text/html,<frameset cols="400,400"><frame src="http://example.com/"><frame src="http://127.0.0.1:55555/"></frameset>" line: 0}]
[task 2021-08-21T21:09:42.046Z] 21:09:42     INFO - Buffered messages logged at 21:09:40
[task 2021-08-21T21:09:42.046Z] 21:09:42     INFO - show only this frame for http://127.0.0.1:55555/
[task 2021-08-21T21:09:42.047Z] 21:09:42     INFO - TEST-PASS | browser/base/content/test/contextMenu/browser_contextmenu_badiframe.js | Should navigate to page url, not about:neterror - 
[task 2021-08-21T21:09:42.047Z] 21:09:42     INFO - Leaving test bound testOpenFrame
[task 2021-08-21T21:09:42.047Z] 21:09:42     INFO - Entering test bound testOpenFrameInTab
[task 2021-08-21T21:09:42.048Z] 21:09:42     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: "data:text/html,<frameset cols="400,400"><frame src="http://example.com/"><frame src="http://127.0.0.1:55555/"></frameset>" line: 0}]
[task 2021-08-21T21:09:42.048Z] 21:09:42     INFO - open frame in tab for http://example.com/
[task 2021-08-21T21:09:42.049Z] 21:09:42     INFO - Buffered messages logged at 21:09:41
[task 2021-08-21T21:09:42.049Z] 21:09:42     INFO - TEST-PASS | browser/base/content/test/contextMenu/browser_contextmenu_badiframe.js | New tab should have page url, not about:neterror - 
[task 2021-08-21T21:09:42.050Z] 21:09:42     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: "data:text/html,<frameset cols="400,400"><frame src="http://example.com/"><frame src="http://127.0.0.1:55555/"></frameset>" line: 0}]
[task 2021-08-21T21:09:42.050Z] 21:09:42     INFO - open frame in tab for http://127.0.0.1:55555/
[task 2021-08-21T21:09:42.051Z] 21:09:42     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: "data:text/html,<frameset cols="400,400"><frame src="http://example.com/"><frame src="http://127.0.0.1:55555/"></frameset>" line: 0}]
[task 2021-08-21T21:09:42.051Z] 21:09:42     INFO - Buffered messages finished
[task 2021-08-21T21:09:42.052Z] 21:09:42     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/contextMenu/browser_contextmenu_badiframe.js | New tab should have page url, not about:neterror - Got "data:text/html,<frameset cols=\"400,400\"><frame src=\"http://example.com/\"><frame src=\"http://127.0.0.1:55555/\"></frameset>", expected "http://127.0.0.1:55555/"
[task 2021-08-21T21:09:42.052Z] 21:09:42     INFO - Stack trace:
[task 2021-08-21T21:09:42.052Z] 21:09:42     INFO - chrome://mochikit/content/browser-test.js:test_is:1371
[task 2021-08-21T21:09:42.052Z] 21:09:42     INFO - chrome://mochitests/content/browser/browser/base/content/test/contextMenu/browser_contextmenu_badiframe.js:testOpenFrameInTab:122
[task 2021-08-21T21:09:42.053Z] 21:09:42     INFO - Leaving test bound testOpenFrameInTab
[task 2021-08-21T21:09:42.053Z] 21:09:42     INFO - Entering test bound testOpenFrameInWindow
[task 2021-08-21T21:09:42.054Z] 21:09:42     INFO - GECKO(7611) | Waiting for browser load
[task 2021-08-21T21:09:42.054Z] 21:09:42     INFO - GECKO(7611) | Waiting for browser state change
[task 2021-08-21T21:09:42.054Z] 21:09:42     INFO - GECKO(7611) | Saw state f0001 and status 0
[task 2021-08-21T21:09:42.055Z] 21:09:42     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: "data:text/html,<frameset cols="400,400"><frame src="http://example.com/"><frame src="http://127.0.0.1:55555/"></frameset>" line: 0}]
[task 2021-08-21T21:09:42.056Z] 21:09:42     INFO - GECKO(7611) | Saw state c0010 and status 0
[task 2021-08-21T21:09:42.056Z] 21:09:42     INFO - GECKO(7611) | Browser got expected state change data:text/html,<frameset cols="400,400"><frame src="http://example.com/"><frame src="http://127.0.0.1:55555/"></frameset>
[task 2021-08-21T21:09:42.057Z] 21:09:42     INFO - open frame in window for http://example.com/
[task 2021-08-21T21:09:42.335Z] 21:09:42     INFO - TEST-PASS | browser/base/content/test/contextMenu/browser_contextmenu_badiframe.js | New window should have page url, not about:neterror - 
[task 2021-08-21T21:09:42.344Z] 21:09:42     INFO - GECKO(7611) | Waiting for browser load
[task 2021-08-21T21:09:42.344Z] 21:09:42     INFO - GECKO(7611) | Waiting for browser state change
[task 2021-08-21T21:09:42.413Z] 21:09:42     INFO - GECKO(7611) | Saw state f0001 and status 0
[task 2021-08-21T21:09:42.457Z] 21:09:42     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: "data:text/html,<frameset cols="400,400"><frame src="http://example.com/"><frame src="http://127.0.0.1:55555/"></frameset>" line: 0}]
[task 2021-08-21T21:09:42.505Z] 21:09:42     INFO - GECKO(7611) | Saw state c0010 and status 0
[task 2021-08-21T21:09:42.505Z] 21:09:42     INFO - GECKO(7611) | Browser got expected state change data:text/html,<frameset cols="400,400"><frame src="http://example.com/"><frame src="http://127.0.0.1:55555/"></frameset>
[task 2021-08-21T21:09:42.760Z] 21:09:42     INFO - open frame in window for http://127.0.0.1:55555/
[task 2021-08-21T21:09:43.050Z] 21:09:43     INFO - TEST-PASS | browser/base/content/test/contextMenu/browser_contextmenu_badiframe.js | New window should have page url, not about:neterror - 
[task 2021-08-21T21:09:43.055Z] 21:09:43     INFO - Leaving test bound testOpenFrameInWindow
[task 2021-08-21T21:09:43.116Z] 21:09:43     INFO - GECKO(7611) | MEMORY STAT | vsize 7967MB | residentFast 307MB | heapAllocated 136MB
[task 2021-08-21T21:09:43.117Z] 21:09:43     INFO - TEST-OK | browser/base/content/test/contextMenu/browser_contextmenu_badiframe.js | took 3915ms
[task 2021-08-21T21:09:43.123Z] 21:09:43     INFO - checking window state
[task 2021-08-21T21:09:43.130Z] 21:09:43     INFO - TEST-START | browser/base/content/test/contextMenu/browser_contextmenu_childprocess.js
```