Bug 1419941 - fix typo in setCharPref, r=sylvestre a=sylvestre DEVEDITION_58_0b6_RELEASE FIREFOX_58_0b6_BUILD1 FIREFOX_58_0b6_RELEASE
authorFlorian Quèze <florian@queze.net>
Thu, 23 Nov 2017 17:12:30 +0100
changeset 704512 a38e0adbe442be2030b6a4b23c66365a10e1afbd
parent 704511 248c487966fd5a473458a7f59fa996121af5778d
child 704513 847faa0a8524b3c2403795218f83a95e18a7a19b
push id91167
push userbmo:csadilek@mozilla.com
push dateTue, 28 Nov 2017 16:21:38 +0000
reviewerssylvestre, sylvestre
bugs1419941
milestone58.0
Bug 1419941 - fix typo in setCharPref, r=sylvestre a=sylvestre
browser/components/nsBrowserGlue.js
--- a/browser/components/nsBrowserGlue.js
+++ b/browser/components/nsBrowserGlue.js
@@ -2201,17 +2201,17 @@ BrowserGlue.prototype = {
         if (currentEngine._loadPath.startsWith("[https]")) {
           Services.prefs.setCharPref("browser.search.reset.status", "pending");
         } else {
           // Can't call resetToOriginalDefaultEngine because it doesn't
           // unhide the engine.
           let defaultEngine = Services.search.originalDefaultEngine;
           defaultEngine.hidden = false;
           Services.search.currentEngine = defaultEngine;
-          Services.prefs.setIntPref("browser.search.reset.status", "silent");
+          Services.prefs.setCharPref("browser.search.reset.status", "silent");
         }
       });
     }
 
     // Update the migration version.
     Services.prefs.setIntPref("browser.migration.version", UI_VERSION);
   },