mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1436425 - Stop importing resetProfile.js when it is unneeded. r=MattN
--HG-- extra : rebase_source : 5e72bed65128fa3529fc3e3b67672454e8020ab3
This commit is contained in:
parent
b45fe1c443
commit
198b87d386
@ -3,7 +3,7 @@
|
||||
* 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/. */
|
||||
|
||||
/* import-globals-from ../../../toolkit/content/resetProfile.js */
|
||||
ChromeUtils.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
const appStartup = Services.startup;
|
||||
|
||||
|
@ -28,7 +28,6 @@
|
||||
ondialogextra1="return onExtra1()"
|
||||
onload="onLoad()">
|
||||
|
||||
<script type="application/javascript" src="chrome://global/content/resetProfile.js"/>
|
||||
<script type="application/javascript" src="chrome://browser/content/safeMode.js"/>
|
||||
|
||||
<vbox id="autoSafeMode" hidden="true">
|
||||
|
@ -25,8 +25,6 @@
|
||||
|
||||
<script type="application/javascript"
|
||||
src="chrome://global/content/aboutSupport.js"/>
|
||||
<script type="application/javascript"
|
||||
src="chrome://global/content/resetProfile.js"/>
|
||||
</head>
|
||||
|
||||
<body dir="&locale.dir;">
|
||||
|
@ -4,16 +4,6 @@
|
||||
|
||||
"use strict";
|
||||
|
||||
// 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;
|
||||
}
|
||||
|
||||
ChromeUtils.import("resource://gre/modules/Services.jsm");
|
||||
ChromeUtils.import("resource://gre/modules/ResetProfile.jsm");
|
||||
|
||||
function onResetProfileAccepted() {
|
||||
let retVals = window.arguments[0];
|
||||
retVals.reset = true;
|
||||
|
Loading…
Reference in New Issue
Block a user