Bug 1934945 - Change telemetry to differentiate search service failures caused by the addon manager. r=Standard8,urlbar-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D231831
This commit is contained in:
Moritz Beier
2024-12-17 12:28:25 +00:00
parent fc8b2947d4
commit 2a06410e70
6 changed files with 56 additions and 15 deletions

View File

@@ -15,7 +15,7 @@ const searchService = Services.search.wrappedJSObject;
add_setup(async function setup() {
UrlbarPrefs.set("suggest.quickactions", false);
searchService.errorToThrowInTest = "Settings";
searchService.errorToThrowInTest.type = "Settings";
// When search service fails, we want the promise rejection to be uncaught
// so we can continue running the test.
@@ -24,7 +24,7 @@ add_setup(async function setup() {
);
registerCleanupFunction(async () => {
searchService.errorToThrowInTest = null;
searchService.errorToThrowInTest.type = null;
await cleanupPlaces();
});
});