rem: if(this._bookmarks) { 
context:   onImportSourcePageShow: function ()  {    //XXXquark This function is called before init, so check for bookmarks here    if("arguments" in window && window.arguments[0] == "bookmarks")    {      this._bookmarks = true;    }    if(this._bookmarks) {      var fromfile = document.getElementById("fromfile");      fromfile.hidden = false;      var importBookmarks = document.getElementById("importBookmarks");      importBookmarks.hidden = false;      var importAll = document.getElementById("importAll");      importAll.hidden = true;    }    this._wiz.canRewind = false;        // Figure out what source apps are are available to import from:    var group = document.getElementById("importSourceGroup");    for (var i = 0; i < group.childNodes.length; ++i) {      var suffix = group.childNodes[i].id;      if (suffix != "nothing" && suffix != "fromfile") {        var contractID = kProfileMigratorContractIDPrefix + suffix;        try {          var migrator = Components.classes[contractID].createInstance(kIMig);        }        catch (e) {          dump("*** invalid contractID =" + contractID + "\n");          return;        }        if (!migrator.sourceExists || (suffix == "phoenix" && !this._autoMigrate))          group.childNodes[i].hidden = true;      }    }        var firstSelectable = null;    for (var i = 0; i < group.childNodes.length; ++i) {      if (!group.childNodes[i].disabled && !group.childNodes[i].hidden) {        firstSelectable = group.childNodes[i];        break;      }    }    if (this._source) {      // Somehow the Profile Migrator got confused, and gave us a migrate source      // that doesn't actually exist. This could be because of a bogus registry      // state. Set the _source property to null so the first visible item in      // the list is selected instead.       var source = document.getElementById(this._source);      if (source.hidden)        this._source = null;    }    group.selectedItem = !this._source ? firstSelectable : document.getElementById(this._source);  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a9d4c4716754e5e12c7b59a98f8f9ca3fb676845/migration.js/buggy/browser/components/migration/content/migration.js