Bug: Intermittent [tier 2] TV-fis browser/components/newtab/test/browser/browser_asrouter_experimentsAPILoader.js | A promise chain failed to handle a rejection: can't access property "scheme", browser.documentURI is null - stack: isHostMatch@resource://acti
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-08-19 14:47:48+00:00
Resolved: 2023-10-25 12:03:14+00:00

**Filed by:** ctuns [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=348915311&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Gm2YJDlcTzSgKI6zu2BNyg/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/Gm2YJDlcTzSgKI6zu2BNyg/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
[task 2021-08-19T13:34:52.477Z] 13:34:52     INFO - TEST-START | browser/components/newtab/test/browser/browser_asrouter_experimentsAPILoader.js
[task 2021-08-19T13:34:52.572Z] 13:34:52     INFO - GECKO(2135) | JavaScript error: , line 0: NotFoundError: No such JSWindowActor 'MarionetteEvents'
[task 2021-08-19T13:34:52.575Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.576Z] 13:34:52     INFO - GECKO(2135) |   Registered update timer
[task 2021-08-19T13:34:52.576Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.577Z] 13:34:52     INFO - GECKO(2135) |   Updating recipes
[task 2021-08-19T13:34:52.577Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.578Z] 13:34:52     INFO - GECKO(2135) |   Fetching remote defaults for NimbusFeatures.
[task 2021-08-19T13:34:52.591Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.592Z] 13:34:52     INFO - GECKO(2135) |   Got 1 recipes from Remote Settings
[task 2021-08-19T13:34:52.592Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.593Z] 13:34:52     INFO - GECKO(2135) |   No targeting for recipe, so it matches automatically
[task 2021-08-19T13:34:52.593Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.594Z] 13:34:52     INFO - GECKO(2135) |   xman_test_message matched
[task 2021-08-19T13:34:52.594Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.595Z] 13:34:52     INFO - GECKO(2135) |   Finished fetching remote defaults.
[task 2021-08-19T13:34:52.595Z] 13:34:52     INFO - GECKO(2135) | console.debug: ExperimentManager:
[task 2021-08-19T13:34:52.596Z] 13:34:52     INFO - GECKO(2135) |   New experiment started: test_xman_cfr_1629380092577, control
[task 2021-08-19T13:34:52.596Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.596Z] 13:34:52     INFO - GECKO(2135) |   1 recipes matched. Finalizing ExperimentManager.
[task 2021-08-19T13:34:52.697Z] 13:34:52     INFO - GECKO(2135) | console.debug: ExperimentManager:
[task 2021-08-19T13:34:52.697Z] 13:34:52     INFO - GECKO(2135) |   Experiment unenrolled: test_xman_cfr_1629380092577
[task 2021-08-19T13:34:52.700Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.700Z] 13:34:52     INFO - GECKO(2135) |   Registered update timer
[task 2021-08-19T13:34:52.700Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.701Z] 13:34:52     INFO - GECKO(2135) |   Updating recipes
[task 2021-08-19T13:34:52.701Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.702Z] 13:34:52     INFO - GECKO(2135) |   Fetching remote defaults for NimbusFeatures.
[task 2021-08-19T13:34:52.713Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.713Z] 13:34:52     INFO - GECKO(2135) |   Got 1 recipes from Remote Settings
[task 2021-08-19T13:34:52.714Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.714Z] 13:34:52     INFO - GECKO(2135) |   No targeting for recipe, so it matches automatically
[task 2021-08-19T13:34:52.715Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.715Z] 13:34:52     INFO - GECKO(2135) |   xman_test_message matched
[task 2021-08-19T13:34:52.716Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.716Z] 13:34:52     INFO - GECKO(2135) |   Finished fetching remote defaults.
[task 2021-08-19T13:34:52.716Z] 13:34:52     INFO - GECKO(2135) | console.debug: ExperimentManager:
[task 2021-08-19T13:34:52.717Z] 13:34:52     INFO - GECKO(2135) |   New experiment started: test_xman_cfr_1629380092701, control
[task 2021-08-19T13:34:52.717Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.718Z] 13:34:52     INFO - GECKO(2135) |   1 recipes matched. Finalizing ExperimentManager.
[task 2021-08-19T13:34:52.829Z] 13:34:52     INFO - GECKO(2135) | JavaScript error: resource://activity-stream/lib/CFRPageActions.jsm, line 849: TypeError: can't access property "scheme", browser.documentURI is null
[task 2021-08-19T13:34:52.830Z] 13:34:52     INFO - GECKO(2135) | console.debug: ExperimentManager:
[task 2021-08-19T13:34:52.830Z] 13:34:52     INFO - GECKO(2135) |   Experiment unenrolled: test_xman_cfr_1629380092701
[task 2021-08-19T13:34:52.833Z] 13:34:52     INFO - TEST-INFO | started process screencapture
[task 2021-08-19T13:34:52.953Z] 13:34:52     INFO - TEST-INFO | screencapture: exit 0
[task 2021-08-19T13:34:52.953Z] 13:34:52     INFO - Buffered messages logged at 13:34:52
[task 2021-08-19T13:34:52.954Z] 13:34:52     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_asrouter_experimentsAPILoader.js | Sanity check the temporary file doesn't exist. - true == true - 
[task 2021-08-19T13:34:52.954Z] 13:34:52     INFO - Entering test bound test_loading_experimentsAPI
[task 2021-08-19T13:34:52.955Z] 13:34:52     INFO - Console message: [JavaScript Error: "NotFoundError: No such JSWindowActor 'MarionetteEvents'"]
[task 2021-08-19T13:34:52.955Z] 13:34:52     INFO - Console message: [JavaScript Error: "Unknown Collection "main/nimbus-desktop-experiments"" {file: "resource://services-settings/RemoteSettingsClient.jsm" line: 160}]
[task 2021-08-19T13:34:52.955Z] 13:34:52     INFO - UnknownCollectionError@resource://services-settings/RemoteSettingsClient.jsm:160:5
[task 2021-08-19T13:34:52.955Z] 13:34:52     INFO - sync@resource://services-settings/RemoteSettingsClient.jsm:503:13
[task 2021-08-19T13:34:52.955Z] 13:34:52     INFO - 
[task 2021-08-19T13:34:52.956Z] 13:34:52     INFO - Console message: [JavaScript Error: "Unknown Collection "main/nimbus-desktop-defaults"" {file: "resource://services-settings/RemoteSettingsClient.jsm" line: 160}]
[task 2021-08-19T13:34:52.956Z] 13:34:52     INFO - UnknownCollectionError@resource://services-settings/RemoteSettingsClient.jsm:160:5
[task 2021-08-19T13:34:52.956Z] 13:34:52     INFO - sync@resource://services-settings/RemoteSettingsClient.jsm:503:13
[task 2021-08-19T13:34:52.957Z] 13:34:52     INFO - 
[task 2021-08-19T13:34:52.957Z] 13:34:52     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_asrouter_experimentsAPILoader.js | Telemetry should return true - true == true - 
[task 2021-08-19T13:34:52.959Z] 13:34:52     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_asrouter_experimentsAPILoader.js | Experiment message found in ASRouter state - {"weight":100,"forExposureEvent":{"experimentSlug":"test_xman_cfr_1629380092577","branchSlug":"control"},"id":"xman_test_message","content":{"text":"This is a test CFR","addon":{"id":"954390","icon":"chrome://activity-stream/content/data/content/assets/cfr_fb_container.png","title":"Facebook Container","users":1455872,"author":"Mozilla","rating":4.5,"amo_url":"https://addons.mozilla.org/firefox/addon/facebook-container/"},"buttons":{"primary":{"label":{"string_id":"cfr-doorhanger-extension-ok-button"},"action":{"data":{"url":null},"type":"INSTALL_ADDON_FROM_URL"}},"secondary":[{"label":{"string_id":"cfr-doorhanger-extension-cancel-button"},"action":{"type":"CANCEL"}},{"label":{"string_id":"cfr-doorhanger-extension-never-show-recommendation"}},{"label":{"string_id":"cfr-doorhanger-extension-manage-settings-button"},"action":{"data":{"origin":"CFR","category":"general-cfraddons"},"type":"OPEN_PREFERENCES_PAGE"}}]},"category":"cfrAddons","bucket_id":"CFR_M1","info_icon":{"label":{"string_id":"cfr-doorhanger-extension-sumo-link"},"sumo_path":"extensionrecommendations"},"heading_text":"Welcome to the experiment","notification_text":{"string_id":"cfr-doorhanger-extension-notification2"}},"trigger":{"id":"openURL","params":["www.facebook.com","facebook.com","www.instagram.com","instagram.com","www.whatsapp.com","whatsapp.com","web.whatsapp.com","www.messenger.com","messenger.com"]},"template":"cfr_doorhanger","frequency":{"lifetime":3},"targeting":"true","groups":[],"provider":"messaging-experiments"} == true - 
[task 2021-08-19T13:34:52.959Z] 13:34:52     INFO - Leaving test bound test_loading_experimentsAPI
[task 2021-08-19T13:34:52.960Z] 13:34:52     INFO - Entering test bound test_exposure_ping
[task 2021-08-19T13:34:52.961Z] 13:34:52     INFO - Console message: [JavaScript Error: "Unknown Collection "main/nimbus-desktop-experiments"" {file: "resource://services-settings/RemoteSettingsClient.jsm" line: 160}]
[task 2021-08-19T13:34:52.961Z] 13:34:52     INFO - UnknownCollectionError@resource://services-settings/RemoteSettingsClient.jsm:160:5
[task 2021-08-19T13:34:52.961Z] 13:34:52     INFO - sync@resource://services-settings/RemoteSettingsClient.jsm:503:13
[task 2021-08-19T13:34:52.961Z] 13:34:52     INFO - 
[task 2021-08-19T13:34:52.962Z] 13:34:52     INFO - Console message: [JavaScript Error: "Unknown Collection "main/nimbus-desktop-defaults"" {file: "resource://services-settings/RemoteSettingsClient.jsm" line: 160}]
[task 2021-08-19T13:34:52.962Z] 13:34:52     INFO - UnknownCollectionError@resource://services-settings/RemoteSettingsClient.jsm:160:5
[task 2021-08-19T13:34:52.962Z] 13:34:52     INFO - sync@resource://services-settings/RemoteSettingsClient.jsm:503:13
[task 2021-08-19T13:34:52.962Z] 13:34:52     INFO - 
[task 2021-08-19T13:34:52.964Z] 13:34:52     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_asrouter_experimentsAPILoader.js | Experiment message found in ASRouter state - {"weight":100,"forExposureEvent":{"experimentSlug":"test_xman_cfr_1629380092701","branchSlug":"control"},"id":"xman_test_message","content":{"text":"This is a test CFR","addon":{"id":"954390","icon":"chrome://activity-stream/content/data/content/assets/cfr_fb_container.png","title":"Facebook Container","users":1455872,"author":"Mozilla","rating":4.5,"amo_url":"https://addons.mozilla.org/firefox/addon/facebook-container/"},"buttons":{"primary":{"label":{"string_id":"cfr-doorhanger-extension-ok-button"},"action":{"data":{"url":null},"type":"INSTALL_ADDON_FROM_URL"}},"secondary":[{"label":{"string_id":"cfr-doorhanger-extension-cancel-button"},"action":{"type":"CANCEL"}},{"label":{"string_id":"cfr-doorhanger-extension-never-show-recommendation"}},{"label":{"string_id":"cfr-doorhanger-extension-manage-settings-button"},"action":{"data":{"origin":"CFR","category":"general-cfraddons"},"type":"OPEN_PREFERENCES_PAGE"}}]},"category":"cfrAddons","bucket_id":"CFR_M1","info_icon":{"label":{"string_id":"cfr-doorhanger-extension-sumo-link"},"sumo_path":"extensionrecommendations"},"heading_text":"Welcome to the experiment","notification_text":{"string_id":"cfr-doorhanger-extension-notification2"}},"trigger":{"id":"openURL","params":["www.facebook.com","facebook.com","www.instagram.com","instagram.com","www.whatsapp.com","whatsapp.com","web.whatsapp.com","www.messenger.com","messenger.com"]},"template":"cfr_doorhanger","frequency":{"lifetime":3},"targeting":"true","groups":[],"provider":"messaging-experiments"} == true - 
[task 2021-08-19T13:34:52.964Z] 13:34:52     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_asrouter_experimentsAPILoader.js | Should send exposure ping - true == true - 
[task 2021-08-19T13:34:52.965Z] 13:34:52     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_asrouter_experimentsAPILoader.js | telemetry.event_counts must be recorded. - true == true - 
[task 2021-08-19T13:34:52.965Z] 13:34:52     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_asrouter_experimentsAPILoader.js | telemetry.event_counts must contain the 'normandy#expose#nimbus_experiment' key. - true == true - 
[task 2021-08-19T13:34:52.965Z] 13:34:52     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_asrouter_experimentsAPILoader.js | telemetry.event_counts['normandy#expose#nimbus_experiment'] must contain the expected value - 1 == 1 - 
[task 2021-08-19T13:34:52.966Z] 13:34:52     INFO - Console message: [JavaScript Error: "TypeError: can't access property "scheme", browser.documentURI is null" {file: "resource://activity-stream/lib/CFRPageActions.jsm" line: 849}]
[task 2021-08-19T13:34:52.966Z] 13:34:52     INFO - Buffered messages finished
[task 2021-08-19T13:34:52.967Z] 13:34:52     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/browser_asrouter_experimentsAPILoader.js | A promise chain failed to handle a rejection: can't access property "scheme", browser.documentURI is null - stack: isHostMatch@resource://activity-stream/lib/CFRPageActions.jsm:849:1
[task 2021-08-19T13:34:52.967Z] 13:34:52     INFO - addRecommendation@resource://activity-stream/lib/CFRPageActions.jsm:971:17
[task 2021-08-19T13:34:52.967Z] 13:34:52     INFO - routeCFRMessage@resource://activity-stream/lib/ASRouter.jsm:1169:26
[task 2021-08-19T13:34:52.967Z] 13:34:52     INFO - sendTriggerMessage@resource://activity-stream/lib/ASRouter.jsm:1684:17
[task 2021-08-19T13:34:52.968Z] 13:34:52     INFO - Rejection date: Thu Aug 19 2021 13:34:52 GMT+0000 (Greenwich Mean Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 285
[task 2021-08-19T13:34:52.968Z] 13:34:52     INFO - Stack trace:
[task 2021-08-19T13:34:52.968Z] 13:34:52     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:285
[task 2021-08-19T13:34:52.968Z] 13:34:52     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1122
[task 2021-08-19T13:34:52.968Z] 13:34:52     INFO - Leaving test bound test_exposure_ping
[task 2021-08-19T13:34:52.969Z] 13:34:52     INFO - Entering test bound test_featureless_experiment
[task 2021-08-19T13:34:52.969Z] 13:34:52     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_asrouter_experimentsAPILoader.js | Empty store - true == true - 
[task 2021-08-19T13:34:52.969Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.970Z] 13:34:52     INFO - GECKO(2135) |   Registered update timer
[task 2021-08-19T13:34:52.970Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.971Z] 13:34:52     INFO - GECKO(2135) |   Updating recipes
[task 2021-08-19T13:34:52.971Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.971Z] 13:34:52     INFO - GECKO(2135) |   Fetching remote defaults for NimbusFeatures.
[task 2021-08-19T13:34:52.972Z] 13:34:52     INFO - Console message: [JavaScript Error: "Unknown Collection "main/nimbus-desktop-experiments"" {file: "resource://services-settings/RemoteSettingsClient.jsm" line: 160}]
[task 2021-08-19T13:34:52.972Z] 13:34:52     INFO - UnknownCollectionError@resource://services-settings/RemoteSettingsClient.jsm:160:5
[task 2021-08-19T13:34:52.972Z] 13:34:52     INFO - sync@resource://services-settings/RemoteSettingsClient.jsm:503:13
[task 2021-08-19T13:34:52.972Z] 13:34:52     INFO - 
[task 2021-08-19T13:34:52.973Z] 13:34:52     INFO - Console message: [JavaScript Error: "Unknown Collection "main/nimbus-desktop-defaults"" {file: "resource://services-settings/RemoteSettingsClient.jsm" line: 160}]
[task 2021-08-19T13:34:52.973Z] 13:34:52     INFO - UnknownCollectionError@resource://services-settings/RemoteSettingsClient.jsm:160:5
[task 2021-08-19T13:34:52.973Z] 13:34:52     INFO - sync@resource://services-settings/RemoteSettingsClient.jsm:503:13
[task 2021-08-19T13:34:52.973Z] 13:34:52     INFO - 
[task 2021-08-19T13:34:52.973Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.974Z] 13:34:52     INFO - GECKO(2135) |   Got 1 recipes from Remote Settings
[task 2021-08-19T13:34:52.974Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.974Z] 13:34:52     INFO - GECKO(2135) |   No targeting for recipe, so it matches automatically
[task 2021-08-19T13:34:52.975Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.975Z] 13:34:52     INFO - GECKO(2135) |   xman_test_message matched
[task 2021-08-19T13:34:52.975Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.976Z] 13:34:52     INFO - GECKO(2135) |   Finished fetching remote defaults.
[task 2021-08-19T13:34:52.976Z] 13:34:52     INFO - GECKO(2135) | console.debug: ExperimentManager:
[task 2021-08-19T13:34:52.976Z] 13:34:52     INFO - GECKO(2135) |   New experiment started: test_xman_cfr_1629380092835, control
[task 2021-08-19T13:34:52.977Z] 13:34:52     INFO - GECKO(2135) | console.debug: RSLoader:
[task 2021-08-19T13:34:52.977Z] 13:34:52     INFO - GECKO(2135) |   1 recipes matched. Finalizing ExperimentManager.
[task 2021-08-19T13:34:53.017Z] 13:34:53     INFO - GECKO(2135) | console.debug: ExperimentManager:
[task 2021-08-19T13:34:53.017Z] 13:34:53     INFO - GECKO(2135) |   Experiment unenrolled: test_xman_cfr_1629380092835
[task 2021-08-19T13:34:53.018Z] 13:34:53     INFO - Leaving test bound test_featureless_experiment
[task 2021-08-19T13:34:53.020Z] 13:34:53     INFO - GECKO(2135) | MEMORY STAT vsizeMaxContiguous not supported in this build configuration.
[task 2021-08-19T13:34:53.020Z] 13:34:53     INFO - GECKO(2135) | MEMORY STAT | vsize 7063MB | residentFast 277MB | heapAllocated 139MB
[task 2021-08-19T13:34:53.021Z] 13:34:53     INFO - TEST-OK | browser/components/newtab/test/browser/browser_asrouter_experimentsAPILoader.js | took 543ms
[task 2021-08-19T13:34:53.029Z] 13:34:53     INFO - checking window state
[task 2021-08-19T13:34:53.032Z] 13:34:53     INFO - GECKO(2135) | Completed ShutdownLeaks collections in process 2135
[task 2021-08-19T13:34:53.033Z] 13:34:53     INFO - TEST-START | Shutdown
```