CLOSED INVALID169312
[GTK] Support replacing HTML content
https://bugs.webkit.org/show_bug.cgi?id=169312
Summary [GTK] Support replacing HTML content
Adrian Cochrane
Reported 2017-03-07 15:15:05 PST
Have a method on the WebView to set the HTML content of the WebView without adding a new history item. This is desirable when rendering error pages, as currently all the methods for loading HTML into the WebView adds a new history item.
Attachments
Michael Catanzaro
Comment 1 2017-03-07 16:49:04 PST
You can do this already using webkit_web_view_load_alternate_html(). If you call it during the emission of the load-failed signal, then the back/forward list will not be modified. Going to close this because I think that's all you need, right?
Adrian Cochrane
Comment 2 2017-03-07 16:58:55 PST
I was having more of a problem showing (default) pages for the HTTP status codes, as those don't usually trigger load-failed. I'll see if calling it during decide-policy does what I need it to, and if so I'll close this issue.
Adrian Cochrane
Comment 3 2017-03-07 17:19:41 PST
It does behave as I want during a decide-policy callback. As such I'm closing the issue now. The only drawback of that approach is that I require the Content-Length header for error pages. Thanks for your quick response, I'm closing the issue now.
Note You need to log in before you can comment on or make changes to this bug.