This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix($httpBackend): use ActiveX XHR when making PATCH requests on IE8
IE8's native XHR doesn't support PATCH requests, but the ActiveX one does. I'm also removing the noxhr error doc because nobody will ever get that error. Closes #2518 Closes #5043
- Loading branch information
Showing
4 changed files
with
21 additions
and
24 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6c17d02
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@IgorMinar I have a very simple routing example that is working on angular 1.2.6 and isn't working on 1.2.7 (just ie8, working on firefox and chrome). Is it possible that this commit is breaking routing in ie8? When I replace this code on 1.2.7 (and 1.2.8) with the previous code on 1.2.6 it works again. Here is a plunkr with the example I was talking about: http://plnkr.co/edit/Tpceyo689yEC8WRHiMG2?p=preview
Also I don't know if this is the right place to submit this, should I open an issue with the problem (I'm not very familiar with github, sorry)?
6c17d02
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cgrodriguez that plnkr seems to work fine in ie8
6c17d02
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it? Not for me, I get Typeerrors in ie8 console when clicking on links and views aren't shown. Same thing is happening in other projects I updated angular to 1.2.7 or 1.2.8. When debugging it, createXhr function is throwing the TypeError exception I talked about :(
6c17d02
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on saucelabs I'm not seeing any problems in the webconsole with the default browser settings. Maybe you have a security policy or something causing the issue?
6c17d02
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thought about that and tried a bit without success. I'll give it another try asap and keep you updated. Thanks for your time and help!
6c17d02
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was indeed a security issue, I had the "Enable Native xmlHTTP support" disabled so the "new window.XMLHttpRequest()" line threw an exception. I'll see if I can work around this since I can't tweak security settings for users at work. Thanks again! :)