[webkit-help] Disabling or Disallowing Uploading
nkipin at cbnco.com
Wed May 5 07:12:07 PDT 2010
Thanks for the hint on where to look. I'm not very familiar with webkit
yet so that was just what I needed to be put on the right track.
It looks like that function is called by RenderFileUploadControl. I'm
going to investigate a little further rather than just neuter that function.
Thanks again for your help!
On 05/05/2010 12:40 AM, Deepak Mundra wrote:
> On Wed, May 5, 2010 at 2:15 AM, Noah Kipin <nkipin at cbnco.com> wrote:
>> 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.
>> webkit-help mailing list
>> webkit-help at lists.webkit.org
> 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.
More information about the webkit-help