Bug: Intermittent browser/base/content/test/protectionsUI/browser_protectionsUI_background_tabs.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2023-02-28 17:36:56+00:00
Resolved: 2024-01-01 12:04:12+00:00

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

---
```
[task 2023-02-28T16:56:25.331Z] 16:56:25     INFO - TEST-INFO | started process screenshot
[task 2023-02-28T16:56:25.413Z] 16:56:25     INFO - TEST-INFO | screenshot: exit 0
[task 2023-02-28T16:56:25.424Z] 16:56:25     INFO - Buffered messages logged at 16:56:07
[task 2023-02-28T16:56:25.425Z] 16:56:25     INFO - Entering test bound testBackgroundTabs
[task 2023-02-28T16:56:25.425Z] 16:56:25     INFO - Testing receiving and storing content blocking events in non-selected tabs.
[task 2023-02-28T16:56:25.426Z] 16:56:25     INFO - Buffered messages logged at 16:56:08
[task 2023-02-28T16:56:25.426Z] 16:56:25     INFO - Wait tab event: load
[task 2023-02-28T16:56:25.426Z] 16:56:25     INFO - Buffered messages logged at 16:56:14
[task 2023-02-28T16:56:25.427Z] 16:56:25     INFO - Console message: [JavaScript Error: "uncaught exception: undefined - timed out after 50 tries."]
[task 2023-02-28T16:56:25.427Z] 16:56:25     INFO - Tab event received: load
[task 2023-02-28T16:56:25.428Z] 16:56:25     INFO - Buffered messages finished
[task 2023-02-28T16:56:25.428Z] 16:56:25     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/protectionsUI/browser_protectionsUI_background_tabs.js | Uncaught exception in test bound testBackgroundTabs - "undefined - timed out after 50 tries."
[task 2023-02-28T16:56:25.429Z] 16:56:25     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-02-28T16:56:25.430Z] 16:56:25     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/protectionsUI/browser_protectionsUI_background_tabs.js | A promise chain failed to handle a rejection: undefined - timed out after 50 tries. - stack: (No stack available.)
[task 2023-02-28T16:56:25.431Z] 16:56:25     INFO - Rejection date: Tue Feb 28 2023 16:56:14 GMT+0000 (Greenwich Mean Time) - false == true - {"filename":"resource://testing-common/PromiseTestUtils.sys.mjs","name":"assertNoUncaughtRejections","sourceId":563,"lineNumber":266,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"handleTask","sourceId":529,"lineNumber":1065,"columnNumber":22,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":null,"formattedStack":"handleTask@chrome://mochikit/content/browser-test.js:1065:22\n","nativeSavedFrame":{}},"formattedStack":"assertNoUncaughtRejections@resource://testing-common/PromiseTestUtils.sys.mjs:266:14\nhandleTask@chrome://mochikit/content/browser-test.js:1065:22\n","nativeSavedFrame":{}}
[task 2023-02-28T16:56:25.431Z] 16:56:25     INFO - Stack trace:
[task 2023-02-28T16:56:25.431Z] 16:56:25     INFO - resource://testing-common/PromiseTestUtils.sys.mjs:assertNoUncaughtRejections:266
[task 2023-02-28T16:56:25.431Z] 16:56:25     INFO - chrome://mochikit/content/browser-test.js:handleTask:1065
[task 2023-02-28T16:56:25.431Z] 16:56:25     INFO - Leaving test bound testBackgroundTabs
[task 2023-02-28T16:56:25.432Z] 16:56:25     INFO - Console message: [JavaScript Warning: "The resource at �http://trackertest.org/� was blocked because content blocking is enabled." {file: "http://tracking.example.org/browser/browser/base/content/test/protectionsUI/trackingPage.html" line: 0}]
[task 2023-02-28T16:56:25.432Z] 16:56:25     INFO - GECKO(6260) | MEMORY STAT | vsize 2112490MB | vsizeMaxContiguous 66512970MB | residentFast 326MB | heapAllocated 118MB
[task 2023-02-28T16:56:25.433Z] 16:56:25     INFO - TEST-OK | browser/base/content/test/protectionsUI/browser_protectionsUI_background_tabs.js | took 6752ms
[task 2023-02-28T16:56:25.433Z] 16:56:25     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-02-28T16:56:25.434Z] 16:56:25     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/protectionsUI/browser_protectionsUI_background_tabs.js | Found an unexpected tab at the end of test run: http://tracking.example.org/browser/browser/base/content/test/protectionsUI/trackingPage.html - 
[task 2023-02-28T16:56:25.434Z] 16:56:25     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-02-28T16:56:25.436Z] 16:56:25     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/protectionsUI/browser_protectionsUI_background_tabs.js | Found an unexpected tab at the end of test run: http://tracking.example.org/browser/browser/base/content/test/protectionsUI/benignPage.html - 
[task 2023-02-28T16:56:25.436Z] 16:56:25     INFO - GECKO(6260) | [Child 8840: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 19386032000 == 1 [pid = 8840] [id = 3]
[task 2023-02-28T16:56:25.437Z] 16:56:25     INFO - GECKO(6260) | [Child 8840: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (19380f80da0) [pid = 8840] [serial = 9] [outer = 0]
[task 2023-02-28T16:56:25.437Z] 16:56:25     INFO - GECKO(6260) | [Child 8840: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 4 (19386032c00) [pid = 8840] [serial = 10] [outer = 19380f80da0]
[task 2023-02-28T16:56:25.437Z] 16:56:25     INFO - checking window state
[task 2023-02-28T16:56:25.438Z] 16:56:25     INFO - TEST-START | browser/base/content/test/protectionsUI/browser_protectionsUI_categories.js
```