Re: [dev] [surf] [patch] Optionally handle downloads through webkit.

From: Quentin Rameau <>
Date: Fri, 23 Mar 2018 10:01:24 +0100

> Hi.

Hello Arturo,

> First of all, thank you for surf. It's a great, minimalistic shell for
> webkit, and it has proven of great value for our current project. Big
> thumbs up for that, thanks.

Well, I'm glad you find it useful!

> We are working on a POS system and using surf as part of our
> kiosk-like solution.

Good, some other people do too.

> Part of our system requires to be able to save a Blob to the local
> filesystem, to export CSV files and such. You can check this kind of
> functionality here:
> The problem is that with the way surf currently handles downloads, it
> is not possible to handle Blob URIs, since these are resources that
> are only accessible through the web component's internal state.
> Our current solution is to disable curl spawning within surf's code,
> and let webkit handle the download silently. This is an adequate
> solution for us, and we are sending you a small patch that enables
> this functionality as a command-line option.
> You can check the pull request here:
> And get the patch/diff here:
> I hope you find this modification adequate.

Thank you for sharing your work on it.

I've been keeping a patch locally letting WebKit handle downloads for a
year or so but have been too lazy to push it yet…

The main issue besides blob, is that some websites will establish an
extra session for the download or some sort and this won't be reflected
in the cookie file and the external user agent will be refused to
access the link.

Thank you for motivating me a little, I will push it on the wiki, maybe
you'll like it too!
Received on Fri Mar 23 2018 - 10:01:24 CET

This archive was generated by hypermail 2.3.0 : Fri Mar 23 2018 - 10:12:19 CET