WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
169310
[GTK] Support loading HTML from an GIO InputStream
https://bugs.webkit.org/show_bug.cgi?id=169310
Summary
[GTK] Support loading HTML from an GIO InputStream
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
Add attachment
proposed patch, testcase, etc.
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.
Top of Page
Format For Printing
XML
Clone This Bug