Bug: Intermittent browser/base/content/test/general/browser_search_discovery.js | uncaught exception - ReferenceError: ok is not defined at mockTransferCallback@chrome:///...content/browser/browser/base/content/test/general/browser_save_video_frame.js:39:7
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2020-11-28 15:20:15+00:00
Resolved: 2021-03-08 06:18:53+00:00

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

---
```
```
INFO - TEST-START | browser/base/content/test/general/browser_search_discovery.js
[task 2020-11-28T15:11:19.203Z] 15:11:19     INFO - TEST-INFO | started process screencapture
[task 2020-11-28T15:11:19.300Z] 15:11:19     INFO - TEST-INFO | screencapture: exit 0
[task 2020-11-28T15:11:19.300Z] 15:11:19     INFO - Buffered messages logged at 15:11:19
[task 2020-11-28T15:11:19.300Z] 15:11:19     INFO - Entering test bound 
[task 2020-11-28T15:11:19.300Z] 15:11:19     INFO - Test search discovery
[task 2020-11-28T15:11:19.300Z] 15:11:19     INFO - Buffered messages finished
[task 2020-11-28T15:11:19.301Z] 15:11:19     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/general/browser_search_discovery.js | uncaught exception - ReferenceError: ok is not defined at mockTransferCallback@chrome://mochitests/content/browser/browser/base/content/test/general/browser_save_video_frame.js:39:7
[task 2020-11-28T15:11:19.301Z] 15:11:19     INFO - MTFC_onStateChange@chrome://mochitests/content/browser/toolkit/content/tests/browser/common/mockTransfer.js:46:27
[task 2020-11-28T15:11:19.301Z] 15:11:19     INFO - DownloadListener/makeClosure/<@chrome://global/content/contentAreaUtils.js:135:22
[task 2020-11-28T15:11:19.301Z] 15:11:19     INFO - 
[task 2020-11-28T15:11:19.301Z] 15:11:19     INFO - Stack trace:
[task 2020-11-28T15:11:19.301Z] 15:11:19     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:simpletestOnerror:2112
[task 2020-11-28T15:11:19.301Z] 15:11:19     INFO - chrome://global/content/contentAreaUtils.js:DownloadListener/makeClosure/<:135
[task 2020-11-28T15:11:19.301Z] 15:11:19     INFO - GECKO(1398) | JavaScript error: chrome://mochitests/content/browser/browser/base/content/test/general/browser_save_video_frame.js, line 39: ReferenceError: ok is not defined
[task 2020-11-28T15:11:19.301Z] 15:11:19     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-11-28T15:11:19.302Z] 15:11:19     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/general/browser_search_discovery.js | uncaught exception - NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "ok is not defined" {file: "chrome://mochitests/content/browser/browser/base/content/test/general/browser_save_video_frame.js" line: 39}]'[JavaScript Error: "ok is not defined" {file: "chrome://mochitests/content/browser/browser/base/content/test/general/browser_save_video_frame.js" line: 39}]' when calling method: [nsITransfer::onStateChange] at DownloadListener/makeClosure/<@chrome://global/content/contentAreaUtils.js:135:22
[task 2020-11-28T15:11:19.302Z] 15:11:19     INFO - 
[task 2020-11-28T15:11:19.302Z] 15:11:19     INFO - Stack trace:
[task 2020-11-28T15:11:19.302Z] 15:11:19     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:simpletestOnerror:2112
[task 2020-11-28T15:11:19.302Z] 15:11:19     INFO - GECKO(1398) | JavaScript error: chrome://global/content/contentAreaUtils.js, line 135: NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "ok is not defined" {file: "chrome://mochitests/content/browser/browser/base/content/test/general/browser_save_video_frame.js" line: 39}]'[JavaScript Error: "ok is not defined" {file: "chrome://mochitests/content/browser/browser/base/content/test/general/browser_save_video_frame.js" line: 39}]' when calling method: [nsITransfer::onStateChange]
[task 2020-11-28T15:11:19.302Z] 15:11:19     INFO - Console message: [JavaScript Error: "ReferenceError: ok is not defined" {file: "chrome://mochitests/content/browser/browser/base/content/test/general/browser_save_video_frame.js" line: 39}]
[task 2020-11-28T15:11:19.302Z] 15:11:19     INFO - mockTransferCallback@chrome://mochitests/content/browser/browser/base/content/test/general/browser_save_video_frame.js:39:7
[task 2020-11-28T15:11:19.302Z] 15:11:19     INFO - MTFC_onStateChange@chrome://mochitests/content/browser/toolkit/content/tests/browser/common/mockTransfer.js:46:27
[task 2020-11-28T15:11:19.302Z] 15:11:19     INFO - DownloadListener/makeClosure/<@chrome://global/content/contentAreaUtils.js:135:22
[task 2020-11-28T15:11:19.302Z] 15:11:19     INFO - 
[task 2020-11-28T15:11:19.302Z] 15:11:19     INFO - Console message: [JavaScript Error: "NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "ok is not defined" {file: "chrome://mochitests/content/browser/browser/base/content/test/general/browser_save_video_frame.js" line: 39}]'[JavaScript Error: "ok is not defined" {file: "chrome://mochitests/content/browser/browser/base/content/test/general/browser_save_video_frame.js" line: 39}]' when calling method: [nsITransfer::onStateChange]" {file: "chrome://global/content/contentAreaUtils.js" line: 135}]
[task 2020-11-28T15:11:19.302Z] 15:11:19     INFO - DownloadListener/makeClosure/<@chrome://global/content/contentAreaUtils.js:135:22
[task 2020-11-28T15:11:19.302Z] 15:11:19     INFO - 
[task 2020-11-28T15:11:19.333Z] 15:11:19     INFO - GECKO(1398) | JavaScript error: chrome://browser/content/places/browserPlacesViews.js, line 131: Error: No DOM node set for aPlacesNode.
[task 2020-11-28T15:11:19.333Z] 15:11:19     INFO - GECKO(1398) | node.type: 0. node.parent: [xpconnect wrapped nsINavHistoryResultNode]
[task 2020-11-28T15:11:19.335Z] 15:11:19     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://mochi.test:8888/browser/browser/base/content/test/general/discovery.html" line: 0}]
[task 2020-11-28T15:11:19.336Z] 15:11:19     INFO - Console message: [JavaScript Error: "Error: No DOM node set for aPlacesNode.
[task 2020-11-28T15:11:19.336Z] 15:11:19     INFO - node.type: 0. node.parent: [xpconnect wrapped nsINavHistoryResultNode]" {file: "chrome://browser/content/places/browserPlacesViews.js" line: 131}]
[task 2020-11-28T15:11:19.336Z] 15:11:19     INFO - PVB__getDOMNodeForPlacesNode@chrome://browser/content/places/browserPlacesViews.js:131:13
[task 2020-11-28T15:11:19.336Z] 15:11:19     INFO - PVB_nodeTitleChanged@chrome://browser/content/places/browserPlacesViews.js:530:20
[task 2020-11-28T15:11:19.336Z] 15:11:19     INFO - 
[task 2020-11-28T15:11:19.948Z] 15:11:19     INFO - Console message: [JavaScript Warning: "Cannot play media. No decoders for requested formats: application/ogg" {file: "http://mochi.test:8888/browser/browser/base/content/test/general/web_video.html" line: 0}]
[task 2020-11-28T15:11:20.718Z] 15:11:20     INFO - Found 1 engines
[task 2020-11-28T15:11:20.718Z] 15:11:20     INFO - First engine title: 0
[task 2020-11-28T15:11:20.718Z] 15:11:20     INFO - TEST-PASS | browser/base/content/test/general/browser_search_discovery.js | rel search discovered - 
``````