[Pkg-mozext-commits] [greasemonkey] 11/20: GM_xhr: accept "anonymous" or "mozAnon" option.

David Prévot taffit at moszumanska.debian.org
Fri Mar 25 21:37:20 UTC 2016


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

taffit pushed a commit to branch master
in repository greasemonkey.

commit 02097ff595b1b3eb682f7f199b612101ed04f65a
Author: Anthony Lieuallen <arantius at gmail.com>
Date:   Fri Mar 4 09:31:03 2016 -0500

    GM_xhr: accept "anonymous" or "mozAnon" option.
    
    Refs #2330
---
 modules/xmlhttprequester.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/xmlhttprequester.js b/modules/xmlhttprequester.js
index 28554cf..b783892 100644
--- a/modules/xmlhttprequester.js
+++ b/modules/xmlhttprequester.js
@@ -51,7 +51,7 @@ GM_xmlhttpRequester.prototype.contentStartRequest = function(details) {
     case "https":
     case "ftp":
         var req = new XMLHttpRequest(
-            details.mozAnon ? {'mozAnon': true} : {});
+            (details.mozAnon || details.anonymous) ? {'mozAnon': true} : {});
         GM_util.hitch(this, "chromeStartRequest", url, details, req)();
       break;
     default:

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



More information about the Pkg-mozext-commits mailing list