[TIMOB-14611] MobileWeb: Reading file contents is not compatible with IE
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-03-27T21:39:59.000+0000 |
Affected Version/s | Release 3.1.1 |
Fix Version/s | 2014 Sprint 06, 2014 Sprint 06 Tooling, Release 3.3.0 |
Components | MobileWeb |
Labels | mobileweb, module_network, qe-testadded |
Reporter | Brenton House |
Assignee | Chris Barber |
Created | 2013-07-18T21:19:03.000+0000 |
Updated | 2014-07-25T22:06:47.000+0000 |
Description
When doing a file.read(), Titanium SDK executes the following command in local.js:
xhr.overrideMimeType('text/plain; charset=x-user-defined');
overrideMimeType is not supported in Internet Explorer and will break the app. to solve this, simply change the line to this:
if( xhr.overrideMimeType)
{
xhr.overrideMimeType('text/plain; charset=x-user-defined');
}
I have modified the local copy of my SDK and verified that this does work.
Created Pull Request: https://github.com/appcelerator/titanium_mobile/pull/4460
Are there any updates on this issue? How can we get this bug fix pushed into a build? Thanks!!
Test case:
3_2_X_hybrid pull request: https://github.com/appcelerator/titanium_mobile/pull/5544
Style cleanup: Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5545 3_2_X_hybrid pull request: https://github.com/appcelerator/titanium_mobile/pull/5546
[~oromero] You should be able to test/close this now.
Closing as fixed. Tested with: Appcelerator Studio, build: 3.3.0.20140611195 Titanium SDK, build:3.3.0.v20140612101712 Tested the above code in IE and got "SUCCESS" alert.