Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
9ca87af4
Commit
9ca87af4
authored
Nov 14, 2013
by
Dave Methvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #14475. Use IE11-friendly detect for proper XHR object.
We don't seem to have test cases for local file access.
parent
473c7db7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
xhr.js
src/ajax/xhr.js
+3
-7
No files found.
src/ajax/xhr.js
View file @
9ca87af4
...
@@ -6,13 +6,9 @@ define([
...
@@ -6,13 +6,9 @@ define([
// Create the request object
// Create the request object
// (This is still attached to ajaxSettings for backward compatibility)
// (This is still attached to ajaxSettings for backward compatibility)
jQuery
.
ajaxSettings
.
xhr
=
window
.
ActiveXObject
?
jQuery
.
ajaxSettings
.
xhr
=
window
.
ActiveXObject
!==
undefined
?
/* Microsoft failed to properly
// Support: IE6+
* implement the XMLHttpRequest in IE7 (can't request local files),
// XHR cannot access local files, always use ActiveX for that case
* so we use the ActiveXObject when it is available
* Additionally XMLHttpRequest can be disabled in IE7/IE8 so
* we need a fallback.
*/
function
()
{
function
()
{
return
!
this
.
isLocal
&&
createStandardXHR
()
||
createActiveXHR
();
return
!
this
.
isLocal
&&
createStandardXHR
()
||
createActiveXHR
();
}
:
}
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment