Bug: Perma beta browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Uncaught exception in test - at chrome://mochitests/content/browser/browser/components/search/test/browser/browser_search_telemetry_sources_ads.js:178 - TypeError:
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2022-05-12 15:28:27+00:00
Resolved: 2022-05-16 06:37:40+00:00

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

---
```
[task 2022-05-12T14:24:51.143Z] 14:24:51     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.withads.urlbar in scalars and expectedScalars - false == false - 
[task 2022-05-12T14:24:51.143Z] 14:24:51     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.withads.urlbar_handoff in scalars and expectedScalars - false == false - 
[task 2022-05-12T14:24:51.144Z] 14:24:51     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.withads.urlbar_searchmode in scalars and expectedScalars - false == false - 
[task 2022-05-12T14:24:51.145Z] 14:24:51     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.withads.webextension in scalars and expectedScalars - false == false - 
[task 2022-05-12T14:24:51.145Z] 14:24:51     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.withads.unknown in scalars and expectedScalars - true == true - 
[task 2022-05-12T14:24:51.146Z] 14:24:51     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.adclicks.about_home in scalars and expectedScalars - false == false - 
[task 2022-05-12T14:24:51.146Z] 14:24:51     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.adclicks.contextmenu in scalars and expectedScalars - false == false - 
[task 2022-05-12T14:24:51.147Z] 14:24:51     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.adclicks.about_newtab in scalars and expectedScalars - false == false - 
[task 2022-05-12T14:24:51.148Z] 14:24:51     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.adclicks.searchbar in scalars and expectedScalars - false == false - 
[task 2022-05-12T14:24:51.148Z] 14:24:51     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.adclicks.system in scalars and expectedScalars - false == false - 
[task 2022-05-12T14:24:51.149Z] 14:24:51     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.adclicks.urlbar in scalars and expectedScalars - false == false - 
[task 2022-05-12T14:24:51.149Z] 14:24:51     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.adclicks.urlbar_handoff in scalars and expectedScalars - false == false - 
[task 2022-05-12T14:24:51.150Z] 14:24:51     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.adclicks.urlbar_searchmode in scalars and expectedScalars - false == false - 
[task 2022-05-12T14:24:51.151Z] 14:24:51     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.adclicks.webextension in scalars and expectedScalars - false == false - 
[task 2022-05-12T14:24:51.151Z] 14:24:51     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.adclicks.unknown in scalars and expectedScalars - false == false - 
[task 2022-05-12T14:24:51.152Z] 14:24:51     INFO - Leaving test bound test_track_ad
[task 2022-05-12T14:24:51.152Z] 14:24:51     INFO - Entering test bound test_track_ad_on_DOMContentLoaded
[task 2022-05-12T14:24:51.152Z] 14:24:51     INFO - Buffered messages finished
[task 2022-05-12T14:24:51.153Z] 14:24:51     INFO - TEST-UNEXPECTED-FAIL | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Uncaught exception in test - at chrome://mochitests/content/browser/browser/components/search/test/browser/browser_search_telemetry_sources_ads.js:178 - TypeError: TestUtils.consoleMessageObserved is not a function
[task 2022-05-12T14:24:51.153Z] 14:24:51     INFO - Stack trace:
[task 2022-05-12T14:24:51.154Z] 14:24:51     INFO - test_track_ad_on_DOMContentLoaded@chrome://mochitests/content/browser/browser/components/search/test/browser/browser_search_telemetry_sources_ads.js:178:47
[task 2022-05-12T14:24:51.154Z] 14:24:51     INFO - handleTask@chrome://mochikit/content/browser-test.js:989:26
[task 2022-05-12T14:24:51.154Z] 14:24:51     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1061:18
[task 2022-05-12T14:24:51.154Z] 14:24:51     INFO - Leaving test bound test_track_ad_on_DOMContentLoaded
[task 2022-05-12T14:24:51.155Z] 14:24:51     INFO - Entering test bound test_track_ad_on_load_event
[task 2022-05-12T14:24:51.155Z] 14:24:51     INFO - GECKO(6576) | console.debug: SearchTelemetry: "Counting" "slow-page-load.in-content:sap:ff" "for" "http://mochi.test:8888/browser/browser/components/search/test/browser/slow_loading_page_with_ads_on_load_event.html?s=test&abc=ff"
[task 2022-05-12T14:24:53.091Z] 14:24:53     INFO - Console message: [JavaScript Warning: "The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it." {file: "http://mochi.test:8888/browser/browser/components/search/test/browser/searchTelemetry.html" line: 0}]
[task 2022-05-12T14:24:54.126Z] 14:24:54     INFO - GECKO(6576) | console.debug: SearchTelemetry: "Counting ads in page for" "slow-page-load" "tagged" "unknown" "http://mochi.test:8888/browser/browser/components/search/test/browser/slow_loading_page_with_ads_on_load_event.html?s=test&abc=ff"
[task 2022-05-12T14:24:54.159Z] 14:24:54     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should only have one key - 1 == 1 - 
[task 2022-05-12T14:24:54.163Z] 14:24:54     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Histogram should have the expected key: slow-page-load.in-content:sap:ff - true == true - 
[task 2022-05-12T14:24:54.163Z] 14:24:54     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have counted the correct number of visits for slow-page-load.in-content:sap:ff - 1 == 1 - 
[task 2022-05-12T14:24:54.164Z] 14:24:54     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Scalar browser.search.content.unknown should have been added. - true == true - 
[task 2022-05-12T14:24:54.166Z] 14:24:54     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have counted the correct number of visits for browser.search.content.unknown - {"slow-page-load:tagged:ff":1} deepEqual {"slow-page-load:tagged:ff":1} - 
[task 2022-05-12T14:24:54.167Z] 14:24:54     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Scalar browser.search.with_ads should have been added. - true == true - 
[task 2022-05-12T14:24:54.168Z] 14:24:54     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have counted the correct number of visits for browser.search.with_ads - {"slow-page-load:sap":1} deepEqual {"slow-page-load:sap":1} - 
[task 2022-05-12T14:24:54.168Z] 14:24:54     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Scalar browser.search.withads.unknown should have been added. - true == true - 
[task 2022-05-12T14:24:54.169Z] 14:24:54     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have counted the correct number of visits for browser.search.withads.unknown - {"slow-page-load:tagged":1} deepEqual {"slow-page-load:tagged":1} - 
[task 2022-05-12T14:24:54.169Z] 14:24:54     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.with_ads in scalars and expectedScalars - true == true - 
[task 2022-05-12T14:24:54.170Z] 14:24:54     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.ad_clicks in scalars and expectedScalars - false == false - 
[task 2022-05-12T14:24:54.171Z] 14:24:54     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.withads.about_home in scalars and expectedScalars - false == false - 
[task 2022-05-12T14:24:54.171Z] 14:24:54     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.withads.contextmenu in scalars and expectedScalars - false == false - 
[task 2022-05-12T14:24:54.172Z] 14:24:54     INFO - TEST-PASS | browser/components/search/test/browser/browser_search_telemetry_sources_ads.js | Should have matched browser.search.withads.about_newtab in scalars and expectedScalars - false == false - 
```