[Pkg-mozext-commits] [adblock-plus-element-hiding-helper] 260/483: Don't allow selecting if not initialized (e.g. old Adblock Plus version)

David Prévot taffit at moszumanska.debian.org
Thu Jan 22 21:41:47 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus-element-hiding-helper.

commit 227d95161f84ff6b012f637a1969988e8eca0a24
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Tue Oct 26 12:07:51 2010 +0200

    Don't allow selecting if not initialized (e.g. old Adblock Plus version)
---
 modules/Aardvark.jsm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/Aardvark.jsm b/modules/Aardvark.jsm
index 7a91f4c..da5cd46 100644
--- a/modules/Aardvark.jsm
+++ b/modules/Aardvark.jsm
@@ -94,6 +94,9 @@ Aardvark.start = function(wrapper) {
 
 Aardvark.canSelect = function(browser)
 {
+  if (!Prefs.initialized)
+    return false;
+
   if (!browser || !browser.contentWindow || 
       !(browser.contentDocument instanceof Ci.nsIDOMHTMLDocument))
   {
@@ -102,9 +105,7 @@ Aardvark.canSelect = function(browser)
 
   let location = browser.contentWindow.location;
   if (location.href == "about:blank")
-  {
     return false;
-  }
 
   if (!Prefs.acceptlocalfiles &&
       location.hostname == "" &&

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus-element-hiding-helper.git



More information about the Pkg-mozext-commits mailing list