On Wed, May 5, 2010 at 2:15 AM, Noah Kipin <[email protected]> wrote: > Hello, > > I'm trying to disable uploads for a webkit implementation to make it > more secure in "Kiosk Mode". Since the application runs as root in kiosk > mode, I don't want users to have access to the file dialog that is > brought up from HTML forms. > > Disallowing downloads was fairly simple, but disallowing uploads has not > been as obvious. If anyone can give some advice I'd appreciate it a lot. > > Thanks, > Noah > _______________________________________________ > webkit-help mailing list > [email protected] > http://lists.webkit.org/mailman/listinfo.cgi/webkit-help >
Hi Kipin, I am using Gtk port and a quick solution would be, open WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp and in function void ChromeClient::runOpenPanel(Frame*, PassRefPtr<FileChooser> prpFileChooser) simply add return in the begining. I know this is not correct but you can try with this. But if your problem is only about restricting access from root, then in filechooser dialog i think you can restrict it with some option. So instead off disabling it you can restrict to access let say only "/opt" directory. Regards Deepak _______________________________________________ webkit-help mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
