Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser Instance Persistence #22

Open
brianmcd opened this issue Aug 31, 2011 · 0 comments
Open

Browser Instance Persistence #22

brianmcd opened this issue Aug 31, 2011 · 0 comments
Labels

Comments

@brianmcd
Copy link
Owner

We want to be able to save a Browser Instance, shut down the server, then come back later and restore everything.

Initial thoughts:

  • Serialize the DOM and save that snapshot.
  • Require scripts to export a save() method if that have state that needs to be restored. It should return an object that can be JSON.stringify'd and saved to a database.
  • Require scripts to export a restore() method that takes the return value from save and gets the script into the correct state.
  • Scripts that don't export save or restore just get re-run. Support libraries should be fine with this (like jQuery).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant