Bug 169310 - [GTK] Support loading HTML from an GIO InputStream
Summary: [GTK] Support loading HTML from an GIO InputStream
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: PC Linux
: P3 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-07 15:09 PST by Adrian Cochrane
Modified: 2017-03-11 00:09 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Cochrane 2017-03-07 15:09:25 PST
It'd be useful for building webpages internal to embedding applications if WebKit.WebView had a method for loading and displaying a webpage from a GIO InputStream, just like it already supports loading from a string, GBytes, URIRequest, or uri.
Comment 1 Carlos Garcia Campos 2017-03-07 22:21:02 PST
There's currently no way to load from data sending chunks to the web process, so if we add load_from_stream we would have to read the whole stream and then use load_from_gbytes, something applications can do as well. The only way would be registering a custom uri scheme and loading the data that way.
Comment 2 Adrian Cochrane 2017-03-07 22:55:53 PST
I understand. I was trying to avoid these ugly work-arounds, so I'll do some more research and report the issue to the right subproject. Then someone (possibly me) can fix the issue here in the GTK layer.
Comment 3 Adrian Cochrane 2017-03-11 00:09:46 PST
While I found the WebCore code that could be changed to accomodate this feature, the patch to do so would either have to bypass a lot of logic or make significant changes to complex code. As such the hacks described previously are probably the cleanest way to do this.