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

Fix setting timeout to sync XHR #331

Merged
merged 1 commit into from
Aug 4, 2021
Merged

Fix setting timeout to sync XHR #331

merged 1 commit into from
Aug 4, 2021

Conversation

xg-wang
Copy link
Member

@xg-wang xg-wang commented Aug 4, 2021

This happens when creating a sync XHR in a normal window environment, regressed from #326

Failed to set the 'timeout' property on 'XMLHttpRequest': Timeouts cannot be set for synchronous requests made from a document.

This happens when creating a sync XHR in a normal window environment

Failed to set the 'timeout' property on 'XMLHttpRequest': Timeouts cannot be set for synchronous requests made from a document.
Copy link
Contributor

@elwayman02 elwayman02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing and adding the test to prevent against regressions!

@xg-wang xg-wang added the bug label Aug 4, 2021
@xg-wang xg-wang merged commit c7f045f into master Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants