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

bug fix - IGV js hangs and crashes browser if something is "off" in the url #1461

Merged
merged 1 commit into from
Feb 16, 2022

Conversation

eyal-elkevity
Copy link
Contributor

bug fix - when loading the igv, if you don't provide an explicit queryParametersSupported: false in the options object, the igv iterates over current query parameters looking for parameters of certain names (like 'file') and appends them to the config. and if, by any chance, you have corruption in the url (like we had an accidental && in the middle), the igv loading hangs the browser (goes into infinite loop). this simple fix solves this (if a query param is somehow invalid, move on to the next)

bug fix - when loading the igv, if you don't provide an explicit `queryParametersSupported: false` in the options object, the igv iterates over current query parameters looking for parameters of certain names (like 'file') and appends them to the config. and if, by any chance, you have corruption in the url (like we had an accidental `&&` in the middle), the igv loading hangs the browser (goes into infinite loop). this simple fix solves this (if a query param is somehow invalid, move on to the next)
@eyal-elkevity eyal-elkevity changed the title Update igv-create.js bug fix - IGV js hangs and crashes browser if something is "off" in the url Feb 14, 2022
@jrobinso jrobinso merged commit 094b15f into igvteam:master Feb 16, 2022
@jrobinso
Copy link
Contributor

Thanks for the fix. There might be another bug here as well, queryParametersSupported should default to false. Will look into that.

@eyal-elkevity
Copy link
Contributor Author

eyal-elkevity commented Feb 17, 2022 via email

@jrobinso
Copy link
Contributor

Yes they were both bugs, it defaults to "false" now. Thanks again for the fix.

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.

None yet

2 participants