Bug: Intermittent browser/components/newtab/test/browser/browser_getScreenshots.js | Uncaught exception - at chrome://mochitests/content/browser/browser/components/newtab/test/browser/browser_getScreenshots.js:36 - TypeError: stringOrObject is null
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2021-09-09 18:43:04+00:00
Resolved: 2022-07-26 16:51:38+00:00

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

---
```
[task 2021-09-09T17:43:49.987Z] 17:43:49     INFO - TEST-START | browser/components/newtab/test/browser/browser_getScreenshots.js
[task 2021-09-09T17:43:50.032Z] 17:43:50     INFO - TEST-INFO | started process screencapture
[task 2021-09-09T17:43:50.290Z] 17:43:50     INFO - TEST-INFO | screencapture: exit 0
[task 2021-09-09T17:43:50.291Z] 17:43:50     INFO - Buffered messages logged at 17:43:49
[task 2021-09-09T17:43:50.291Z] 17:43:50     INFO - Entering test bound test_screenshot
[task 2021-09-09T17:43:50.291Z] 17:43:50     INFO - Buffered messages logged at 17:43:50
[task 2021-09-09T17:43:50.292Z] 17:43:50     INFO - Console message: [JavaScript Warning: "An iframe which has both allow-top-navigation and allow-top-navigation-by-user-activation for its sandbox attribute will permit top navigations." {file: "about:blank" line: 0}]
[task 2021-09-09T17:43:50.293Z] 17:43:50     INFO - Console message: [JavaScript Error: "getScreenshot(https://example.com/browser/browser/components/newtab/test/browser/blue_page.html) failed: Error: page-thumbnail:error" {file: "resource://activity-stream/lib/Screenshots.jsm" line: 79}]
[task 2021-09-09T17:43:50.293Z] 17:43:50     INFO - getScreenshotForURL@resource://activity-stream/lib/Screenshots.jsm:79:10
[task 2021-09-09T17:43:50.293Z] 17:43:50     INFO - 
[task 2021-09-09T17:43:50.293Z] 17:43:50     INFO - Buffered messages finished
[task 2021-09-09T17:43:50.294Z] 17:43:50     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/browser_getScreenshots.js | Uncaught exception - at chrome://mochitests/content/browser/browser/components/newtab/test/browser/browser_getScreenshots.js:36 - TypeError: stringOrObject is null
[task 2021-09-09T17:43:50.294Z] 17:43:50     INFO - Stack trace:
[task 2021-09-09T17:43:50.294Z] 17:43:50     INFO - get_pixels/<@chrome://mochitests/content/browser/browser/components/newtab/test/browser/browser_getScreenshots.js:36:7
[task 2021-09-09T17:43:50.294Z] 17:43:50     INFO - get_pixels@chrome://mochitests/content/browser/browser/components/newtab/test/browser/browser_getScreenshots.js:18:10
[task 2021-09-09T17:43:50.294Z] 17:43:50     INFO - test_screenshot@chrome://mochitests/content/browser/browser/components/newtab/test/browser/browser_getScreenshots.js:64:22
[task 2021-09-09T17:43:50.294Z] 17:43:50     INFO - Leaving test bound test_screenshot
[task 2021-09-09T17:43:50.295Z] 17:43:50     INFO - Console message: [JavaScript Warning: "An iframe which has both allow-top-navigation and allow-top-navigation-by-user-activation for its sandbox attribute will permit top navigations." {file: "https://example.com/browser/browser/components/newtab/test/browser/blue_page.html" line: 0}]
[task 2021-09-09T17:43:50.295Z] 17:43:50     INFO - GECKO(1493) | MEMORY STAT | vsize 8141MB | residentFast 455MB | heapAllocated 140MB
[task 2021-09-09T17:43:50.296Z] 17:43:50     INFO - TEST-OK | browser/components/newtab/test/browser/browser_getScreenshots.js | took 50ms
[task 2021-09-09T17:43:50.296Z] 17:43:50     INFO - checking window state
[task 2021-09-09T17:43:50.297Z] 17:43:50     INFO - TEST-START | browser/components/newtab/test/browser/browser_highlights_section.js
```