Bug: Intermittent TV browser/base/content/test/protectionsUI/browser_protectionsUI_fetch.js | single tracking bug (fails when run on its own)
Status: NEW
Priority: P5
Created: 2023-05-20 15:37:37+00:00
Resolved: 2024-05-20 07:13:56+00:00

**Filed by:** nfay [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=416457222&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/KkbgwMSLSzW7AnCL0rJaJg/runs/0/artifacts/public/logs/live_backing.log
**Reftest URL:** https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/KkbgwMSLSzW7AnCL0rJaJg/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
[task 2023-05-20T13:44:03.456Z] 13:44:03     INFO - TEST-START | browser/base/content/test/protectionsUI/browser_protectionsUI_fetch.js
[task 2023-05-20T13:44:03.897Z] 13:44:03     INFO - GECKO(4619) | console.error: (new Error("Unexpected content-type \"text/plain;charset=US-ASCII\"", "resource://services-settings/Utils.sys.mjs", 399))
[task 2023-05-20T13:44:03.907Z] 13:44:03     INFO - TEST-INFO | started process screencapture
[task 2023-05-20T13:44:04.020Z] 13:44:04     INFO - TEST-INFO | screencapture: exit 0
[task 2023-05-20T13:44:04.020Z] 13:44:04     INFO - Buffered messages logged at 13:44:03
[task 2023-05-20T13:44:04.020Z] 13:44:04     INFO - Entering test bound test_fetch
[task 2023-05-20T13:44:04.021Z] 13:44:04     INFO - Received onContentBlockingEvent event: 4096 (1 of 1)
[task 2023-05-20T13:44:04.021Z] 13:44:04     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_fetch.js | Caught exception: TypeError: NetworkError when attempting to fetch resource. - true == true - 
[task 2023-05-20T13:44:04.022Z] 13:44:04     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_fetch.js | got CB object - 
[task 2023-05-20T13:44:04.022Z] 13:44:04     INFO - Console message: [JavaScript Error: "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://trackertest.org/browser/browser/base/content/test/protectionsUI/file_protectionsUI_fetch.js. (Reason: CORS request did not succeed). Status code: (null)."]
[task 2023-05-20T13:44:04.023Z] 13:44:04     INFO - Console message: [JavaScript Warning: "The resource at “http://trackertest.org/browser/browser/base/content/test/protectionsUI/file_protectionsUI_fetch.js” was blocked because content blocking is enabled." {file: "http://mochi.test:8888/browser/browser/base/content/test/protectionsUI/file_protectionsUI_fetch.html" line: 0}]
[task 2023-05-20T13:44:04.023Z] 13:44:04     INFO - Buffered messages finished
[task 2023-05-20T13:44:04.024Z] 13:44:04     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/protectionsUI/browser_protectionsUI_fetch.js | Uncaught exception in test bound test_fetch - at chrome://mochitests/content/browser/browser/base/content/test/protectionsUI/browser_protectionsUI_fetch.js:25 - TypeError: can't access property "hasAttribute", gProtectionsHandler._protectionsPopup is null
[task 2023-05-20T13:44:04.025Z] 13:44:04     INFO - Stack trace:
[task 2023-05-20T13:44:04.025Z] 13:44:04     INFO - test_fetch/<@chrome://mochitests/content/browser/browser/base/content/test/protectionsUI/browser_protectionsUI_fetch.js:25:1
[task 2023-05-20T13:44:04.025Z] 13:44:04     INFO - async*withNewTab@resource://testing-common/BrowserTestUtils.sys.mjs:149:22
[task 2023-05-20T13:44:04.025Z] 13:44:04     INFO - async*test_fetch@chrome://mochitests/content/browser/browser/base/content/test/protectionsUI/browser_protectionsUI_fetch.js:9:26
[task 2023-05-20T13:44:04.025Z] 13:44:04     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1133:26
[task 2023-05-20T13:44:04.025Z] 13:44:04     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1205:18
[task 2023-05-20T13:44:04.025Z] 13:44:04     INFO - Tester_execTest@chrome://mochikit/content/browser-test.js:1347:14
[task 2023-05-20T13:44:04.025Z] 13:44:04     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1116:14
[task 2023-05-20T13:44:04.025Z] 13:44:04     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1056:13
[task 2023-05-20T13:44:04.025Z] 13:44:04     INFO - Leaving test bound test_fetch
[task 2023-05-20T13:44:04.645Z] 13:44:04     INFO - GECKO(4619) | JavaScript error: resource://gre/modules/XULStore.sys.mjs, line 60: Error: Can't find profile directory.
[task 2023-05-20T13:44:04.648Z] 13:44:04     INFO - Console message: [JavaScript Error: "Error: Can't find profile directory." {file: "resource://gre/modules/XULStore.sys.mjs" line: 60}]
[task 2023-05-20T13:44:04.648Z] 13:44:04     INFO - load@resource://gre/modules/XULStore.sys.mjs:60:15
[task 2023-05-20T13:44:04.648Z] 13:44:04     INFO - XULStore@resource://gre/modules/XULStore.sys.mjs:17:10
[task 2023-05-20T13:44:04.648Z] 13:44:04     INFO - 
[task 2023-05-20T13:44:04.778Z] 13:44:04     INFO - GECKO(4619) | MEMORY STAT vsizeMaxContiguous not supported in this build configuration.
[task 2023-05-20T13:44:04.779Z] 13:44:04     INFO - GECKO(4619) | MEMORY STAT | vsize 15513MB | residentFast 303MB | heapAllocated 146MB
[task 2023-05-20T13:44:04.779Z] 13:44:04     INFO - TEST-OK | browser/base/content/test/protectionsUI/browser_protectionsUI_fetch.js | took 1323ms
[task 2023-05-20T13:44:04.791Z] 13:44:04     INFO - checking window state
[task 2023-05-20T13:44:04.798Z] 13:44:04     INFO - GECKO(4619) | Completed ShutdownLeaks collections in process 4619
[task 2023-05-20T13:44:04.799Z] 13:44:04     INFO - TEST-START | Shutdown
[task 2023-05-20T13:44:04.800Z] 13:44:04     INFO - Browser Chrome Test Summary
[task 2023-05-20T13:44:04.800Z] 13:44:04     INFO - Passed:  2
[task 2023-05-20T13:44:04.800Z] 13:44:04     INFO - Failed:  1
[task 2023-05-20T13:44:04.801Z] 13:44:04     INFO - Todo:    0
[task 2023-05-20T13:44:04.801Z] 13:44:04     INFO - Mode:    e10s
[task 2023-05-20T13:44:04.801Z] 13:44:04     INFO - *** End BrowserChrome Test Results ***
```