rem: var win   = this.dialogElement( "nsHelperAppDlg" ); 
context:     initDialog : function() {         // Put product brand short name in prompt.         var prompt = this.dialogElement( "prompt" );         var modified = this.replaceInsert( prompt.firstChild.nodeValue, 1, this.getString( "brandShortName" ) );         prompt.firstChild.nodeValue = modified;         // Put file name in window title.         var win   = this.dialogElement( "nsHelperAppDlg" );         var suggestedFileName = this.mLauncher.suggestedFileName;         // Some URIs do not implement nsIURL, so we can't just QI.         var url   = this.mLauncher.source;         var fname = "";         this.mSourcePath = url.prePath;         try {             url = url.QueryInterface( Components.interfaces.nsIURL );             // A url, use file name from it.             fname = url.fileName;             this.mSourcePath += url.directory;         } catch (ex) {             // A generic uri, use path.             fname = url.path;             this.mSourcePath += url.path;         }         if (suggestedFileName)           fname = suggestedFileName;         this.mTitle = this.replaceInsert( win.getAttribute( "title" ), 1, fname);         this.mDialog.title = this.mTitle;         // Put content type, filename and location into intro.         this.initIntro(url, fname);         var iconString = "moz-icon://" + fname + "?size=32&contentType=" + this.mLauncher.MIMEInfo.MIMEType;         this.dialogElement("contentTypeImage").setAttribute("src", iconString);         this.initAppAndSaveToDiskValues();         // Initialize "always ask me" box. This should always be disabled         // and set to true for the ambiguous type application/octet-stream.         // Same if this dialog was forced         var alwaysHandleCheckbox = this.dialogElement( "alwaysHandle" );         if (this.mForced ||             this.mLauncher.MIMEInfo.MIMEType == "application/octet-stream"){            alwaysHandleCheckbox.checked = false;            alwaysHandleCheckbox.disabled = true;         }         else {            alwaysHandleCheckbox.checked = !this.mLauncher.MIMEInfo.alwaysAskBeforeHandling;         }         // Position it.         if ( this.mDialog.opener ) {             this.mDialog.moveToAlertPosition();         } else {             this.mDialog.sizeToContent();             this.mDialog.centerWindowOnScreen();         }         // Set initial focus         this.dialogElement( "mode" ).focus();    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/7bb2ca31b72c2d3ea309c755804179bf5afd0067/nsHelperAppDlg.js/buggy/embedding/components/ui/helperAppDlg/nsHelperAppDlg.js