Backed out changeset bcbab342eed8 (bug 1889658) for causing wpt reftest failures...
[gecko.git] / toolkit / content / resetProfile.js
blobe00ccf73c2e7904156d8e20687fb2cf0e231b0a1
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/. */
5 "use strict";
7 document.addEventListener("dialogaccept", onResetProfileAccepted);
8 document
9   .getElementById("refreshProfileLearnMore")
10   .addEventListener("click", e => {
11     e.preventDefault();
12     let retVals = window.arguments[0];
13     retVals.learnMore = true;
14     window.close();
15   });
17 document.addEventListener("DOMContentLoaded", function () {
18   document
19     .getElementById("resetProfileDialog")
20     .getButton("accept")
21     .classList.add("danger-button");
22 });
24 function onResetProfileAccepted() {
25   let retVals = window.arguments[0];
26   retVals.reset = true;