Bug: Intermittent browser/components/protections/test/browser/browser_protections_report_ui.js | today has all of the data types shown - 0 == 5 - got 0, expected 5 (operator ==)
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-06-01 00:23:35+00:00
Resolved: 2021-11-02 17:05:24+00:00

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

---
```
[task 2021-05-31T23:59:58.536Z] 23:59:58     INFO - TEST-START | browser/components/protections/test/browser/browser_protections_report_ui.js
[task 2021-05-31T23:59:59.942Z] 23:59:59     INFO - GECKO(2516) | 1622505599941	FirefoxAccounts	ERROR	FxA rejecting with error NO_ACCOUNT, details: undefined
[task 2021-06-01T00:00:00.580Z] 00:00:00     INFO - TEST-INFO | started process screentopng
[task 2021-06-01T00:00:00.869Z] 00:00:00     INFO - TEST-INFO | screentopng: exit 0
[task 2021-06-01T00:00:00.869Z] 00:00:00     INFO - Buffered messages logged at 23:59:58
[task 2021-06-01T00:00:00.869Z] 00:00:00     INFO - Entering test bound setup
[task 2021-06-01T00:00:00.869Z] 00:00:00     INFO - Leaving test bound setup
[task 2021-06-01T00:00:00.869Z] 00:00:00     INFO - Entering test bound test_graph_display
[task 2021-06-01T00:00:00.869Z] 00:00:00     INFO - Buffered messages logged at 23:59:59
[task 2021-06-01T00:00:00.870Z] 00:00:00     INFO - Console message: [JavaScript Error: "There was an error fetching the user's token: " {file: "resource:///actors/AboutProtectionsParent.jsm" line: 284}]
[task 2021-06-01T00:00:00.870Z] 00:00:00     INFO - getMonitorScopedOAuthToken@resource:///actors/AboutProtectionsParent.jsm:284:10
[task 2021-06-01T00:00:00.870Z] 00:00:00     INFO - 
[task 2021-06-01T00:00:00.871Z] 00:00:00     INFO - Buffered messages logged at 00:00:00
[task 2021-06-01T00:00:00.871Z] 00:00:00     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_report_ui.js | 7 bars have been found on the graph - 7 == 7 - 
[task 2021-06-01T00:00:00.872Z] 00:00:00     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_report_ui.js | Graph is an accessible table - "table" == "table" - 
[task 2021-06-01T00:00:00.873Z] 00:00:00     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_report_ui.js | Table has the right number of columns - "7" == 7 - 
[task 2021-06-01T00:00:00.874Z] 00:00:00     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_report_ui.js | Table has an accessible label - "graphLegendDescription" == "graphLegendDescription" - 
[task 2021-06-01T00:00:00.875Z] 00:00:00     INFO - Buffered messages finished
[task 2021-06-01T00:00:00.876Z] 00:00:00     INFO - TEST-UNEXPECTED-FAIL | browser/components/protections/test/browser/browser_protections_report_ui.js | today has all of the data types shown - 0 == 5 - got 0, expected 5 (operator ==)
[task 2021-06-01T00:00:00.877Z] 00:00:00     INFO - Stack trace:
[task 2021-06-01T00:00:00.877Z] 00:00:00     INFO - @chrome://mochitests/content/browser/browser/components/protections/test/browser/browser_protections_report_ui.js:229:12
[task 2021-06-01T00:00:00.878Z] 00:00:00     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_report_ui.js | Today has the correct role - "row" == "row" - 
[task 2021-06-01T00:00:00.879Z] 00:00:00     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-01T00:00:00.880Z] 00:00:00     INFO - TEST-UNEXPECTED-FAIL | browser/components/protections/test/browser/browser_protections_report_ui.js | Row has the columns in the right order - "day0 " == "day0 count0 cryptominer0 fingerprinter0 tracker0 cookie0 social0" - got "day0 ", expected "day0 count0 cryptominer0 fingerprinter0 tracker0 cookie0 social0" (operator ==)
[task 2021-06-01T00:00:00.881Z] 00:00:00     INFO - Stack trace:
[task 2021-06-01T00:00:00.882Z] 00:00:00     INFO - @chrome://mochitests/content/browser/browser/components/protections/test/browser/browser_protections_report_ui.js:239:12
[task 2021-06-01T00:00:00.883Z] 00:00:00     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-01T00:00:00.884Z] 00:00:00     INFO - TEST-UNEXPECTED-FAIL | browser/components/protections/test/browser/browser_protections_report_ui.js | Uncaught exception - at chrome://mochitests/content/browser/browser/components/protections/test/browser/browser_protections_report_ui.js:245 - TypeError: can't access property "style", allBars[6].querySelector(...) is null
[task 2021-06-01T00:00:00.885Z] 00:00:00     INFO - Stack trace:
[task 2021-06-01T00:00:00.886Z] 00:00:00     INFO - @chrome://mochitests/content/browser/browser/components/protections/test/browser/browser_protections_report_ui.js:245:18
[task 2021-06-01T00:00:00.887Z] 00:00:00     INFO - Leaving test bound test_graph_display
[task 2021-06-01T00:00:00.887Z] 00:00:00     INFO - Entering test bound test_etp_custom_settings
[task 2021-06-01T00:00:01.725Z] 00:00:01     INFO - GECKO(2516) | 1622505601723	FirefoxAccounts	ERROR	FxA rejecting with error NO_ACCOUNT, details: undefined
[task 2021-06-01T00:00:01.730Z] 00:00:01     INFO - Console message: [JavaScript Error: "There was an error fetching the user's token: " {file: "resource:///actors/AboutProtectionsParent.jsm" line: 284}]
[task 2021-06-01T00:00:01.730Z] 00:00:01     INFO - getMonitorScopedOAuthToken@resource:///actors/AboutProtectionsParent.jsm:284:10
[task 2021-06-01T00:00:01.730Z] 00:00:01     INFO - 
[task 2021-06-01T00:00:02.256Z] 00:00:02     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_report_ui.js | Cookie Label is hidden - true == true - 
[task 2021-06-01T00:00:02.262Z] 00:00:02     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_report_ui.js | Tracker Label is visible - true == true - 
[task 2021-06-01T00:00:02.267Z] 00:00:02     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_report_ui.js | Social Label is visible - true == true - 
[task 2021-06-01T00:00:02.272Z] 00:00:02     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_report_ui.js | Cryptominer Label is visible - true == true - 
[task 2021-06-01T00:00:02.278Z] 00:00:02     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_report_ui.js | Fingerprinter Label is visible - true == true - 
[task 2021-06-01T00:00:03.582Z] 00:00:03     INFO - GECKO(2516) | 1622505603581	FirefoxAccounts	ERROR	FxA rejecting with error NO_ACCOUNT, details: undefined
[task 2021-06-01T00:00:03.588Z] 00:00:03     INFO - Console message: [JavaScript Error: "There was an error fetching the user's token: " {file: "resource:///actors/AboutProtectionsParent.jsm" line: 284}]
[task 2021-06-01T00:00:03.588Z] 00:00:03     INFO - getMonitorScopedOAuthToken@resource:///actors/AboutProtectionsParent.jsm:284:10
[task 2021-06-01T00:00:03.588Z] 00:00:03     INFO - 
[task 2021-06-01T00:00:04.202Z] 00:00:04     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_report_ui.js | Tracker Label is hidden - true == true - 
[task 2021-06-01T00:00:04.205Z] 00:00:04     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_report_ui.js | Social Label is hidden - true == true - 
[task 2021-06-01T00:00:05.539Z] 00:00:05     INFO - GECKO(2516) | 1622505605537	FirefoxAccounts	ERROR	FxA rejecting with error NO_ACCOUNT, details: undefined
[task 2021-06-01T00:00:05.545Z] 00:00:05     INFO - Console message: [JavaScript Error: "There was an error fetching the user's token: " {file: "resource:///actors/AboutProtectionsParent.jsm" line: 284}]
[task 2021-06-01T00:00:05.545Z] 00:00:05     INFO - getMonitorScopedOAuthToken@resource:///actors/AboutProtectionsParent.jsm:284:10
[task 2021-06-01T00:00:05.545Z] 00:00:05     INFO - 
[task 2021-06-01T00:00:06.156Z] 00:00:06     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_report_ui.js | Social Label is hidden - true == true - 
[task 2021-06-01T00:00:07.434Z] 00:00:07     INFO - GECKO(2516) | 1622505607432	FirefoxAccounts	ERROR	FxA rejecting with error NO_ACCOUNT, details: undefined
[task 2021-06-01T00:00:07.439Z] 00:00:07     INFO - Console message: [JavaScript Error: "There was an error fetching the user's token: " {file: "resource:///actors/AboutProtectionsParent.jsm" line: 284}]
[task 2021-06-01T00:00:07.439Z] 00:00:07     INFO - getMonitorScopedOAuthToken@resource:///actors/AboutProtectionsParent.jsm:284:10
[task 2021-06-01T00:00:07.439Z] 00:00:07     INFO - 
[task 2021-06-01T00:00:08.057Z] 00:00:08     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_report_ui.js | Fingerprinter Label is hidden - true == true - 
[task 2021-06-01T00:00:09.326Z] 00:00:09     INFO - GECKO(2516) | 1622505609325	FirefoxAccounts	ERROR	FxA rejecting with error NO_ACCOUNT, details: undefined
[task 2021-06-01T00:00:09.332Z] 00:00:09     INFO - Console message: [JavaScript Error: "There was an error fetching the user's token: " {file: "resource:///actors/AboutProtectionsParent.jsm" line: 284}]
[task 2021-06-01T00:00:09.333Z] 00:00:09     INFO - getMonitorScopedOAuthToken@resource:///actors/AboutProtectionsParent.jsm:284:10
[task 2021-06-01T00:00:09.333Z] 00:00:09     INFO - 
[task 2021-06-01T00:00:09.962Z] 00:00:09     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_report_ui.js | Cryptominer Label is hidden - true == true - 
[task 2021-06-01T00:00:10.331Z] 00:00:10     INFO - Leaving test bound test_etp_custom_settings
[task 2021-06-01T00:00:10.332Z] 00:00:10     INFO - Entering test bound test_etp_custom_protections_off
[task 2021-06-01T00:00:11.322Z] 00:00:11     INFO - GECKO(2516) | 1622505611320	FirefoxAccounts	ERROR	FxA rejecting with error NO_ACCOUNT, details: undefined
[task 2021-06-01T00:00:11.328Z] 00:00:11     INFO - Console message: [JavaScript Error: "There was an error fetching the user's token: " {file: "resource:///actors/AboutProtectionsParent.jsm" line: 284}]
[task 2021-06-01T00:00:11.328Z] 00:00:11     INFO - getMonitorScopedOAuthToken@resource:///actors/AboutProtectionsParent.jsm:284:10
[task 2021-06-01T00:00:11.328Z] 00:00:11     INFO - 
[task 2021-06-01T00:00:11.811Z] 00:00:11     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_report_ui.js | Button to manage protections is displayed - true == true - 
[task 2021-06-01T00:00:12.472Z] 00:00:12     INFO - GECKO(2516) | 1622505612470	FirefoxAccounts	ERROR	FxA rejecting with error NO_ACCOUNT, details: undefined
[task 2021-06-01T00:00:12.477Z] 00:00:12     INFO - Console message: [JavaScript Error: "There was an error fetching the user's token: " {file: "resource:///actors/AboutProtectionsParent.jsm" line: 284}]
[task 2021-06-01T00:00:12.477Z] 00:00:12     INFO - getMonitorScopedOAuthToken@resource:///actors/AboutProtectionsParent.jsm:284:10
[task 2021-06-01T00:00:12.477Z] 00:00:12     INFO - 
[task 2021-06-01T00:00:12.913Z] 00:00:12     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_report_ui.js | Button to manage protections is displayed - true == true - 
[task 2021-06-01T00:00:16.035Z] 00:00:16     INFO - about:preferences#privacy was successfully opened in a new tab
[task 2021-06-01T00:00:16.339Z] 00:00:16     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_report_ui.js | length is 0 - 
[task 2021-06-01T00:00:16.503Z] 00:00:16     INFO - Leaving test bound test_etp_custom_protections_off
[task 2021-06-01T00:00:16.504Z] 00:00:16     INFO - Entering test bound test_etp_mobile_promotion_pref_on
[task 2021-06-01T00:00:17.432Z] 00:00:17     INFO - GECKO(2516) | 1622505617430	FirefoxAccounts	ERROR	FxA rejecting with error NO_ACCOUNT, details: undefined
[task 2021-06-01T00:00:17.437Z] 00:00:17     INFO - Console message: [JavaScript Error: "There was an error fetching the user's token: " {file: "resource:///actors/AboutProtectionsParent.jsm" line: 284}]
[task 2021-06-01T00:00:17.437Z] 00:00:17     INFO - getMonitorScopedOAuthToken@resource:///actors/AboutProtectionsParent.jsm:284:10
[task 2021-06-01T00:00:17.437Z] 00:00:17     INFO - 
[task 2021-06-01T00:00:17.788Z] 00:00:17     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_report_ui.js | Mobile promotions card is displayed when pref is on and there are no synced mobile devices - true == true - 
[task 2021-06-01T00:00:17.811Z] 00:00:17     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_report_ui.js | Mobile promotions card is no longer displayed after clicking the X button - true == true - 
[task 2021-06-01T00:00:18.943Z] 00:00:18     INFO - GECKO(2516) | 1622505618942	FirefoxAccounts	ERROR	FxA rejecting with error NO_ACCOUNT, details: undefined
[task 2021-06-01T00:00:18.950Z] 00:00:18     INFO - Console message: [JavaScript Error: "There was an error fetching the user's token: " {file: "resource:///actors/AboutProtectionsParent.jsm" line: 284}]
[task 2021-06-01T00:00:18.950Z] 00:00:18     INFO - getMonitorScopedOAuthToken@resource:///actors/AboutProtectionsParent.jsm:284:10
[task 2021-06-01T00:00:18.951Z] 00:00:18     INFO - 
[task 2021-06-01T00:00:19.355Z] 00:00:19     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_report_ui.js | Mobile promotions card is hidden when pref is on if there are synced mobile devices - true == true - 
[task 2021-06-01T00:00:19.518Z] 00:00:19     INFO - Leaving test bound test_etp_mobile_promotion_pref_on
[task 2021-06-01T00:00:19.519Z] 00:00:19     INFO - Entering test bound test_etp_mobile_promotion_pref_on
[task 2021-06-01T00:00:20.396Z] 00:00:20     INFO - GECKO(2516) | 1622505620395	FirefoxAccounts	ERROR	FxA rejecting with error NO_ACCOUNT, details: undefined
[task 2021-06-01T00:00:20.401Z] 00:00:20     INFO - Console message: [JavaScript Error: "There was an error fetching the user's token: " {file: "resource:///actors/AboutProtectionsParent.jsm" line: 284}]
[task 2021-06-01T00:00:20.401Z] 00:00:20     INFO - getMonitorScopedOAuthToken@resource:///actors/AboutProtectionsParent.jsm:284:10
[task 2021-06-01T00:00:20.401Z] 00:00:20     INFO - 
[task 2021-06-01T00:00:20.738Z] 00:00:20     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_report_ui.js | Mobile promotions card is not displayed when pref is off and there are no synced mobile devices - true == true - 
[task 2021-06-01T00:00:21.732Z] 00:00:21     INFO - GECKO(2516) | 1622505621731	FirefoxAccounts	ERROR	FxA rejecting with error NO_ACCOUNT, details: undefined
[task 2021-06-01T00:00:21.737Z] 00:00:21     INFO - Console message: [JavaScript Error: "There was an error fetching the user's token: " {file: "resource:///actors/AboutProtectionsParent.jsm" line: 284}]
[task 2021-06-01T00:00:21.738Z] 00:00:21     INFO - getMonitorScopedOAuthToken@resource:///actors/AboutProtectionsParent.jsm:284:10
[task 2021-06-01T00:00:21.738Z] 00:00:21     INFO - 
[task 2021-06-01T00:00:22.069Z] 00:00:22     INFO - TEST-PASS | browser/components/protections/test/browser/browser_protections_report_ui.js | Mobile promotions card is not displayed when pref is off even if there are synced mobile devices - true == true - 
[task 2021-06-01T00:00:22.183Z] 00:00:22     INFO - Console message: [JavaScript Error: "Warning: Sqlite connection 'protections.sqlite#1' was not properly closed. Auto-close triggered by garbage collection.
[task 2021-06-01T00:00:22.184Z] 00:00:22     INFO - " {file: "resource://gre/modules/Sqlite.jsm" line: 75}]
[task 2021-06-01T00:00:22.186Z] 00:00:22     INFO - GECKO(2516) | JavaScript error: resource://gre/modules/Sqlite.jsm, line 91: Error: Warning: Sqlite connection 'protections.sqlite#1' was not properly closed. Auto-close triggered by garbage collection.
[task 2021-06-01T00:00:22.188Z] 00:00:22     INFO - Console message: [JavaScript Error: "Error: Warning: Sqlite connection 'protections.sqlite#1' was not properly closed. Auto-close triggered by garbage collection.
[task 2021-06-01T00:00:22.188Z] 00:00:22     INFO - " {file: "resource://gre/modules/Sqlite.jsm" line: 91}]
[task 2021-06-01T00:00:22.301Z] 00:00:22     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-01T00:00:22.303Z] 00:00:22     INFO - TEST-UNEXPECTED-FAIL | browser/components/protections/test/browser/browser_protections_report_ui.js | A promise chain failed to handle a rejection: Warning: Sqlite connection 'protections.sqlite#1' was not properly closed. Auto-close triggered by garbage collection.
[task 2021-06-01T00:00:22.303Z] 00:00:22     INFO -  - stack: logScriptError@resource://gre/modules/Sqlite.jsm:91:20
[task 2021-06-01T00:00:22.303Z] 00:00:22     INFO - finalizationObserver@resource://gre/modules/Sqlite.jsm:154:19
[task 2021-06-01T00:00:22.303Z] 00:00:22     INFO - permitUnload@chrome://global/content/elements/browser-custom-element.js:1718:21
[task 2021-06-01T00:00:22.303Z] 00:00:22     INFO - _beginRemoveTab@chrome://browser/content/tabbrowser.js:3705:40
[task 2021-06-01T00:00:22.303Z] 00:00:22     INFO - removeTab@chrome://browser/content/tabbrowser.js:3599:15
[task 2021-06-01T00:00:22.304Z] 00:00:22     INFO - removeTab@resource://testing-common/BrowserTestUtils.jsm:1755:30
[task 2021-06-01T00:00:22.304Z] 00:00:22     INFO - test_etp_mobile_promotion_pref_on@chrome://mochitests/content/browser/browser/components/protections/test/browser/browser_protections_report_ui.js:821:20
[task 2021-06-01T00:00:22.304Z] 00:00:22     INFO - Rejection date: Tue Jun 01 2021 00:00:22 GMT+0000 (Coordinated Universal Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 285
[task 2021-06-01T00:00:22.304Z] 00:00:22     INFO - Stack trace:
[task 2021-06-01T00:00:22.304Z] 00:00:22     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:285
[task 2021-06-01T00:00:22.304Z] 00:00:22     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1120
[task 2021-06-01T00:00:22.305Z] 00:00:22     INFO - Leaving test bound test_etp_mobile_promotion_pref_on
[task 2021-06-01T00:00:22.305Z] 00:00:22     INFO - Entering test bound test_settings_links
[task 2021-06-01T00:00:23.172Z] 00:00:23     INFO - GECKO(2516) | 1622505623170	FirefoxAccounts	ERROR	FxA rejecting with error NO_ACCOUNT, details: undefined
[task 2021-06-01T00:00:23.177Z] 00:00:23     INFO - Console message: [JavaScript Error: "There was an error fetching the user's token: " {file: "resource:///actors/AboutProtectionsParent.jsm" line: 284}]
[task 2021-06-01T00:00:23.177Z] 00:00:23     INFO - getMonitorScopedOAuthToken@resource:///actors/AboutProtectionsParent.jsm:284:10
[task 2021-06-01T00:00:23.177Z] 00:00:23     INFO - 
[task 2021-06-01T00:00:26.193Z] 00:00:26     INFO - about:preferences#privacy was successfully opened in a new tab
[task 2021-06-01T00:00:26.480Z] 00:00:26     INFO - Leaving test bound test_settings_links
[task 2021-06-01T00:00:26.558Z] 00:00:26     INFO - GECKO(2516) | MEMORY STAT | vsize 130551080MB | residentFast 1532MB
[task 2021-06-01T00:00:26.560Z] 00:00:26     INFO - TEST-OK | browser/components/protections/test/browser/browser_protections_report_ui.js | took 28023ms
[task 2021-06-01T00:00:26.563Z] 00:00:26     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-01T00:00:26.563Z] 00:00:26     INFO - TEST-UNEXPECTED-FAIL | browser/components/protections/test/browser/browser_protections_report_ui.js | Found an unexpected tab at the end of test run: about:protections - 
[task 2021-06-01T00:00:26.676Z] 00:00:26     INFO - checking window state
[task 2021-06-01T00:00:26.838Z] 00:00:26     INFO - TEST-START | browser/components/protections/test/browser/browser_protections_telemetry.js
```