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

Poll for storage changes #86

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Poll for storage changes #86

merged 1 commit into from
Nov 29, 2023

Conversation

psiinon
Copy link
Member

@psiinon psiinon commented Nov 28, 2023

We currently check for storage changes on page load and unload .. which doesnt work so well for modern apps.
Simple example - login to Juice Shop, data is set in local and session storage but we only get to see it when the browser is closed or navigates to a completely new page.
Detecting URL changes appears to be very hard, so polling seems to be a lesser evil.
I wasnt able to work out a good integration test, suggestions appreciated..

@thc202
Copy link
Member

thc202 commented Nov 28, 2023

Thank you!

@psiinon psiinon force-pushed the storage/poll branch 2 times, most recently from daf4169 to 9d34f66 Compare November 28, 2023 18:03
@psiinon
Copy link
Member Author

psiinon commented Nov 28, 2023

Added integration tests .. hope they work in CI ...

Signed-off-by: Simon Bennetts <[email protected]>
@psiinon
Copy link
Member Author

psiinon commented Nov 29, 2023

changed how the storage unit tests work..

@kingthorin kingthorin merged commit d1528a7 into zaproxy:main Nov 29, 2023
3 checks passed
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

Successfully merging this pull request may close these issues.

3 participants