str.data = this._newHomePage; prefBranch.setComplexValue("browser.startup.homepage", Components.interfaces.nsISupportsString, str); 
str.data = this._newHomePage; prefBranch.setComplexValue("browser.startup.homepage", Components.interfaces.nsISupportsString, str); } 
  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 prefSvc = Components.classes["@mozilla.org/preferences-service;1"]                                    .getService(Components.interfaces.nsIPrefService);            var prefBranch = prefSvc.getBranch(null);            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);            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);          } 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;    }  },
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/8a2f5c1f616f9ff350d92ff33496ee55f66d3591/migration.js/clean/browser/components/migration/content/migration.js