Re: [Interest] Qt WebEngine, MHTML and custom schemes

2020-12-02 Thread Benjamin TERRIER
On Tue, 1 Dec 2020 at 09:11, Allan Sandfeld Jensen 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() whic

Re: [Interest] Qt WebEngine, MHTML and custom schemes

2020-12-01 Thread Allan Sandfeld Jensen
On Montag, 30. November 2020 15:00:10 CET Benjamin TERRIER wrote: > Hi, > > When accessing an MHTML file using a custom local scheme (either using > 'qrc:/' or using 'QWebEngineUrlSchemeHandler') it triggers a download. > > However, when using 'file:/' the MHTML file is displayed as a web page. >

[Interest] Qt WebEngine, MHTML and custom schemes

2020-11-30 Thread Benjamin TERRIER
Hi, When accessing an MHTML file using a custom local scheme (either using 'qrc:/' or using 'QWebEngineUrlSchemeHandler') it triggers a download. However, when using 'file:/' the MHTML file is displayed as a web page. I am trying to have the MHTML displayed also when using a custom scheme. I hav