From a74a8482cc2d2854480501c1cd9316044865debb Mon Sep 17 00:00:00 2001 From: "disttsc%bart.nl" Date: Sat, 28 Oct 2000 00:39:17 +0000 Subject: [PATCH] Whoops, checked into a flaming, CLOSED tree, backing it out. (No worries, this'll be right back after this break.) --- .../content/profileMigrationProgress.js | 43 +++++++++++++++---- 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/profile/pref-migrator/resources/content/profileMigrationProgress.js b/profile/pref-migrator/resources/content/profileMigrationProgress.js index 4a3f64d648e..0e965232a15 100644 --- a/profile/pref-migrator/resources/content/profileMigrationProgress.js +++ b/profile/pref-migrator/resources/content/profileMigrationProgress.js @@ -19,21 +19,48 @@ * Rights Reserved. * * Contributor(s): - * dbragg@netscape.com - * sspitzer@netscape.com - * disttsc@bart.nl */ +var migrator; +var browser; +var dialog; + function onLoad(oldProfilePath, newProfilePath) { + //dialog = new Object; + //dialog.title = document.getElementByID( "xpi.process" ); + //dialog.current = document.getElementByID( "xpi.currentlyprocessing"); + //dialog.newWindow = document.getElementById( "dialog.newWindow" ); + + dump("start of pref migration\n"); window.focus(); var prefmigrator = Components.classes['@mozilla.org/profile/migration;1'].createInstance(Components.interfaces.nsIPrefMigration); - if (prefmigrator) { - try { - prefmigrator.ProcessPrefsFromJS(); + if (prefmigrator) + { + try { + prefmigrator.ProcessPrefsFromJS(); } catch (ex) { - dump("failed to migrate: ex="+ ex + "\n"); - } + dump("failed to migrate: ex="+ ex + "\n"); + } } } + + +function open() { + if ( dialog.ok.disabled ) { + return; + } + + var url = dialog.input.value; + + browser.loadUrl( url ); + + /* Close dialog. */ + window.close(); +} + +function cancel() { + window.close(); +} +