Bug: Intermittent browser/components/newtab/test/browser/browser_highlights_section.js | Uncaught exception - Should render activity stream content - threw exception: [Exception... "(null)"  nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)"
Status: RESOLVED
Priority: P5
Resolution: WORKSFORME
Created: 2020-01-22 01:22:35+00:00
Resolved: 2020-03-31 16:56:57+00:00

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

---

[task 2020-01-22T00:14:17.071Z] 00:14:17     INFO - TEST-START | browser/components/newtab/test/browser/browser_highlights_section.js
[task 2020-01-22T00:14:20.790Z] 00:14:20     INFO - GECKO(10252) | JavaScript error: chrome://mochitests/content/browser/browser/components/newtab/test/browser/head.js, line 186: TypeError: content.document.getElementById(...) is null
[task 2020-01-22T00:14:20.790Z] 00:14:20     INFO - TEST-INFO | started process screenshot
[task 2020-01-22T00:14:20.848Z] 00:14:20     INFO - TEST-INFO | screenshot: exit 0
[task 2020-01-22T00:14:20.848Z] 00:14:20     INFO - Buffered messages logged at 00:14:17
[task 2020-01-22T00:14:20.849Z] 00:14:20     INFO - Entering test bound check_highlights_cards
[task 2020-01-22T00:14:20.849Z] 00:14:20     INFO - Buffered messages finished
[task 2020-01-22T00:14:20.849Z] 00:14:20     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/browser_highlights_section.js | Uncaught exception - Should render activity stream content - threw exception: [Exception... "(null)"  nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)"  location: "<unknown>"  data: no]
[task 2020-01-22T00:14:20.850Z] 00:14:20     INFO - Leaving test bound check_highlights_cards
[task 2020-01-22T00:14:20.850Z] 00:14:20     INFO - Entering test bound check_highlights_context_menu
[task 2020-01-22T00:14:20.850Z] 00:14:20     INFO - Console message: [JavaScript Error: "TypeError: content.document.getElementById(...) is null" {file: "chrome://mochitests/content/browser/browser/components/newtab/test/browser/head.js" line: 186}]
[task 2020-01-22T00:14:21.317Z] 00:14:21     INFO - Console message: [JavaScript Error: "getScreenshot(https://mozilla0.com/nowNew) failed: TypeError: NetworkError when attempting to fetch resource." {file: "resource://activity-stream/lib/Screenshots.jsm" line: 59}]
[task 2020-01-22T00:14:21.317Z] 00:14:21     INFO - getScreenshotForURL@resource://activity-stream/lib/Screenshots.jsm:59:10
[task 2020-01-22T00:14:21.317Z] 00:14:21     INFO - 
[task 2020-01-22T00:14:21.449Z] 00:14:21     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_highlights_section.js | Should find a visible context menu - true == true - 
[task 2020-01-22T00:14:21.493Z] 00:14:21     INFO - Leaving test bound check_highlights_context_menu
[task 2020-01-22T00:14:21.493Z] 00:14:21     INFO - Entering test bound check_highlights_context_menu
[task 2020-01-22T00:14:22.029Z] 00:14:22     INFO - Console message: [JavaScript Error: "getScreenshot(https://mozilla0.com/nowNew) failed: TypeError: NetworkError when attempting to fetch resource." {file: "resource://activity-stream/lib/Screenshots.jsm" line: 59}]
[task 2020-01-22T00:14:22.029Z] 00:14:22     INFO - getScreenshotForURL@resource://activity-stream/lib/Screenshots.jsm:59:10
[task 2020-01-22T00:14:22.029Z] 00:14:22     INFO - 
[task 2020-01-22T00:14:22.147Z] 00:14:22     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_highlights_section.js | there should be 1 bookmark icon - 1 == 1 - 
[task 2020-01-22T00:14:22.157Z] 00:14:22     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_highlights_section.js | Should find a visible context menu - true == true - 
[task 2020-01-22T00:14:22.280Z] 00:14:22     INFO - Leaving test bound check_highlights_context_menu
[task 2020-01-22T00:14:22.339Z] 00:14:22     INFO - GECKO(10252) | MEMORY STAT | vsize 2104221MB | vsizeMaxContiguous 66780523MB | residentFast 359MB | heapAllocated 178MB
[task 2020-01-22T00:14:22.339Z] 00:14:22     INFO - TEST-OK | browser/components/newtab/test/browser/browser_highlights_section.js | took 5262ms
[task 2020-01-22T00:14:22.339Z] 00:14:22     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-01-22T00:14:22.339Z] 00:14:22     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/browser_highlights_section.js | Found an unexpected tab at the end of test run: about:blank - 
[task 2020-01-22T00:14:22.357Z] 00:14:22     INFO - checking window state