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:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user