[Webkit-unassigned] [Bug 193349] New: [WPE][GTK] Add a mechanism to reset/clear the view state

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 11 02:15:20 PST 2019


https://bugs.webkit.org/show_bug.cgi?id=193349

            Bug ID: 193349
           Summary: [WPE][GTK] Add a mechanism to reset/clear the view
                    state
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit WPE
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: aperez at igalia.com
                CC: bugs-noreply at webkitgtk.org

For an application I am developing it would be desirable to be
able to clear/reset the session state of a web view (e.g. the
navigation back/forward list). 

 - Upon creation of a WebKitWebView, obtain the current “empty”
   state with webkit_web_view_get_session_state().
 - Later on, restore the “empty” state previously saved using
   the webkit_web_view_restore_session_state() function.

Unfortunately, the approach above does NOT work: the code that
restores the session state checks whether the current index in
the back/forward is zero, and skips restoring the list in that
case (which happens to be the case for an “empty” state).

It would be desirable to have a way of clearing the state in
the public API, for example webkit_web_view_clear_session_state().

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190111/fce9e07a/attachment.html>


More information about the webkit-unassigned mailing list