diff options
author | Ascrod <32915892+Ascrod@users.noreply.github.com> | 2019-04-08 18:12:40 -0400 |
---|---|---|
committer | Ascrod <32915892+Ascrod@users.noreply.github.com> | 2019-04-13 11:37:45 -0400 |
commit | 9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5 (patch) | |
tree | f2f676dbca9e8beb16895e97d733bc9de70ecd07 /application/palemoon/components/feeds/WebContentConverter.js | |
parent | 7d1126fad325e889559b1f9113cbbb17d49842fa (diff) | |
download | UXP-9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5.tar UXP-9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5.tar.gz UXP-9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5.tar.lz UXP-9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5.tar.xz UXP-9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5.zip |
Issue #991 Part 1: Pale Moon
Diffstat (limited to 'application/palemoon/components/feeds/WebContentConverter.js')
-rw-r--r-- | application/palemoon/components/feeds/WebContentConverter.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/application/palemoon/components/feeds/WebContentConverter.js b/application/palemoon/components/feeds/WebContentConverter.js index 41679b028..42e2edee0 100644 --- a/application/palemoon/components/feeds/WebContentConverter.js +++ b/application/palemoon/components/feeds/WebContentConverter.js @@ -436,13 +436,8 @@ WebContentConverterRegistrar.prototype = { // check if it is in the black list var pb = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefBranch); - var allowed; - try { - allowed = pb.getBoolPref(PREF_HANDLER_EXTERNAL_PREFIX + "." + aProtocol); - } - catch (e) { - allowed = pb.getBoolPref(PREF_HANDLER_EXTERNAL_PREFIX + "-default"); - } + var allowed = pb.getBoolPref(PREF_HANDLER_EXTERNAL_PREFIX + "." + aProtocol, + pb.getBoolPref(PREF_HANDLER_EXTERNAL_PREFIX + "-default")); if (!allowed) { // XXX this should be a "security exception" according to spec throw("Not allowed to register a protocol handler for " + aProtocol); |