Bug: Intermittent toolkit/content/tests/browser/browser_bug1170531.js | menu_cut should be enabled - Got true, expected false | menu_copy should be enabled - Got true, expected false
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2020-03-13 01:51:06+00:00
Resolved: 2020-06-29 06:11:37+00:00

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

---

```
[task 2020-03-12T22:57:31.088Z] 22:57:31     INFO - TEST-START | toolkit/content/tests/browser/browser_bug1170531.js
[task 2020-03-12T22:57:31.592Z] 22:57:31     INFO - TEST-INFO | started process screentopng
[task 2020-03-12T22:57:31.956Z] 22:57:31     INFO - TEST-INFO | screentopng: exit 0
[task 2020-03-12T22:57:31.957Z] 22:57:31     INFO - Buffered messages logged at 22:57:31
[task 2020-03-12T22:57:31.957Z] 22:57:31     INFO - Entering test bound 
[task 2020-03-12T22:57:31.957Z] 22:57:31     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,<div>hello!</div>" line: 0}]
[task 2020-03-12T22:57:31.957Z] 22:57:31     INFO - TEST-PASS | toolkit/content/tests/browser/browser_bug1170531.js | menu_cut should be enabled - 
[task 2020-03-12T22:57:31.957Z] 22:57:31     INFO - TEST-PASS | toolkit/content/tests/browser/browser_bug1170531.js | menu_copy should be enabled - 
[task 2020-03-12T22:57:31.957Z] 22:57:31     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,<div contentEditable='true'>hello!</div>" line: 0}]
[task 2020-03-12T22:57:31.957Z] 22:57:31     INFO - Buffered messages finished
[task 2020-03-12T22:57:31.960Z] 22:57:31     INFO - TEST-UNEXPECTED-FAIL | toolkit/content/tests/browser/browser_bug1170531.js | menu_cut should be enabled - Got true, expected false
[task 2020-03-12T22:57:31.961Z] 22:57:31     INFO - Stack trace:
[task 2020-03-12T22:57:31.961Z] 22:57:31     INFO - chrome://mochikit/content/browser-test.js:test_is:1320
[task 2020-03-12T22:57:31.961Z] 22:57:31     INFO - chrome://mochitests/content/browser/toolkit/content/tests/browser/browser_bug1170531.js:null:84
[task 2020-03-12T22:57:31.961Z] 22:57:31     INFO - resource://testing-common/BrowserTestUtils.jsm:withNewTab:150
[task 2020-03-12T22:57:31.961Z] 22:57:31     INFO - chrome://mochitests/content/browser/toolkit/content/tests/browser/browser_bug1170531.js:null:52
[task 2020-03-12T22:57:31.961Z] 22:57:31     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1062
[task 2020-03-12T22:57:31.961Z] 22:57:31     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1097
[task 2020-03-12T22:57:31.962Z] 22:57:31     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:925
[task 2020-03-12T22:57:31.962Z] 22:57:31     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<:918
[task 2020-03-12T22:57:31.962Z] 22:57:31     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-03-12T22:57:31.962Z] 22:57:31     INFO - TEST-UNEXPECTED-FAIL | toolkit/content/tests/browser/browser_bug1170531.js | menu_copy should be enabled - Got true, expected false
[task 2020-03-12T22:57:31.963Z] 22:57:31     INFO - Stack trace:
[task 2020-03-12T22:57:31.963Z] 22:57:31     INFO - chrome://mochikit/content/browser-test.js:test_is:1320
[task 2020-03-12T22:57:31.963Z] 22:57:31     INFO - chrome://mochitests/content/browser/toolkit/content/tests/browser/browser_bug1170531.js:null:88
[task 2020-03-12T22:57:31.963Z] 22:57:31     INFO - resource://testing-common/BrowserTestUtils.jsm:withNewTab:150
[task 2020-03-12T22:57:31.963Z] 22:57:31     INFO - chrome://mochitests/content/browser/toolkit/content/tests/browser/browser_bug1170531.js:null:52
[task 2020-03-12T22:57:31.963Z] 22:57:31     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1062
[task 2020-03-12T22:57:31.963Z] 22:57:31     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1097
[task 2020-03-12T22:57:31.963Z] 22:57:31     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:925
[task 2020-03-12T22:57:31.963Z] 22:57:31     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<:918
[task 2020-03-12T22:57:32.274Z] 22:57:32     INFO - TEST-PASS | toolkit/content/tests/browser/browser_bug1170531.js | menu_cut should be disabled - 
[task 2020-03-12T22:57:32.275Z] 22:57:32     INFO - TEST-PASS | toolkit/content/tests/browser/browser_bug1170531.js | menu_copy should be disabled - 
[task 2020-03-12T22:57:32.295Z] 22:57:32     INFO - Leaving test bound 
[task 2020-03-12T22:57:32.350Z] 22:57:32     INFO - GECKO(15883) | MEMORY STAT | vsize 3249MB | residentFast 336MB | heapAllocated 130MB
[task 2020-03-12T22:57:32.352Z] 22:57:32     INFO - TEST-OK | toolkit/content/tests/browser/browser_bug1170531.js | took 1258ms
```