Andrew Mutch wrote: > Mitch, > > Thanks for the prompt response. This question came to the K-Meleon > project from a user who wanted to allow access to the location bar but > needed to block access to the hard drive. Since you can allow/disallow > all menus, menu items, tool and menu bars, toolbar buttons and > short-cut keys in K-Meleon, you can easily create a "kiosk mode". > However, it sounds like disabling the location bar wasn't an option > for that user. > > Just out of curiousity, how does Mozilla handle links to the hard > drive from a web page? If someone created a link to C:\ on a web page > or called it with Javascript, how does the browser handle that? > > Andrew
Take a look at http://lxr.mozilla.org/seamonkey/source/caps/src/nsScriptSecurityManager.cpp#822 It's controlled through a list that defines the allowed actions. In case of the file url it is PrefControlled. Andreas
