[Pkg-mozext-commits] [greasemonkey] 25/35: Update xmlhttprequester.js
David Prévot
taffit at moszumanska.debian.org
Wed May 20 02:43:38 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 ac697dcd7a725bcf9038eb60810f759393af230c
Author: janekptacijarabaci <janekptacijarabaci at users.noreply.github.com>
Date: Fri May 8 18:43:34 2015 +0200
Update xmlhttprequester.js
---
modules/xmlhttprequester.js | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/modules/xmlhttprequester.js b/modules/xmlhttprequester.js
index e39550f..6ed2d52 100644
--- a/modules/xmlhttprequester.js
+++ b/modules/xmlhttprequester.js
@@ -126,7 +126,15 @@ function(safeUrl, details, req) {
req.open(details.method, safeUrl,
!details.synchronous, details.user || "", details.password || "");
- if (PrivateBrowsingUtils.isWindowPrivate(this.wrappedContentWin)) {
+ var isPrivate = true;
+ if (PrivateBrowsingUtils.isContentWindowPrivate) {
+ // Firefox >= 35
+ isPrivate = PrivateBrowsingUtils.isContentWindowPrivate(this.wrappedContentWin);
+ } else {
+ // Firefox <= 34; i.e. PaleMoon
+ isPrivate = PrivateBrowsingUtils.isWindowPrivate(this.wrappedContentWin);
+ }
+ if (isPrivate) {
var channel = req.channel
.QueryInterface(Components.interfaces.nsIPrivateBrowsingChannel);
channel.setPrivate(true);
--
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