Bug 941487 - resetProfile.js shouldn't redefine Cu, r=MattN

This commit is contained in:
Gijs Kruitbosch 2014-06-11 04:01:00 +01:00
parent 1bd240a9a6
commit 0c568951d1

View File

@ -4,7 +4,12 @@
"use strict";
let Cu = Components.utils;
// NB: this file can be loaded from aboutSupport.xhtml or from the
// resetProfile.xul dialog, and so Cu may or may not exist already.
// Proceed with caution:
if (!("Cu" in window)) {
window.Cu = Components.utils;
}
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/ResetProfile.jsm");