[TIMOB-8164] Mobileweb: FF 10.0.2 throws exception when attempting to access local file with HTTPClient
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Duplicate |
| Resolution Date | 2012-03-21T14:45:45.000+0000 |
| Affected Version/s | Release 2.0.0 |
| Fix Version/s | n/a |
| Components | MobileWeb |
| Labels | mw-list |
| Reporter | Tony Lukasavage |
| Assignee | Bryan Hughes |
| Created | 2012-03-21T13:40:51.000+0000 |
| Updated | 2014-01-28T23:48:59.000+0000 |
Description
Affects latest CI as of this writing: 2.0.0.v20120321134756
Problem
Firefox 10.0.2 will throw an exception whenever you attempt to access a local file withTi.Network.HTTPClient. This was not the case a week ago in the CI. Also, Chrome and Safari work fine with local files. The error is the one below:
A parameter or an operation is not supported by the underlying object
[Break On This Error]
this._xhr.withCredentials = this.withCredentials
Test Case
This test case will run as expected in Chrome and Safari, but will throw the above error in Firefix
var win = Ti.UI.createWindow({
backgroundColor: '#fff',
fullscreen: false,
exitOnClose: true
});
var xhr = Titanium.Network.createHTTPClient();
xhr.open('GET', '/app.js');
xhr.onload = function(e) {
alert('onload');
};
xhr.onerror = function(e) {
alert('onerror');
};
xhr.send();
win.open();
Fixing in TIMOB-7151