Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8164] Mobileweb: FF 10.0.2 throws exception when attempting to access local file with HTTPClient

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2012-03-21T14:45:45.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sn/a
ComponentsMobileWeb
Labelsmw-list
ReporterTony Lukasavage
AssigneeBryan Hughes
Created2012-03-21T13:40:51.000+0000
Updated2014-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 with Ti.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();

Comments

  1. Bryan Hughes 2012-03-21

    Fixing in TIMOB-7151

JSON Source