Skip to content

Conversation

@Mandloi2309
Copy link

When calling a vizarr instance via an iframe, and a user performs any operation on an image displayed via the iframe within the page, it loads a new page (i.e. vizarr pushes a new state to the parent page history). This causes the browser’s back button to go back to the same page but without the operations user did.

My suggestion is to use replaceState instead of pushState for viewStateChange in the viewer.

window.history.replaceState({}, "", decodeURIComponent(url.href))

@dbmi-svc-checkmarx
Copy link

Logo
Checkmarx One – Scan Summary & Details3d1b6248-25cc-4237-98bc-96e2107125bd

Great job! No new security vulnerabilities introduced in this pull request


Use @Checkmarx to reach out to us for assistance.

Just send a PR comment with @Checkmarx followed by a natural language request.

Examples: @Checkmarx how are you able to help me? @Checkmarx rescan this PR

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.

2 participants