Bug 1963014 - Fix JSDoc Issues in ResetProfile.sys.mjs. r=firefox-desktop-core-reviewers ,frontend-codestyle-reviewers,mossop
Differential Revision: https://phabricator.services.mozilla.com/D246914
This commit is contained in:
@@ -391,7 +391,7 @@ const rollouts = [
|
|||||||
"toolkit/components/workerloader/require.js",
|
"toolkit/components/workerloader/require.js",
|
||||||
"toolkit/content/**",
|
"toolkit/content/**",
|
||||||
"toolkit/crashreporter/**",
|
"toolkit/crashreporter/**",
|
||||||
"toolkit/modules/{C,Da,E10SUtils,F,G,In,J,Ke,L,N,P,R,S,Up,W}*.sys.mjs",
|
"toolkit/modules/{C,Da,E10SUtils,F,G,In,J,Ke,L,N,P,Rem,S,Up,W}*.sys.mjs",
|
||||||
"toolkit/modules/sessionstore/**",
|
"toolkit/modules/sessionstore/**",
|
||||||
"toolkit/modules/subprocess/**",
|
"toolkit/modules/subprocess/**",
|
||||||
"toolkit/modules/tests/**",
|
"toolkit/modules/tests/**",
|
||||||
@@ -555,7 +555,7 @@ const rollouts = [
|
|||||||
"toolkit/components/workerloader/require.js",
|
"toolkit/components/workerloader/require.js",
|
||||||
"toolkit/content/**",
|
"toolkit/content/**",
|
||||||
"toolkit/crashreporter/**",
|
"toolkit/crashreporter/**",
|
||||||
"toolkit/modules/{Asy,B,C,Da,E10SUtils,F,G,In,JS,Ke,L,Ne,P,R,S,Up,W}*.sys.mjs",
|
"toolkit/modules/{Asy,B,C,Da,E10SUtils,F,G,In,JS,Ke,L,Ne,P,Rem,S,Up,W}*.sys.mjs",
|
||||||
"toolkit/modules/sessionstore/**",
|
"toolkit/modules/sessionstore/**",
|
||||||
"toolkit/modules/subprocess/**",
|
"toolkit/modules/subprocess/**",
|
||||||
"toolkit/modules/tests/**",
|
"toolkit/modules/tests/**",
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ ChromeUtils.defineLazyGetter(lazy, "MigrationUtils", () => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
let { MigrationUtils } = ChromeUtils.importESModule(
|
let { MigrationUtils } = ChromeUtils.importESModule(
|
||||||
|
// eslint-disable-next-line mozilla/no-browser-refs-in-toolkit
|
||||||
"resource:///modules/MigrationUtils.sys.mjs"
|
"resource:///modules/MigrationUtils.sys.mjs"
|
||||||
);
|
);
|
||||||
return MigrationUtils;
|
return MigrationUtils;
|
||||||
@@ -29,7 +30,7 @@ export var ResetProfile = {
|
|||||||
/**
|
/**
|
||||||
* Check if reset is supported for the currently running profile.
|
* Check if reset is supported for the currently running profile.
|
||||||
*
|
*
|
||||||
* @return boolean whether reset is supported.
|
* @returns {boolean} whether reset is supported.
|
||||||
*/
|
*/
|
||||||
resetSupported() {
|
resetSupported() {
|
||||||
if (Services.policies && !Services.policies.isAllowed("profileRefresh")) {
|
if (Services.policies && !Services.policies.isAllowed("profileRefresh")) {
|
||||||
@@ -66,6 +67,8 @@ export var ResetProfile = {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Ask the user if they wish to restart the application to reset the profile.
|
* Ask the user if they wish to restart the application to reset the profile.
|
||||||
|
*
|
||||||
|
* @param {Window} window
|
||||||
*/
|
*/
|
||||||
async openConfirmationDialog(window) {
|
async openConfirmationDialog(window) {
|
||||||
let win = window;
|
let win = window;
|
||||||
|
|||||||
Reference in New Issue
Block a user