From ee6bf01ac31c972f8502ebbdc227bfe20b3202d4 Mon Sep 17 00:00:00 2001 From: Patrick Kettner Date: Fri, 3 Jan 2014 00:34:20 -0500 Subject: [PATCH] make xhr2 test more accurate with FF3.6 --- feature-detects/network/xhr2.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/feature-detects/network/xhr2.js b/feature-detects/network/xhr2.js index 2ea21ebcaf..1b2cc537ad 100644 --- a/feature-detects/network/xhr2.js +++ b/feature-detects/network/xhr2.js @@ -19,7 +19,6 @@ Tests for XHR2. define(['Modernizr'], function( Modernizr ) { // all three of these details report consistently across all target browsers: // !!(window.ProgressEvent); - // !!(window.FormData); - // window.XMLHttpRequest && "withCredentials" in new XMLHttpRequest; - Modernizr.addTest('xhr2', 'FormData' in window); + // 'XMLHttpRequest' in window && 'withCredentials' in new XMLHttpRequest + Modernizr.addTest('xhr2', 'XMLHttpRequest' in window && 'withCredentials' in new XMLHttpRequest()); });