News | Mail Archive | OS Software Downloads | Patents Ad Info ::
Subject: Databases | Java | Linux | Open Source | XML | Data | Tech

Contribute:
· News/Reviews/Release
· Submit a New App!

Misc:
· My Account
· Editorial Feedback
· Logout

Login
 Username
 Password
 Remember me


 Become a Member!
 Login Problems?

Recently Updated Mail Archives
Android-Developers
general
fancybox
cluster-devel
haskell-cafe@haskell.org
utrace-devel
debian-java
rails-oceania
ProfessionalPHPDevelopers
wikibugs-l
user.ofbiz.apache.org
bug-autoconf-gnu
turbogears
twitter-development-talk@googlegroups.com
LR-LoadRunner
solr-user.lucene.apache.org
wxpython-users
debian-bugs-dist
mongodb-user
help-gnu-emacs-gnu
kde-commits
bug-bash-gnu
debian-bugs-closed
gnu-misc-discuss-gnu
help-gnubatch-gnu
bug-gnulib-gnu
bug-automake-gnu
ruby-talk
autoconf-patches-gnu
bug-a2ps-gnu
freeipa-devel
glasgow-haskell-users@haskell.org
debian-devel-changes
ruby-core
pgsql-general
django-users
DjangoUsers
users
flex-mojos
Popular Mail Lists: Android windows linux solaris osx ubuntu fedora enterprise crm ruby python java xml perl php cvs subversion version contol db
database mysql postgresql mobile telephony voip apple apache
all
sitemap (mail)


Re: Mozilla - Back to Basics: Part 1 Firefox (Score: 0)
by Anonymous on May 21, 2004 - 12:06 AM
You can do the same thing with Mozilla without having to edit nsHelperApp.js


Re: Mozilla - Back to Basics: Part 1 Firefox (Score: 5, Interesting)
by Anonymous on Sep 14, 2004 - 02:50 PM
With FireFox PR1.0

// 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");

var mimeType = this.mLauncher.MIMEInfo.MIMEType;
//if (mimeType == "application/octet-stream" ||
// mimeType == "application/x-msdownload" ||
// this.mLauncher.targetFile.isExecutable()) {
// rememberChoice.checked = false;
// rememberChoice.disabled = true;
//}
//else {
rememberChoice.checked = !this.mLauncher.MIMEInfo.alwaysAskBeforeHandling;
//}
this.toggleRememberChoice(rememberChoice);

And don't forget:


// 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 (this.mLauncher.targetFile.isExecutable() || (
// (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;
//}



Advertise With Us! | Comments are property of their posters.
Copyrighted (c) 2010, but we're happy to let you use what you wish with attribution. OSDir.com
All logos and trademarks are the property of their respective owners.
OSDir is an inevitable website. super tiny logo | Contact | Privacy Policy

Advertising by


Also by inevitable corp: gbiz yellow pages, Git, playgamesportal, and bigfaqs Q & A site.
Page created in 0.054210 seconds.