Bug 1415343 - Remove useless check for target window from FxAccountsWebChannel.jsm. r=markh
authorMark Banner <standard8@mozilla.com>
Thu, 09 Nov 2017 08:10:37 +0000
changeset 390946 b7bf7d8272793aa051e1f9f773a37bfe083f5495
parent 390945 6843995248498d565f8378a344ad644f0ca5bf84
child 390947 14e4883dc59825c0e30a482d1903ad87aff4afdd
child 390962 05ae89bebb64438b208ce4daadadc8574b238171
push id55055
push usermbanner@mozilla.com
push dateThu, 09 Nov 2017 11:13:09 +0000
treeherderautoland@b7bf7d827279 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarkh
bugs1415343
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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