ulixee / hero

The web browser built for scraping
MIT License
696 stars 33 forks source link

Pagestate features #41

Closed blakebyrnes closed 2 years ago

blakebyrnes commented 2 years ago

This PR integrates PageStateGenerator with an ability to export and then import into the client.

It also adds "resources" to the generator.

When a page state is imported, it's sent in a single command to the backend as a "Tab.assert". Tab.assert then installs dom checks into each Frame as needed, and then can request them by id. This is to reduce the bandwidth of sending across client->core and also core->browser when we generate large sets of diffs.

Also in this PR:

Bugs fixed from Timetravel enhancements: