add:  var dirSvc = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties); var prefFile = dirSvc.get("ProfDS", Components.interfaces.nsIFile); prefFile.append("prefs.js"); prefSvc.savePrefFile(prefFile); 
context:   observe: function (aSubject, aTopic, aData)  {    switch (aTopic) {    case "Migration:Started":      break;    case "Migration:ItemBeforeMigrate":      var label = document.getElementById(aData + "_migrated");      if (label)        label.setAttribute("style", "font-weight: bold");      break;    case "Migration:ItemAfterMigrate":      var label = document.getElementById(aData + "_migrated");      if (label)        label.removeAttribute("style");      break;    case "Migration:Ended":      if (this._autoMigrate) {        if (this._newHomePage) {          try {            // set homepage properly            var prefBranch = Components.classes["@mozilla.org/preferences-service;1"]                                       .getService(Components.interfaces.nsIPrefBranch);            var str = Components.classes["@mozilla.org/supports-string;1"]                                .createInstance(Components.interfaces.nsISupportsString);            str.data = this._newHomePage;            prefBranch.setComplexValue("browser.startup.homepage",                                       Components.interfaces.nsISupportsString,                                       str);          } catch(ex) {             dump(ex);           }        }        // We're done now.        this._wiz.canAdvance = true;        this._wiz.advance();        setTimeout(close, 5000);      }      else {        this._wiz.canAdvance = true;        var nextButton = this._wiz.getButton("next");        nextButton.click();      }      break;    }  },
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/bce8d33648391f84853d810a116df85577e5e6f5/migration.js/clean/browser/components/migration/content/migration.js