[Pkg-mozext-commits] [wot] 141/226: Fixed minor bugs on Firefox shutdown
David Prévot
taffit at moszumanska.debian.org
Fri May 1 00:35:44 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository wot.
commit 5bf04c59d0548f6638b2efc5db081e87a41deadd
Author: Sergey Andryukhin <sorgoz at yandex.com>
Date: Mon Sep 2 16:06:12 2013 +0300
Fixed minor bugs on Firefox shutdown
---
content/prefs.js | 8 +++++---
content/util.js | 8 +++-----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/content/prefs.js b/content/prefs.js
index 26e5a4a..c2634c7 100644
--- a/content/prefs.js
+++ b/content/prefs.js
@@ -187,9 +187,11 @@ var wot_prefs =
setChar: function(name, value, safe_utf8)
{
try {
- value = safe_utf8 ? wot_util.encode_utf8(value) : value; // endode to utf8 if needed
- this.pref.setCharPref(WOT_PREF + name, value);
- return true;
+ if (this.pref) {
+ value = safe_utf8 ? wot_util.encode_utf8(value) : value; // endode to utf8 if needed
+ this.pref.setCharPref(WOT_PREF + name, value);
+ return true;
+ }
} catch (e) {
dump("wot_prefs.setChar(" + name + "): failed with " + e + "\n");
}
diff --git a/content/util.js b/content/util.js
index d57b475..2ae9b6b 100644
--- a/content/util.js
+++ b/content/util.js
@@ -1039,7 +1039,7 @@ var wot_idn =
isidn: function(str)
{
try {
- return this.handle.isACE(str);
+ return this.handle ? this.handle.isACE(str) : null;
} catch (e) {
dump("wot_idn.isidn: failed with " + e + "\n");
}
@@ -1049,7 +1049,7 @@ var wot_idn =
utftoidn: function(utf)
{
try {
- return this.handle.convertUTF8toACE(utf);
+ return this.handle ? this.handle.convertUTF8toACE(utf) : null;
} catch (e) {
dump("wot_idn.utftoidn: failed with " + e + "\n");
}
@@ -1059,7 +1059,7 @@ var wot_idn =
idntoutf: function(idn)
{
try {
- return this.handle.convertACEtoUTF8(idn);
+ return this.handle ? this.handle.convertACEtoUTF8(idn) : null;
} catch (e) {
dump("wot_idn.idntoutf: failed with " + e + "\n");
}
@@ -1069,8 +1069,6 @@ var wot_idn =
wot_modules.push({ name: "wot_idn", obj: wot_idn });
-const WOT_STYLESHEET = "chrome://wot/skin/wot.css";
-
var wot_css =
{
cache: {},
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/wot.git
More information about the Pkg-mozext-commits
mailing list