Bug: Intermittent browser/base/content/test/contextMenu/browser_contextmenu_badiframe.js | Uncaught exception - at chrome://mochitests/content/browser/browser/base/content/test/contextMenu/browser_contextmenu_badiframe.js:30 - TypeError: can't access propert
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-08-26 07:03:41+00:00
Resolved: 2022-02-15 17:03:31+00:00

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

---
```
[task 2021-08-26T04:07:45.257Z] 04:07:45     INFO - TEST-START | browser/base/content/test/contextMenu/browser_contextmenu_badiframe.js
[task 2021-08-26T04:07:45.301Z] 04:07:45     INFO - GECKO(1542) | Waiting for browser load
[task 2021-08-26T04:07:45.303Z] 04:07:45     INFO - GECKO(1542) | Waiting for browser state change
[task 2021-08-26T04:07:45.323Z] 04:07:45     INFO - GECKO(1542) | Saw state f0001 and status 0
[task 2021-08-26T04:07:45.545Z] 04:07:45     INFO - GECKO(1542) | Saw state c0010 and status 0
[task 2021-08-26T04:07:45.545Z] 04:07:45     INFO - GECKO(1542) | 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-26T04:07:45.610Z] 04:07:45     INFO - TEST-INFO | started process screentopng
[task 2021-08-26T04:07:46.180Z] 04:07:46     INFO - TEST-INFO | screentopng: exit 0
[task 2021-08-26T04:07:46.181Z] 04:07:46     INFO - Buffered messages logged at 04:07:45
[task 2021-08-26T04:07:46.182Z] 04:07:46     INFO - Entering test bound testOpenFrame
[task 2021-08-26T04:07:46.184Z] 04:07:46     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-26T04:07:46.190Z] 04:07:46     INFO - Console message: [JavaScript Error: "Unknown Collection "main/partitioning-exempt-urls"" {file: "resource://services-settings/RemoteSettingsClient.jsm" line: 160}]
[task 2021-08-26T04:07:46.190Z] 04:07:46     INFO - UnknownCollectionError@resource://services-settings/RemoteSettingsClient.jsm:160:5
[task 2021-08-26T04:07:46.190Z] 04:07:46     INFO - sync@resource://services-settings/RemoteSettingsClient.jsm:503:13
[task 2021-08-26T04:07:46.190Z] 04:07:46     INFO - 
[task 2021-08-26T04:07:46.191Z] 04:07:46     INFO - Buffered messages finished
[task 2021-08-26T04:07:46.191Z] 04:07:46     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/contextMenu/browser_contextmenu_badiframe.js | Uncaught exception - at chrome://mochitests/content/browser/browser/base/content/test/contextMenu/browser_contextmenu_badiframe.js:30 - TypeError: can't access property "classList", content.document.body is null
[task 2021-08-26T04:07:46.191Z] 04:07:46     INFO - Stack trace:
[task 2021-08-26T04:07:46.192Z] 04:07:46     INFO - @chrome://mochitests/content/browser/browser/base/content/test/contextMenu/browser_contextmenu_badiframe.js:30:11
[task 2021-08-26T04:07:46.192Z] 04:07:46     INFO - execute@resource://specialpowers/SpecialPowersSandbox.jsm:141:12
[task 2021-08-26T04:07:46.192Z] 04:07:46     INFO - _spawnTask@resource://specialpowers/SpecialPowersChild.jsm:1659:15
[task 2021-08-26T04:07:46.192Z] 04:07:46     INFO - receiveMessage@resource://specialpowers/SpecialPowersChild.jsm:310:21
[task 2021-08-26T04:07:46.193Z] 04:07:46     INFO - Leaving test bound testOpenFrame
[task 2021-08-26T04:07:46.194Z] 04:07:46     INFO - Entering test bound testOpenFrameInTab
[task 2021-08-26T04:07:46.200Z] 04:07:46     INFO - GECKO(1542) | Waiting for browser load
[task 2021-08-26T04:07:46.200Z] 04:07:46     INFO - GECKO(1542) | Waiting for browser state change
[task 2021-08-26T04:07:46.200Z] 04:07:46     INFO - GECKO(1542) | Saw state f0001 and status 0
[task 2021-08-26T04:07:46.200Z] 04:07:46     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-26T04:07:46.200Z] 04:07:46     INFO - GECKO(1542) | Saw state c0010 and status 0
[task 2021-08-26T04:07:46.200Z] 04:07:46     INFO - GECKO(1542) | 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-26T04:07:46.283Z] 04:07:46     INFO - open frame in tab for http://example.com/
[task 2021-08-26T04:07:46.317Z] 04:07:46     INFO - Global property added while loading chrome://browser/content/nsContextMenu.js: screenshotsDisabled
[task 2021-08-26T04:07:46.317Z] 04:07:46     INFO - Global property added while loading chrome://browser/content/nsContextMenu.js: SCREENSHOT_BROWSER_COMPONENT
[task 2021-08-26T04:07:46.922Z] 04:07:46     INFO - TEST-PASS | browser/base/content/test/contextMenu/browser_contextmenu_badiframe.js | New tab should have page url, not about:neterror - 
[task 2021-08-26T04:07:46.954Z] 04:07:46     INFO - GECKO(1542) | Waiting for browser load
[task 2021-08-26T04:07:46.954Z] 04:07:46     INFO - GECKO(1542) | Waiting for browser state change
[task 2021-08-26T04:07:47.024Z] 04:07:47     INFO - GECKO(1542) | Saw state f0001 and status 0
[task 2021-08-26T04:07:47.079Z] 04:07:47     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-26T04:07:47.149Z] 04:07:47     INFO - GECKO(1542) | Saw state c0010 and status 0
[task 2021-08-26T04:07:47.150Z] 04:07:47     INFO - GECKO(1542) | 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-26T04:07:47.371Z] 04:07:47     INFO - open frame in tab for http://127.0.0.1:55555/
[task 2021-08-26T04:07:47.815Z] 04:07:47     INFO - TEST-PASS | browser/base/content/test/contextMenu/browser_contextmenu_badiframe.js | New tab should have page url, not about:neterror - 
[task 2021-08-26T04:07:47.854Z] 04:07:47     INFO - Leaving test bound testOpenFrameInTab
[task 2021-08-26T04:07:47.854Z] 04:07:47     INFO - Entering test bound testOpenFrameInWindow
[task 2021-08-26T04:07:47.875Z] 04:07:47     INFO - GECKO(1542) | Waiting for browser load
[task 2021-08-26T04:07:47.884Z] 04:07:47     INFO - GECKO(1542) | Waiting for browser state change
[task 2021-08-26T04:07:47.905Z] 04:07:47     INFO - GECKO(1542) | Saw state f0001 and status 0
[task 2021-08-26T04:07:47.943Z] 04:07:47     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-26T04:07:48.001Z] 04:07:48     INFO - GECKO(1542) | Saw state c0010 and status 0
[task 2021-08-26T04:07:48.001Z] 04:07:48     INFO - GECKO(1542) | 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-26T04:07:48.166Z] 04:07:48     INFO - open frame in window for http://example.com/
[task 2021-08-26T04:07:48.544Z] 04:07:48     INFO - TEST-PASS | browser/base/content/test/contextMenu/browser_contextmenu_badiframe.js | New window should have page url, not about:neterror - 
[task 2021-08-26T04:07:48.599Z] 04:07:48     INFO - GECKO(1542) | Waiting for browser load
[task 2021-08-26T04:07:48.602Z] 04:07:48     INFO - GECKO(1542) | Waiting for browser state change
[task 2021-08-26T04:07:48.685Z] 04:07:48     INFO - GECKO(1542) | Saw state f0001 and status 0
[task 2021-08-26T04:07:48.710Z] 04:07:48     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-26T04:07:48.800Z] 04:07:48     INFO - GECKO(1542) | Saw state c0010 and status 0
[task 2021-08-26T04:07:48.801Z] 04:07:48     INFO - GECKO(1542) | 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-26T04:07:48.986Z] 04:07:48     INFO - open frame in window for http://127.0.0.1:55555/
[task 2021-08-26T04:07:49.442Z] 04:07:49     INFO - TEST-PASS | browser/base/content/test/contextMenu/browser_contextmenu_badiframe.js | New window should have page url, not about:neterror - 
[task 2021-08-26T04:07:49.491Z] 04:07:49     INFO - Leaving test bound testOpenFrameInWindow
[task 2021-08-26T04:07:49.580Z] 04:07:49     INFO - GECKO(1542) | MEMORY STAT vsizeMaxContiguous not supported in this build configuration.
[task 2021-08-26T04:07:49.582Z] 04:07:49     INFO - GECKO(1542) | MEMORY STAT | vsize 3410MB | residentFast 382MB | heapAllocated 241MB
[task 2021-08-26T04:07:49.583Z] 04:07:49     INFO - TEST-OK | browser/base/content/test/contextMenu/browser_contextmenu_badiframe.js | took 4327ms
[task 2021-08-26T04:07:49.586Z] 04:07:49     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-08-26T04:07:49.587Z] 04:07:49     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/contextMenu/browser_contextmenu_badiframe.js | Found an unexpected tab at the end of test run: data:text/html,<frameset cols="400,400"><frame src="http://example.com/"><frame src="http://127.0.0.1:55555/"></frameset> - 
[task 2021-08-26T04:07:49.637Z] 04:07:49     INFO - checking window state
[task 2021-08-26T04:07:49.637Z] 04:07:49     INFO - GECKO(1542) | must wait for focus
[task 2021-08-26T04:07:49.668Z] 04:07:49     INFO - TEST-START | browser/base/content/test/contextMenu/browser_contextmenu_childprocess.js
```