Skip to content

Store scroll data by path in sessionStorage #1924

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

Merged
merged 1 commit into from
Feb 4, 2019

Conversation

jcollins-g
Copy link
Contributor

Fixes #1923.

sessionStorage is still origin-wide as is localStorage, rather than local per page. Reflect this in the keys we store to avoid collisions between different pages.

@googlebot googlebot added the cla: yes Google CLA check succeeded. label Feb 4, 2019
@jcollins-g
Copy link
Contributor Author

Example of what sessionStorage looks like after this change:

screenshot from 2019-02-04 10-28-25

Previously, we accidentally stored all scrolls on top of each other, with bad results.

@jcollins-g jcollins-g merged commit 2ac92c6 into master Feb 4, 2019
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.6%) to 93.416% when pulling 41bdce5 on sessionStorage-by-path into 733992b on master.

@jcollins-g jcollins-g deleted the sessionStorage-by-path branch February 4, 2019 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants