Commit a8aa66dc authored by Shane Caraveo's avatar Shane Caraveo
Browse files

Bug 1544965 only remove search engines for an extension if the extension actually has one r=rpl

Differential Revision: https://phabricator.services.mozilla.com/D29411

--HG--
extra : moz-landing-system : lando
parent 02cf7961
......@@ -132,7 +132,10 @@ this.chrome_settings_overrides = class extends ExtensionAPI {
}
try {
await Services.search.removeWebExtensionEngine(id);
let engines = await Services.search.getEnginesByExtensionID(id);
if (engines.length > 0) {
await Services.search.removeWebExtensionEngine(id);
}
} catch (e) {
Cu.reportError(e);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment