[Pkg-mozext-commits] [greasemonkey] 05/24: Update xmlhttprequester.js
David Prévot
taffit at moszumanska.debian.org
Sat May 30 13:32:04 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository greasemonkey.
commit 5a0040cd9622bb8af9cd4d56d158544f182278a5
Author: janekptacijarabaci <janekptacijarabaci at users.noreply.github.com>
Date: Sat May 23 16:51:58 2015 +0200
Update xmlhttprequester.js
---
modules/xmlhttprequester.js | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/modules/xmlhttprequester.js b/modules/xmlhttprequester.js
index 6ed2d52..f4c9e23 100644
--- a/modules/xmlhttprequester.js
+++ b/modules/xmlhttprequester.js
@@ -126,6 +126,8 @@ function(safeUrl, details, req) {
req.open(details.method, safeUrl,
!details.synchronous, details.user || "", details.password || "");
+ var channel;
+
var isPrivate = true;
if (PrivateBrowsingUtils.isContentWindowPrivate) {
// Firefox >= 35
@@ -135,11 +137,15 @@ function(safeUrl, details, req) {
isPrivate = PrivateBrowsingUtils.isWindowPrivate(this.wrappedContentWin);
}
if (isPrivate) {
- var channel = req.channel
- .QueryInterface(Components.interfaces.nsIPrivateBrowsingChannel);
+ channel = req.channel
+ .QueryInterface(Components.interfaces.nsIPrivateBrowsingChannel);
channel.setPrivate(true);
}
+ channel = req.channel
+ .QueryInterface(Components.interfaces.nsIHttpChannelInternal);
+ channel.forceAllowThirdPartyCookie = true;
+
if (details.overrideMimeType) {
req.overrideMimeType(details.overrideMimeType);
}
--
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