resetProfile.js 645 B

123456789101112131415161718192021
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  3. * You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. "use strict";
  5. // NB: this file can be loaded from aboutSupport.xhtml or from the
  6. // resetProfile.xul dialog, and so Cu may or may not exist already.
  7. // Proceed with caution:
  8. if (!("Cu" in window)) {
  9. window.Cu = Components.utils;
  10. }
  11. Cu.import("resource://gre/modules/Services.jsm");
  12. Cu.import("resource://gre/modules/ResetProfile.jsm");
  13. function onResetProfileAccepted() {
  14. let retVals = window.arguments[0];
  15. retVals.reset = true;
  16. }