Skip to content

Conversation

@gibson042
Copy link
Member

IE and iOS <10 XHR transport does not succeed on data: URIs
Ref gh-4243
Ref gh-4126

IE and iOS <10 XHR transport does not succeed on data: URIs
Ref jquerygh-4243
Ref jquerygh-4126
@mgol
Copy link
Member

mgol commented Dec 13, 2018

@gibson042 Could you explain what the issue is and why your new solution preserves the solution from #4243 while not triggering issues in IE or old iOS?

@gibson042
Copy link
Member Author

It reverts the change away from dataType: "script", which can take advantage of script-tag transport rather than XHR and is apparently necessary for some browsers in some cases. It then fixes #4126 in a different way, by overriding the default text-to-script converter (the usual invocation point of jQuery.globalEval) and instead using the jQuery.ajax dataFilter setting, which has the convenient property of being invoked ahead of conversion only for successful responses.

I added some comments explaining the kludge.

Copy link
Member

@mgol mgol left a comment

Choose a reason for hiding this comment

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

Thank you! Looks good to me (I assume you've tested that on IE or old iOS).

Copy link
Member

@timmywil timmywil left a comment

Choose a reason for hiding this comment

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

LGTM

@gibson042 gibson042 merged commit 13de7c9 into jquery:master Dec 13, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jun 11, 2019
@mgol mgol added this to the 3.4.0 milestone Jan 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Development

Successfully merging this pull request may close these issues.

3 participants