-
Notifications
You must be signed in to change notification settings - Fork 285
Implement History WebAPI.
#1086
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| } | ||
|
|
||
| pub fn _replaceState(self: *History, state: Env.JsObject, _: ?[]const u8, _url: ?[]const u8, page: *Page) !void { | ||
| const arena = page.session.arena; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
This implements the entire
HistoryWebAPI.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.