Bug 1415343 - Remove useless check for target window from FxAccountsWebChannel.jsm. r?markh draft
authorMark Banner <standard8@mozilla.com>
Thu, 09 Nov 2017 08:10:37 +0000
changeset 695484 271c5263b8da7da1d525592e0265b6884fd64119
parent 695307 e2f87726b6082db0ae8a0866f65bff6b7062a07c
child 739602 4964d9935183f815552f73717304c20058a5e37c
push id88426
push userbmo:standard8@mozilla.com
push dateThu, 09 Nov 2017 08:10:59 +0000
reviewersmarkh
bugs1415343
milestone58.0a1
Bug 1415343 - Remove useless check for target window from FxAccountsWebChannel.jsm. r?markh MozReview-Commit-ID: 4rFCNbMSF0a
services/fxaccounts/FxAccountsWebChannel.jsm
--- a/services/fxaccounts/FxAccountsWebChannel.jsm
+++ b/services/fxaccounts/FxAccountsWebChannel.jsm
@@ -505,18 +505,17 @@ this.FxAccountsWebChannelHelpers.prototy
     let body = sb.GetStringFromName("relinkVerify.heading") +
                "\n\n" + description;
     let ps = Services.prompt;
     let buttonFlags = (ps.BUTTON_POS_0 * ps.BUTTON_TITLE_IS_STRING) +
                       (ps.BUTTON_POS_1 * ps.BUTTON_TITLE_CANCEL) +
                       ps.BUTTON_POS_1_DEFAULT;
 
     // If running in context of the browser chrome, window does not exist.
-    var targetWindow = typeof window === "undefined" ? null : window;
-    let pressed = Services.prompt.confirmEx(targetWindow, title, body, buttonFlags,
+    let pressed = Services.prompt.confirmEx(null, title, body, buttonFlags,
                                        continueLabel, null, null, null,
                                        {});
     return pressed === 0; // 0 is the "continue" button
   }
 };
 
 var singleton;
 // The entry-point for this module, which ensures only one of our channels is