Closed Bug 1033999 Opened 10 years ago Closed 6 years ago

Support State/Session restore for browser-element

Categories

(Core :: DOM: Core & HTML, defect, P2)

defect

Tracking

()

RESOLVED INCOMPLETE
FxOS-S7 (18Sep)
tracking-b2g backlog

People

(Reporter: kanru, Assigned: kanru)

References

Details

Attachments

(2 files)

We want to support session restore for the browser-element. Ie. when a app or browser tab is closed or killed, we could reopen it with session restored.

We probably want a new API to control this.
Kanru, I started to split the current fx desktop session store code to share the common parts in toolkit in bug 449967. Still no consensus on what's the right way to do it though.

What do you mean by a new API to control this? Something like an event triggered when the session is restored? or a way to opt-in/opt-out?
(In reply to Fabrice Desré [:fabrice] from comment #1)
> Kanru, I started to split the current fx desktop session store code to share
> the common parts in toolkit in bug 449967. Still no consensus on what's the
> right way to do it though.

Nice!

> What do you mean by a new API to control this? Something like an event
> triggered when the session is restored? or a way to opt-in/opt-out?

I think from the browser writer's point of view, it may want a way to opt-in/opt-out session restore.
Depends on: 449967
Blocks: graphene
Assignee: nobody → kchen
NOTEs to myself

Hypothetical steps to restore a mozbrowser iframe:

 1. Unregister the old frameLoader from BrowserElementParent.js
 2. Destroy the old frameLoader
 3. Create a new frameLoader & empty remote process
 4. Start to restore the session history, storage, load content, scroll position
 5. Done

Recreating a frameLoader seems easier than reinitialize one. The session data is currently stored in BrowserElementParent.js, it should send the data to remote at step 3.
Blocks: 1170894
blocking-b2g: --- → 2.5+
Target Milestone: --- → FxOS-S7 (18Sep)
Depends on: 1209662
No longer blocks: nsec-isolation
Confirmed with Kan-Ru offline, this bug is not on the road map.
It should not be a 2.5 blocker.
blocking-b2g: 2.5+ → ---
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
Please feel free to re-open if we need this.
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: