Opened 8 years ago
Closed 7 years ago
#13862 closed feature (worksforme)
Add possibility of passing arguments to XMLHttpRequest constructor
Reported by: | Veneti | Owned by: | jaubourg |
---|---|---|---|
Priority: | high | Milestone: | 1.next/2.next |
Component: | ajax | Version: | 1.9.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Making AJAX requests on Firefox OS (operating system, not regular browser) does not work unless XMLHttpRequest is created in the following way:
var xhr = new window.XMLHttpRequest({mozSystem:true});
What makes difference is 'mozSystem'. In another ticket #13394 someone proposed setting it via xhrFields however mozSystem is read-only and can not be set once XMLHttpRequest object is created. It can be set only on creation:
https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest
Change History (5)
comment:1 Changed 8 years ago by
Component: | unfiled → ajax |
---|---|
Milestone: | None → 1.10/2.0 |
Owner: | set to jaubourg |
Priority: | undecided → high |
Status: | new → assigned |
Type: | bug → feature |
comment:2 Changed 8 years ago by
Milestone: | 1.10/2.0 → 1.11/2.1 |
---|
comment:3 Changed 7 years ago by
Milestone: | 1.11/2.1 → 1.next/2.next |
---|
comment:4 Changed 7 years ago by
Method 1 seems good enough here? If we're going to add more code we need docs before landing it, and I shudder to think of more docs for ajax.
comment:5 Changed 7 years ago by
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
Several good solutions were given above so it seems like we can avoid another mechanism and the docs it would require.
You can already handle the problem 3 different ways:
Anyway, we should probably consider adding a standard option (as in 3) seeing as the options object param is part of the standard now: http://www.w3.org/TR/XMLHttpRequest/#dom-xmlhttprequest