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 442458 a38e0adbe442be2030b6a4b23c66365a10e1afbd
parent 442457 248c487966fd5a473458a7f59fa996121af5778d
child 442459 847faa0a8524b3c2403795218f83a95e18a7a19b
push id8214
push usersledru@mozilla.com
push dateThu, 23 Nov 2017 16:14:55 +0000
treeherdermozilla-beta@a38e0adbe442 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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);
   },