[webkit-gtk] Clearing the WebKitBackForwardList in WebKit2

Michael Catanzaro mcatanzaro at igalia.com
Thu Mar 16 18:05:30 PDT 2017


On Thu, 2017-03-16 at 20:31 -0400, Scott Talbert wrote:
> Hi all,
> 
> I'm working on porting wxWidgets' webview module over to use
> WebKit2.  One 
> of the few things I haven't been able to finish yet is clearing the 
> WebKitBackForwardList, which seems to be absent in the WebKit2 API. 
> Is 
> there a technical reason this can't be done, or is it just that it
> hasn't 
> been added yet?

I don't remember the reason why, but it's read-only by design and there
are no plans to change that. Maybe somebody else remembers the
reasoning behind this? We'd need to get permission from the WebKit2
owners, who have shot it down in the past.

Still, it seems like it ought to be possible to at least clear it
somehow. Maybe try creating a new WebKitWebViewSessionState and
restoring it into the web view? I suspect that won't work, but it's
worth trying.

Sorry this wasn't a great answer,

Michael


More information about the webkit-gtk mailing list