[Pkg-javascript-commits] [dojo] 13/32: Rollback r22544 check for http response status 0 on 1.6 branch. Fixes #11230

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 17:39:07 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag 1.6.2
in repository dojo.

commit b41d934631f9c2129318adb324775ef710ad5b67
Author: Adam Peller <github at peller.org>
Date:   Tue Apr 26 21:41:14 2011 +0000

    Rollback r22544 check for http response status 0 on 1.6 branch. Fixes #11230
    
    git-svn-id: http://svn.dojotoolkit.org/src/branches/1.6/dojo@24490 560b804f-0ae3-0310-86f3-f6aa0a117693
---
 _base/_loader/hostenv_browser.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/_base/_loader/hostenv_browser.js b/_base/_loader/hostenv_browser.js
index 42d4603..d092a92 100644
--- a/_base/_loader/hostenv_browser.js
+++ b/_base/_loader/hostenv_browser.js
@@ -217,12 +217,14 @@ if(typeof window != 'undefined'){
 		}
 
 		d._isDocumentOk = function(http){
-			var stat = http.status || 0;
+			var stat = http.status || 0,
+				lp = location.protocol;
 			return (stat >= 200 && stat < 300) || 	// Boolean
 				stat == 304 ||			// allow any 2XX response code
 				stat == 1223 ||			// get it out of the cache
 								// Internet Explorer mangled the status code
-				!stat; // OR we're Titanium/browser chrome/chrome extension requesting a local file
+				// Internet Explorer mangled the status code OR we're Titanium/browser chrome/chrome extension requesting a local file
+				(!stat && (lp == "file:" || lp == "chrome:" || lp == "chrome-extension:" || lp == "app:"));
 		}
 
 		//See if base tag is in use.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git



More information about the Pkg-javascript-commits mailing list