Bug 1840917 - Add a probe to measure how long it takes to show both the legacy and new migration wizard. data-review=jhirsch,r=tgiles

Differential Revision: https://phabricator.services.mozilla.com/D182389
This commit is contained in:
Mike Conley
2023-06-29 23:57:26 +00:00
parent cebede338f
commit cd4dc3db2f
6 changed files with 91 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ var gFileMigrators = null;
var gProfileStartup = null;
var gL10n = null;
var gPreviousDefaultBrowserKey = "";
var gHasOpenedLegacyWizard = false;
let gForceExitSpinResolve = false;
let gKeepUndoData = false;
@@ -689,6 +690,11 @@ class MigrationUtils {
return Promise.resolve();
}
// Legacy migration dialog
if (!gHasOpenedLegacyWizard) {
gHasOpenedLegacyWizard = true;
aOptions.openedTime = Cu.now();
}
const DIALOG_URL = "chrome://browser/content/migration/migration.xhtml";
let features = "chrome,dialog,modal,centerscreen,titlebar,resizable=no";
if (AppConstants.platform == "macosx" && !this.isStartupMigration) {