summaryrefslogtreecommitdiffstats
path: root/toolkit/components/search/current/nsSearchService.js
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/search/current/nsSearchService.js')
-rw-r--r--toolkit/components/search/current/nsSearchService.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/toolkit/components/search/current/nsSearchService.js b/toolkit/components/search/current/nsSearchService.js
index 66866540a..db90e5150 100644
--- a/toolkit/components/search/current/nsSearchService.js
+++ b/toolkit/components/search/current/nsSearchService.js
@@ -983,11 +983,14 @@ function ParamSubstitution(aParamValue, aSearchTerms, aEngine) {
var distributionID = Services.prefs.getCharPref(BROWSER_SEARCH_PREF + "distributionID",
Services.appinfo.distributionID || "");
- var official;
- if (Services.prefs.getBoolPref(BROWSER_SEARCH_PREF + "official", MOZ_OFFICIAL))
- official = "official";
- else
- official = "unofficial";
+ var official = MOZ_OFFICIAL;
+ try {
+ if (Services.prefs.getBoolPref(BROWSER_SEARCH_PREF + "official"))
+ official = "official";
+ else
+ official = "unofficial";
+ }
+ catch (ex) { }
// Custom search parameters. These are only available to default search
// engines.