Bug 1311821 - Bug 1223371 follow-up: fix incorrect access to Services. r=rkent a=jorgk
authorJorg K
Fri, 21 Oct 2016 10:27:32 +0200
changeset 27615 0362414e234caaa4c0bf372f39272fbf19a1cda1
parent 27614 5fd3dfd960f14cc8b7bab32b79990566515850dc
child 27616 2817bc16dce87746c98c552142c5c92304e398da
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrkent, jorgk
bugs1311821, 1223371
Bug 1311821 - Bug 1223371 follow-up: fix incorrect access to Services. r=rkent a=jorgk
mail/base/content/systemIntegrationDialog.js
--- a/mail/base/content/systemIntegrationDialog.js
+++ b/mail/base/content/systemIntegrationDialog.js
@@ -72,17 +72,17 @@ var gSystemIntegrationDialog = {
     this._startupCheckbox.checked =
       this.Services.prefs.getBoolPref("mail.shell.checkDefaultClient");
 
     // Search integration - check whether we should show/disable integration options
     if (this.SearchIntegration)
     {
       this._searchCheckbox.checked = this.SearchIntegration.prefEnabled;
       // On Windows, do not offer the option on startup as it does not perform well.
-      if ((Services.appinfo.OS == "WINNT") && !calledFromPrefs &&
+      if ((this.Services.appinfo.OS == "WINNT") && !calledFromPrefs &&
           !this._searchCheckbox.checked) {
         this._searchCheckbox.hidden = true;
       } else {
         // Hide/disable the options if the OS does not support them.
         if (!this.SearchIntegration.osVersionTooLow) {
           this._searchCheckbox.hidden = false;
           if (this.SearchIntegration.osComponentsNotRunning) {
             this._searchCheckbox.checked = false;