|
|
Re: Mozilla - Back to Basics: Part 1 Firefox
(Score: 4, Informative)
by Anonymous on May 21, 2004 - 12:01 AM
|
In the program folder, find \components\nsHelperAppDlg.js Open it with notepad and make the following changes.
Find and comment the following lines, as I have:
// Initialize "always ask me" box. This should always be disabled
// and set to true for the ambiguous type application/octet-stream.
// We don't also check for application/x-msdownload here since we
// want users to be able to autodownload .exe files.
var rememberChoice = this.dialogElement("rememberChoice");
// if (this.mLauncher.MIMEInfo.MIMEType == "application/octet-stream") {
// rememberChoice.checked = false;
// rememberChoice.disabled = true;
// }
// else {
rememberChoice.checked = !this.mLauncher.MIMEInfo.alwaysAskBeforeHandling;
//}
this.toggleRememberChoice(rememberChoice);
And also this section:
// We don't let users open .exe files or random binary data directly
// from the browser at the moment because of security concerns.
var openWithDefaultOK = this.openWithDefaultOK();
var mimeType = this.mLauncher.MIMEInfo.MIMEType;
// if ((mimeType == "application/octet-stream" ||
// mimeType == "application/x-msdownload") && !openWithDefaultOK) {
// this.dialogElement("open").disabled = true;
// var openHandler = this.dialogElement("openHandler");
// openHandler.disabled = true;
// openHandler.label = "";
// modeGroup.selectedItem = this.dialogElement("save");
// return;
// }
Now, when you download an EXE file, tell Firefox to open it with "c:\windows\explorer.exe" Next time firefox will remember you chose "C:\windows\explorer.exe" as the helper application and you won't have to browse again, just hit ok. Firefox will download the application and pass it to windows, which will display a security warning "Blah, blah, blah executable application. Would you like to Open, Save, or Cancle?" Just make sure you don't close firefox before the program is done running or the exe is deleted from your temp!
Hope this helps!
|
|