Does anybody if a solution exists or if it is even feasible to save or serialize all the Javascript objects of a webpage in their current state to a file and restore those objects in a new browser instance of the same webpage?
I have a webpage which contains various Javascript objects and would like a way to take a "snapshot" of the page and restore the page to the exact same state at a later time. I've been able to serialize and restore the page's entire DOM tree, but the Javascript objects are not restored so the page looks correct but does not function correctly.