Bug 169310

Summary: [GTK] Support loading HTML from an GIO InputStream
Product: WebKit Reporter: Adrian Cochrane <alcinnz>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: bugs-noreply, cgarcia
Priority: P3    
Version: WebKit Nightly Build   
Hardware: PC   
OS: Linux   

Adrian Cochrane
Reported 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.
Attachments
Carlos Garcia Campos
Comment 1 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.
Adrian Cochrane
Comment 2 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.
Adrian Cochrane
Comment 3 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.
Note You need to log in before you can comment on or make changes to this bug.