Save/restore a webview’s state

Bug #1353143 reported by Olivier Tilloy on 2014-08-05
22
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Oxide
High
Olivier Tilloy
webbrowser-app
Fix Released
High
Olivier Tilloy
webbrowser-app (Ubuntu)
Undecided
Olivier Tilloy
webbrowser-app (Ubuntu RTM)
Undecided
Olivier Tilloy

Bug Description

We need a mechanism to save and restore the current session of the browser/webapp container.
For the browser, each open tab should be saved, whereas for the webapp container there’s only one webview to handle.

A naive solution is to persist the URL of each open tab, and upon restore instantiate a webview and set its url property. However this won’t restore the corresponding navigation history, nor the current scroll offset or form data.

To implement this properly, we need to add an API in oxide that will allow reading the current state of a webview as an opaque blob, and writing the initial state at construction time. The API would look like this:

    property string initialState (writable during construction only)
    function getCurrentState()

(see the full discussion at https://lists.launchpad.net/oxide/msg00037.html).

Related branches

Olivier Tilloy (osomon) on 2014-08-05
Changed in oxide:
status: New → Confirmed
assignee: nobody → Olivier Tilloy (osomon)
importance: Undecided → High
Changed in oxide:
status: Confirmed → Triaged
milestone: none → branch-1.3
Changed in oxide:
milestone: branch-1.3 → branch-1.4
Olivier Tilloy (osomon) on 2014-10-16
Changed in oxide:
status: Triaged → In Progress
Olivier Tilloy (osomon) on 2014-11-20
Changed in oxide:
status: In Progress → Fix Released
Olivier Tilloy (osomon) on 2014-11-21
Changed in webbrowser-app:
status: Triaged → In Progress
Olivier Tilloy (osomon) on 2015-02-03
Changed in webbrowser-app (Ubuntu):
assignee: nobody → Olivier Tilloy (osomon)
status: New → In Progress
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package webbrowser-app - 0.23+15.04.20150203-0ubuntu1

---------------
webbrowser-app (0.23+15.04.20150203-0ubuntu1) vivid; urgency=medium

  [ Florian Boucault ]
  * Make splashscreen white instead of the default black. (LP: #1378379)

  [ Niklas Wenzel ]
  * Add the ability to open a link in a new background tab (LP:
    #1339437)

  [ Olivier Tilloy ]
  * Use the new restoreState API in oxide 1.4 to properly save and
    restore navigation state across sessions. (LP: #1353143)
  * Add a UA override for youtube.com on desktop to fix video playback.
    (LP: #1412880)
 -- Ubuntu daily release <email address hidden> Tue, 03 Feb 2015 11:06:38 +0000

Changed in webbrowser-app (Ubuntu):
status: In Progress → Fix Released
Olivier Tilloy (osomon) on 2015-02-03
Changed in webbrowser-app:
status: In Progress → Fix Released
Changed in webbrowser-app (Ubuntu RTM):
status: New → Confirmed
Olivier Tilloy (osomon) on 2015-06-16
Changed in webbrowser-app (Ubuntu RTM):
status: Confirmed → Fix Released
assignee: nobody → Olivier Tilloy (osomon)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers