Background
Right now, if you reload the page you lose your frames.
It would be good if the page is reloaded that the same frames reload.
Ideas
Update URL with loaded frames
- pros: could use URL as canonical state
- cons: potential complexity in keeping track of navigations, main page would lose its state
Track state using local storage
Proposal
Track state using local storage
Either:
- store state on navigation / update
- use
onBeforeUnload() to confirm saving state
Implementation:
- store id + locations
- on load
- update frames
- delete stored tab id + urls
- if not clearing on reload, clear stored tab ids on startup