Bug 1420255 - Fix a regression from
bug 1410736. r=florian
MozReview-Commit-ID: H9pxFHecYip
--- a/toolkit/components/search/nsSearchService.js
+++ b/toolkit/components/search/nsSearchService.js
@@ -2265,17 +2265,17 @@ Engine.prototype = {
// or distribution directory.
if (/^(?:jar:)?(?:\[app\]|\[distribution\])/.test(this._loadPath))
return true;
// If we are using a non-default locale or in the xpcshell test case,
// we'll accept as a 'default' engine anything that has been registered at
// resource://search-plugins/ even if the file doesn't come from the
// application folder. If not, skip costly additional checks.
- if (Services.locale.defaultLocale !== Services.locale.getRequestedLocale() &&
+ if (Services.locale.defaultLocale == Services.locale.getRequestedLocale() &&
!gEnvironment.get("XPCSHELL_TEST_PROFILE_DIR"))
return false;
// Some xpcshell tests use the search service without registering
// resource://search-plugins/.
if (!Services.io.getProtocolHandler("resource")
.QueryInterface(Ci.nsIResProtocolHandler)
.hasSubstitution("search-plugins"))