Commit b278d817 authored by Dave Methvin's avatar Dave Methvin

Revert "Ajax: Fix #14424. Use ActiveX in IE9+ on local files, close gh-1434."

This reverts commit 498e0e6c.

We can't use the ActiveX XHR because it doesn't support events.
parent f9ad13c9
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
"globals": { "globals": {
"jQuery": true, "jQuery": true,
"define": true, "define": true,
"module": true, "module": true
"ActiveXObject": true
} }
} }
...@@ -5,14 +5,6 @@ define([ ...@@ -5,14 +5,6 @@ define([
], function( jQuery, support ) { ], function( jQuery, support ) {
jQuery.ajaxSettings.xhr = function() { jQuery.ajaxSettings.xhr = function() {
// Support: IE9+
// IE can't get local files with standard XHR, only ActiveX
if ( this.isLocal ) {
try {
return new ActiveXObject( "Microsoft.XMLHTTP" );
} catch( e ) {}
}
try { try {
return new XMLHttpRequest(); return new XMLHttpRequest();
} catch( e ) {} } catch( e ) {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment