Javascript File i/o

Thursday May 25th, 2000

Pete Collins from Alphanumerica and Mozilla developers have created a Javascript interface for doing file i/o in Mozilla, which will allow new Mozilla components like Alphanumerica's Crash Recovery system to function properly.

Patterned after the PHP filesystem functions, simple functions such as file read/write and directory create are supported. The code has not yet made it into the nightly build, but they expect it will get in soon.

Note from AN: There seems to be a misconception about Javascript File I/O being a security risk. It is important to clarify that this project is not opening any security holes in Mozilla. There is a difference between Javascript on the Internet and Javascript inside the application. Javascript is used inside Mozilla to create the functionality for the application. This is in contrast to any Javascript downloaded from the Internet that is used for functionality only inside a Web page. This project does not grant any access to Javascript found on the Internet. For more information about how Javascript is used inside Mozilla read more about XPCOM and XPConnect.

#19 Let me clarify my position

by SomeSmartAss

Thursday May 25th, 2000 3:24 PM

You are replying to this message

<<microsoft, or any other program vendor does not routinely do this for good reason;>>

Yaa, because they don't quite understand the paradime of deploying web-enabled applications.

I'm not saying that I want a pop-up EVERY TIME it does file I/O. I just want it to ask permissision at the begining of the session. I'd even be happy if it gave me a check box to "Never show this warning again"

The assumption that just because I installed it, I'm ok with everything it does is bunk.

Browsers shouldn't, by definition, be doing file I/O outside of cashing, and setting of preferences/cookies. Skins shouldn't even be doing that. They're eye-candy.

The fact that we potentially can turn Mozilla into a Wordprossesor if we want, shouldn't be at the expense of granting file I/O access to anyone that creates a skin.