[Pkg-mozext-commits] [greasemonkey] 07/30: Fix - checkScriptRefresh()
David Prévot
taffit at moszumanska.debian.org
Thu Nov 26 00:56:27 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 f614051515f84eba0ea1c34caf1ed12ed5c7cd0b
Author: janekptacijarabaci <janekptacijarabaci at seznam.cz>
Date: Mon Oct 26 15:44:27 2015 +0100
Fix - checkScriptRefresh()
---
modules/requestObserver.js | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/modules/requestObserver.js b/modules/requestObserver.js
index d3ead1d..2616cf0 100644
--- a/modules/requestObserver.js
+++ b/modules/requestObserver.js
@@ -14,8 +14,11 @@ function checkScriptRefresh(channel) {
if (!(channel instanceof Components.interfaces.nsIChannel)) return;
if (!channel.loadInfo) return;
- var type = channel.loadInfo.contentPolicyType;
-
+ // See http://bugzil.la/1182571
+ var type = channel.loadInfo.externalContentPolicyType
+ ? channel.loadInfo.externalContentPolicyType
+ : channel.loadInfo.contentPolicyType;
+
// only check for updated scripts when tabs/iframes are loaded
if (type != types.TYPE_DOCUMENT && type != types.TYPE_SUBDOCUMENT) return;
--
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