Bug: Intermittent browser/base/content/test/general/browser_save_link-perwindowpb.js | uncaught exception - TypeError: mockTransferCallback is not a function at MTFC_onStateChange@chrome://mockTransfer.js
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-02-07 12:48:35+00:00
Resolved: 2021-03-30 17:03:12+00:00

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

---
```
[task 2021-02-07T10:53:42.051Z] 10:53:42     INFO - TEST-PASS | browser/base/content/test/general/browser_save_link-perwindowpb.js | 1 cookie should be set - 
[task 2021-02-07T10:53:42.053Z] 10:53:42     INFO - testOnWindow([object Object])
[task 2021-02-07T10:53:42.053Z] 10:53:42     INFO - got [object Window]
[task 2021-02-07T10:53:42.054Z] 10:53:42     INFO - whenDelayedStartupFinished
[task 2021-02-07T10:53:42.055Z] 10:53:42     INFO - Buffered messages finished
[task 2021-02-07T10:53:42.055Z] 10:53:42     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/general/browser_save_link-perwindowpb.js | uncaught exception - TypeError: mockTransferCallback is not a function at MTFC_onStateChange@chrome://mochitests/content/browser/toolkit/content/tests/browser/common/mockTransfer.js:46:27
[task 2021-02-07T10:53:42.055Z] 10:53:42     INFO - DownloadListener/makeClosure/<@chrome://global/content/contentAreaUtils.js:152:22
[task 2021-02-07T10:53:42.055Z] 10:53:42     INFO - 
[task 2021-02-07T10:53:42.055Z] 10:53:42     INFO - Stack trace:
[task 2021-02-07T10:53:42.055Z] 10:53:42     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:simpletestOnerror:2112
[task 2021-02-07T10:53:42.055Z] 10:53:42     INFO - chrome://global/content/contentAreaUtils.js:DownloadListener/makeClosure/<:152
[task 2021-02-07T10:53:42.055Z] 10:53:42     INFO - GECKO(1872) | JavaScript error: chrome://mochitests/content/browser/toolkit/content/tests/browser/common/mockTransfer.js, line 46: TypeError: mockTransferCallback is not a function
[task 2021-02-07T10:53:42.056Z] 10:53:42     INFO - GECKO(1872) | JavaScript error: chrome://global/content/contentAreaUtils.js, line 152: NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "mockTransferCallback is not a function" {file: "chrome://mochitests/content/browser/toolkit/content/tests/browser/common/mockTransfer.js" line: 46}]'[JavaScript Error: "mockTransferCallback is not a function" {file: "chrome://mochitests/content/browser/toolkit/content/tests/browser/common/mockTransfer.js" line: 46}]' when calling method: [nsITransfer::onStateChange]
[task 2021-02-07T10:53:42.057Z] 10:53:42     INFO - Console message: [JavaScript Error: "TypeError: mockTransferCallback is not a function" {file: "chrome://mochitests/content/browser/toolkit/content/tests/browser/common/mockTransfer.js" line: 46}]
[task 2021-02-07T10:53:42.057Z] 10:53:42     INFO - MTFC_onStateChange@chrome://mochitests/content/browser/toolkit/content/tests/browser/common/mockTransfer.js:46:27
[task 2021-02-07T10:53:42.057Z] 10:53:42     INFO - DownloadListener/makeClosure/<@chrome://global/content/contentAreaUtils.js:152:22
[task 2021-02-07T10:53:42.057Z] 10:53:42     INFO - 
[task 2021-02-07T10:53:42.058Z] 10:53:42     INFO - Console message: [JavaScript Error: "NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "mockTransferCallback is not a function" {file: "chrome://mochitests/content/browser/toolkit/content/tests/browser/common/mockTransfer.js" line: 46}]'[JavaScript Error: "mockTransferCallback is not a function" {file: "chrome://mochitests/content/browser/toolkit/content/tests/browser/common/mockTransfer.js" line: 46}]' when calling method: [nsITransfer::onStateChange]" {file: "chrome://global/content/contentAreaUtils.js" line: 152}]
[task 2021-02-07T10:53:42.451Z] 10:53:42     INFO - whenDelayedStartupFinished, got topic: browser-delayed-startup-finished, got subject: [object Window], waiting for [object Window]
[task 2021-02-07T10:53:42.451Z] 10:53:42     INFO - whenDelayedStartupFinished found our window
[task 2021-02-07T10:53:42.507Z] 10:53:42     INFO - started triggerSave
[task 2021-02-07T10:53:42.525Z] 10:53:42     INFO - observer called with http-on-modify-request
[task 2021-02-07T10:53:42.526Z] 10:53:42     INFO - onModifyRequest with http://mochi.test:8888/browser/browser/base/content/test/general/bug792517-2.html
[task 2021-02-07T10:53:42.547Z] 10:53:42     INFO - observer called with http-on-examine-response
[task 2021-02-07T10:53:42.547Z] 10:53:42     INFO - onExamineResponse with http://mochi.test:8888/browser/browser/base/content/test/general/bug792517-2.html
[task 2021-02-07T10:53:42.547Z] 10:53:42     INFO - returning
[task 2021-02-07T10:53:42.803Z] 10:53: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: "http://mochi.test:8888/browser/browser/base/content/test/general/bug792517-2.html" line: 0}]
[task 2021-02-07T10:53:42.804Z] 10:53:42     INFO - register to handle popupshown
[task 2021-02-07T10:53:42.804Z] 10:53:42     INFO - right clicked!
[task 2021-02-07T10:53:42.941Z] 10:53:42     INFO - contextMenuOpened
[task 2021-02-07T10:53:42.941Z] 10:53:42     INFO - create testsavedir!
[task 2021-02-07T10:53:42.941Z] 10:53:42     INFO - return from createTempSaveDir: /tmp/testsavedir
[task 2021-02-07T10:53:42.941Z] 10:53:42     INFO - saveLinkCommand: [object XULElement]
[task 2021-02-07T10:53:42.941Z] 10:53:42     INFO - popup hidden
[task 2021-02-07T10:53:42.948Z] 10:53:42     INFO - observer called with http-on-modify-request
[task 2021-02-07T10:53:42.949Z] 10:53:42     INFO - onModifyRequest with http://mochi.test:8888/browser/browser/base/content/test/general/bug792517.sjs
[task 2021-02-07T10:53:42.949Z] 10:53:42     INFO - onModifyRequest caught NOTAVAIL[Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIHttpChannel.getRequestHeader]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: chrome://mochitests/content/browser/browser/base/content/test/general/browser_save_link-perwindowpb.js :: onModifyRequest :: line 166"  data: no]
[task 2021-02-07T10:53:42.956Z] 10:53:42     INFO - observer called with http-on-examine-response
[task 2021-02-07T10:53:42.956Z] 10:53:42     INFO - onExamineResponse with http://mochi.test:8888/browser/browser/base/content/test/general/bug792517.sjs
[task 2021-02-07T10:53:42.956Z] 10:53:42     INFO - TEST-PASS | browser/base/content/test/general/browser_save_link-perwindowpb.js | Cookie should be foopy=1 - ```