[Pkg-mozext-commits] [perspectives-extension] 57/72: Perspectives - Avoid throwing an error if getRecentBadCerts functionality is missing
David Prévot
taffit at moszumanska.debian.org
Thu Dec 11 02:12:51 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository perspectives-extension.
commit 910e064bbcf825e71d68c7ed5d606964c5f4cfb7
Author: Dave Schaefer <dave.schaefer at gmail.com>
Date: Sun Oct 26 21:52:55 2014 -0600
Perspectives - Avoid throwing an error if getRecentBadCerts functionality is missing
A partial workaround for GH 143;
returning and avoiding an error message is better than nothing.
This functionality needs to be properly fixed though.
---
plugin/chrome/content/notaries.js | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/plugin/chrome/content/notaries.js b/plugin/chrome/content/notaries.js
index 4e22f30..054c290 100644
--- a/plugin/chrome/content/notaries.js
+++ b/plugin/chrome/content/notaries.js
@@ -172,8 +172,11 @@ var Perspectives = {
return null;
}
- Components.utils.import("resource://gre/modules/PrivateBrowsingUtils.jsm");
- recentCertsSvc = certDB.getRecentBadCerts(PrivateBrowsingUtils.isWindowPrivate(window));
+ // nsIRecentBadCerts functionality removed in Firefox 33
+ if (typeof certDB.getRecentBadCerts === "function") {
+ Components.utils.import("resource://gre/modules/PrivateBrowsingUtils.jsm");
+ recentCertsSvc = certDB.getRecentBadCerts(PrivateBrowsingUtils.isWindowPrivate(window));
+ }
}
else {
Pers_debug.d_print("error", "No way to get invalid cert status!");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/perspectives-extension.git
More information about the Pkg-mozext-commits
mailing list