<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Allow to save and restore session"
   href="https://bugs.webkit.org/show_bug.cgi?id=115600#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Allow to save and restore session"
   href="https://bugs.webkit.org/show_bug.cgi?id=115600">bug 115600</a>
              from <span class="vcard"><a class="email" href="mailto:sam.parkinson3&#64;gmail.com" title="Sam P. &lt;sam.parkinson3&#64;gmail.com&gt;"> <span class="fn">Sam P.</span></a>
</span></b>
        <pre>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-&gt;webView);
        } else {
            webkit_web_view_restore_session(window-&gt;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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>