Skip to content

Conversation

@mookums
Copy link
Contributor

@mookums mookums commented Sep 24, 2025

This implements the entire History WebAPI.

There are also some modifications to our testing runner because History navigates the page and needs a second page.wait() to rerun and validate that the state persisted.

@mookums mookums marked this pull request as ready for review September 24, 2025 07:24
}

pub fn _replaceState(self: *History, state: Env.JsObject, _: ?[]const u8, _url: ?[]const u8, page: *Page) !void {
const arena = page.session.arena;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts on just storing the session arena in a field?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not opposed to it but we already take page: *Page in a few places because we need to access things like the page.url so it feels like duplication.

@krichprollsch krichprollsch merged commit a579977 into main Sep 26, 2025
10 checks passed
@krichprollsch krichprollsch deleted the history branch September 26, 2025 10:15
@github-actions github-actions bot locked and limited conversation to collaborators Sep 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants