This repository was 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.4k
mozSystem parameter for window.XMLHttpRequest on FirefoxOS #2318
Milestone
Comments
👍 |
4 similar comments
+1 |
+1 |
+1 |
+1 |
A mozAnon parameter is necessary in Firefox OS as well in the meantime, so this should probably be a generic option to pass in parameters. |
+1 |
amccausl
added a commit
to amccausl/angular.js
that referenced
this issue
Jun 19, 2014
Previously, it was not possible to pass settings to the constructor of the XMLHttpRequest. This adds an optional config property `xhrConfig` to the $http constructor, allowing us to do so. This is required for use of the mozAnon and mozSystem options for FirefoxOS. See https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#XMLHttpRequest() for details. Closes angular#2318
amccausl
added a commit
to amccausl/angular.js
that referenced
this issue
Jun 19, 2014
Previously, it was not possible to pass settings to the constructor of the XMLHttpRequest. This adds an optional config property `xhrConfig` to the $http constructor, allowing us to do so. This is required for use of the mozAnon and mozSystem options for FirefoxOS. See https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#XMLHttpRequest() for details. Closes angular#2318
sjurba
added a commit
to sjurba/angular.js
that referenced
this issue
Jun 19, 2014
The `xhrFields` object is passed to the XMLHttpRequest constructor making it possible to set non-standard properties on the XMLHttpRequest object. With this functionality it is possible to set the `mozSystem` and `mozAnon` properties, which is required to use angular in a packaged Firefox OS app. See https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#XMLHttpRequest() Closes angular#2318
sjurba
added a commit
to sjurba/angular.js
that referenced
this issue
Jun 19, 2014
The `xhrFields` object is passed to the XMLHttpRequest constructor making it possible to set non-standard properties on the XMLHttpRequest object. With this functionality it is possible to set the `mozSystem` and `mozAnon` properties, which is required to use angular in a packaged Firefox OS app. See https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#XMLHttpRequest() Closes angular#2318
sjurba
added a commit
to sjurba/angular.js
that referenced
this issue
Jun 19, 2014
The `xhrFields` object is passed to the XMLHttpRequest constructor making it possible to set non-standard properties on the XMLHttpRequest object. It is also possible to set the object on `$http.defaults` to use it globally. With this functionality it is possible to set the `mozSystem` and `mozAnon` properties, which is required to use angular in a packaged Firefox OS app. See https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#XMLHttpRequest() Closes angular#2318
sjurba
added a commit
to sjurba/angular.js
that referenced
this issue
Jun 19, 2014
The `xhrFields` object is passed to the XMLHttpRequest constructor making it possible to set non-standard properties on the XMLHttpRequest object. It is also possible to set the object on `$http.defaults` to use it globally. With this functionality it is possible to set the `mozSystem` and `mozAnon` properties, which is required to use angular in a packaged Firefox OS app. See https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#XMLHttpRequest() Closes angular#2318
+1 |
1 similar comment
+1 |
sjurba
added a commit
to sjurba/angular.js
that referenced
this issue
Jun 13, 2015
sjurba
added a commit
to sjurba/angular.js
that referenced
this issue
Jun 18, 2015
…TTPRequest objects Closes angular#2318
sjurba
added a commit
to sjurba/angular.js
that referenced
this issue
Jun 18, 2015
sjurba
added a commit
to sjurba/angular.js
that referenced
this issue
Jun 18, 2015
Yay! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
To be allowed to do Cross-Domain requests in FirefoxOS you need the permission, and window.XMLHttpRequest has to be passed a constructor parameter like this:
See https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#XMLHttpRequest()
I currently patch Angular in the creatHttpBackend function to get this working, would be nice to not have to do that.
The text was updated successfully, but these errors were encountered: