rem: this.initExplanation(); 
add: this.initAppAndSaveToDiskValues(); 
context:     setDefault: function() {        // Get RDF service.        var rdf = Components.classes[ "@mozilla.org/rdf/rdf-service;1" ]                    .getService( Components.interfaces.nsIRDFService );        // Now ask if it knows about this mime type.        var exists = false;        var fileLocator = Components.classes[ "@mozilla.org/file/directory_service;1" ]                            .getService( Components.interfaces.nsIProperties );        var file        = fileLocator.get( "UMimTyp", Components.interfaces.nsIFile );                // We must try creating a fresh remote DS in order to avoid accidentally        // having GetDataSource trigger an asych load.        var ds = Components.classes[ "@mozilla.org/rdf/datasource;1?name=xml-datasource" ].createInstance( Components.interfaces.nsIRDFDataSource );        try {            // Initialize it.  This will fail if the uriloader (or anybody else)            // has already loaded/registered this data source.            var remoteDS = ds.QueryInterface( Components.interfaces.nsIRDFRemoteDataSource );            remoteDS.Init( file.URL );            remoteDS.Refresh( true );        } catch ( all ) {            // OK then, presume it was already registered; get it.            ds = rdf.GetDataSource( file.URL );        }        // Now check if this mimetype is really in there;        // This is done by seeing if there's a "value" arc from the mimetype resource        // to the mimetype literal string.        var mimeRes       = rdf.GetResource( "urn:mimetype:" + this.mLauncher.MIMEInfo.MIMEType );        var valueProperty = rdf.GetResource( "http://home.netscape.com/NC-rdf#value" );        var mimeLiteral   = rdf.GetLiteral( this.mLauncher.MIMEInfo.MIMEType );        exists =  ds.HasAssertion( mimeRes, valueProperty, mimeLiteral, true );        var dlgUrl;        if ( exists ) {            // Open "edit mime type" dialog.            dlgUrl = "chrome://communicator/content/pref/pref-applications-edit.xul";        } else {            // Open "add mime type" dialog.            dlgUrl = "chrome://communicator/content/pref/pref-applications-new.xul";        }        // Open whichever dialog is appropriate, passing this dialog object as argument.        this.mDialog.openDialog( dlgUrl,                                 "_blank",                                 "chrome,modal=yes,resizable=no",                                 this );        // Refresh dialog with updated info about the default action.        this.initIntro();        this.initExplanation();    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/96e52c48f72338176b4a6df3a46f06e42d407bc0/nsHelperAppDlg.js/buggy/embedding/components/ui/helperAppDlg/nsHelperAppDlg.js