[Webkit-unassigned] [Bug 115600] Allow to save and restore session
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Sep 16 05:05:00 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=115600
--- Comment #3 from Sam P. <sam.parkinson3 at gmail.com> ---
As a little demo test, you can change BrowserWindow.c in minibrowser to have reloadOrStopCallback like:
GBytes * state = NULL;
/* Horrible style, just a demo */
static void reloadOrStopCallback(BrowserWindow *window)
{
if (!state) {
state = webkit_web_view_serialize_session(window->webView);
} else {
webkit_web_view_restore_session(window->webView, state, TRUE);
state = NULL;
}
}
Then when you run minibrowser, press the stop button to save the session state. Then navigate around the web to somewhere else. Press the stop button again and you should be back to where you saved the state and the back forward lists, etc. should remain the same.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150916/963a74c2/attachment.html>
More information about the webkit-unassigned
mailing list