fix($httpBackend): use ActiveX XHR when making PATCH requests on IE8#5579
fix($httpBackend): use ActiveX XHR when making PATCH requests on IE8#5579wesleycho wants to merge 2 commits into
Conversation
IE8's native XHR doesn't support PATCH requests, but the ActiveX one does. Closes angular#2518 Closes angular#5043
There was a problem hiding this comment.
The original code added a jshint directive
/* global ActiveXObject */Either way is fine, but adding that would be a slightly more concise diff
There was a problem hiding this comment.
Noted - just fixed.
|
@caitp this looks related to the PR you are reviewing |
|
@IgorMinar actually, looking at jashkenas/backbone#2152 I'm not totally sure this is such a straight forward thing to deal with at all... Have you verified that the original fix works? Judging from the last comment, it might be enough, but I am not equipped to verify this seems like another place where an e2e test would help a lot. I'm hearing that it is probably good enough, but really, tests are a big deal :[ |
|
@caitp I invited you to our saucelabs orgs. this invite will give you access to a ton of browsers you can use for interactive or automated testing. |
|
as explained at #5390 (comment) this change should not be needed. thanks nevertheless |
IE8's native XHR doesn't support PATCH requests, but the ActiveX one does.
Closes #2518
Closes #5043
The feature is mainly implemented by @IgorMinar in #5390 - the text above is from his commit. @caitp found the bug that caused the tests to fail, and I suggested a refactor of her fix, which appears in my commit.
Unfortunately, I don't have a backend running currently that responds to a PATCH request, so I cannot test this in IE8 atm.