Skip to content
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

Specify session history navigation #94

Open
jgraham opened this issue Mar 19, 2021 · 2 comments
Open

Specify session history navigation #94

jgraham opened this issue Mar 19, 2021 · 2 comments

Comments

@jgraham
Copy link
Member

jgraham commented Mar 19, 2021

We should have commands for moving around in history.

Currently WebDriver has forward and back commands that correspond to tranversing the hsitory by a delta in the HTML spec. This is straightforward to specify. CDP takes a different approach; it allows getting a list of session history entries and navigating to an entry by id. Probably that's widely implementable because it corresponds to browser features like a drop down on the back button showing the full history. The question is whether the additional flexibility has use cases that merit the additional complexity.

@jgraham
Copy link
Member Author

jgraham commented Apr 15, 2021

Per the meeting discussion we should go ahead and specify a mechaism to traverse history by a delta and not worry about full access to the session history for now.

@OrKoN
Copy link
Contributor

OrKoN commented Apr 10, 2024

There is an additional use case that was mentioned to us by WPT test authors. In WPT there is a need to test the behavior of the back/forward buttons that takes the history manipulation prevention into account https://chromium.googlesource.com/chromium/src/+/refs/heads/lkgr/docs/history_manipulation_intervention.md Currently, we can only invoke the behavior described by the HTML spec and we omit the behavior that would potentially affect the end user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants