[Pkg-mozext-commits] [adblock-plus-element-hiding-helper] 04/483: Do not allow "wider" to select the document

David Prévot taffit at moszumanska.debian.org
Thu Jan 22 21:41:21 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 ef0ae1f36c6ae59c539f0243164f6f211e271cf7
Author: Wladimir Palant <trev at gtchat.de>
Date:   Mon Jan 8 02:26:09 2007 +0000

    Do not allow "wider" to select the document
    
    --HG--
    extra : convert_revision : svn%3Ad8bf93c1-8190-44a8-bb31-1ea94378a4df/trunk%40601
---
 chrome/content/aardvark.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/content/aardvark.js b/chrome/content/aardvark.js
index 93521da..13359fe 100644
--- a/chrome/content/aardvark.js
+++ b/chrome/content/aardvark.js
@@ -348,10 +348,10 @@ ehhAardvark.commands = [
 //------------------------------------------------------------
 ehhAardvark.wider = function (elem)
 {
-  if (elem && elem.parentNode)
+  if (elem)
   {
     var newElem = elem.parentNode;
-    if (!newElem)
+    if (!newElem || newElem.nodeType != newElem.ELEMENT_NODE)
       return false;
     
     if (this.widerStack && this.widerStack.length>0 && 

-- 
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