[Interest] Qt WebEngine, MHTML and custom schemes

Benjamin TERRIER b.terrier at gmail.com
Wed Dec 2 20:30:46 CET 2020


On Tue, 1 Dec 2020 at 09:11, Allan Sandfeld Jensen <kde at carewolf.com> wrote:

>
> Unfortunately it is pretty hard-coded, see  src/3rdparty/chromium/content/
> browser/loader/download_utils_impl.cc.
>
> We could make it somewhat programmable by implementing
> ContentBrowserClientQt::AllowRenderingMhtmlOverHttp() which despite its
> name
> is called for all non-file schemes.
>
> The question is then, should it be a setting per scheme or per page, and
> are
> there other people needing such a feature? The fact it is called from both
> IO
> and UI threads makes it a little more work than usual to implement.
>
> Best regards
> 'Allan
>
>
Thanks for the details.

Sadly I was looking for a faster solution, so I will have to use "file:///".

For AllowRenderingMhtmlOverHttp(), my understanding is that until
https://crbug.com/790734 is done it is not possible to discriminate by
scheme.

Regards,

Benjamin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20201202/1a16458a/attachment.html>


More information about the Interest mailing list