1. A computer-implemented method for restoring web pages, comprising: identifying a root node of a node graph based on a scripting language object list that remains after garbage collection of a scripting language heap of a web page, wherein each node of the node graph represents an object of a plurality of objects that form a last state of the web page and the plurality of objects includes at least one scripting language object that refers to a document object model (DOM) object; traversing the node graph to a next frontier node; determining an object identifier of the next frontier node; and storing the object identifier and object properties associated with the object identified by the object identifier into a queue of objects when the object identifier of the next frontier node is not found in the queue of objects, whereby the queue of objects is used to restore objects with object properties having values according to the last state of the web page.
1. A computer-implemented method for restoring web pages, comprising: identifying a root node of a node graph based on a scripting language object list that remains after garbage collection of a scripting language heap of a web page, wherein each node of the node graph represents an object of a plurality of objects that form a last state of the web page and the plurality of objects includes at least one scripting language object that refers to a document object model (DOM) object; traversing the node graph to a next frontier node; determining an object identifier of the next frontier node; and storing the object identifier and object properties associated with the object identified by the object identifier into a queue of objects when the object identifier of the next frontier node is not found in the queue of objects, whereby the queue of objects is used to restore objects with object properties having values according to the last state of the web page. 19. The method of claim 1 , wherein storing an object identifier for each object includes generating a unique identifier for each object.