rem:  this.dialogElement( "alwaysAskMe" ).checked = this.mLauncher.MIMEInfo.alwaysAskBeforeHandling; 
add:   var alwaysAskCheckbox = this.dialogElement( "alwaysAskMe" ); if (this.mLauncher.MIMEInfo.MIMEType == "application/octet-stream") { alwaysAskCheckbox.checked = true; alwaysAskCheckbox.disabled = true; } else { alwaysAskCheckbox.checked = this.mLauncher.MIMEInfo.alwaysAskBeforeHandling; } 
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);         win.setAttribute( "title", this.mTitle );         // Put content type and location into intro.         this.initIntro(url);         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.dialogElement( "alwaysAskMe" ).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: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/1664ad2b801311f98d560129358c578ca8444e83/nsHelperAppDlg.js/buggy/embedding/components/ui/helperAppDlg/nsHelperAppDlg.js