2012-02-24 07:34:18 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2013-06-29 07:25:08 +04:00
|
|
|
"use strict";
|
2012-02-24 07:34:18 +04:00
|
|
|
|
2014-06-11 07:01:00 +04:00
|
|
|
// 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;
|
|
|
|
}
|
2013-06-29 07:25:08 +04:00
|
|
|
|
|
|
|
Cu.import("resource://gre/modules/Services.jsm");
|
|
|
|
Cu.import("resource://gre/modules/ResetProfile.jsm");
|
2012-03-10 03:21:03 +04:00
|
|
|
|
2012-02-24 07:34:18 +04:00
|
|
|
function onResetProfileAccepted() {
|
2012-03-10 03:21:03 +04:00
|
|
|
let retVals = window.arguments[0];
|
2012-02-24 07:34:18 +04:00
|
|
|
retVals.reset = true;
|
|
|
|
}
|