[Pkg-mozext-commits] [adblock-plus-element-hiding-helper] 222/483: Temporary work-around for bug 604736, border around selected element isn't being displayed in current Firefox 4 nightlies

David Prévot taffit at moszumanska.debian.org
Thu Jan 22 21:41:43 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 87b5e8fa088302d98d3c45e643763cbf051ce323
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Fri Oct 15 21:33:08 2010 +0200

    Temporary work-around for bug 604736, border around selected element isn't being displayed in current Firefox 4 nightlies
---
 chrome/content/aardvark.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/chrome/content/aardvark.js b/chrome/content/aardvark.js
index 2aa8a2d..8241c3f 100644
--- a/chrome/content/aardvark.js
+++ b/chrome/content/aardvark.js
@@ -292,7 +292,8 @@ ehhAardvark.showBoxAndLabel = function(elem, string) {
       doc.adoptNode(this.borderElems[i]);
     }
     catch (e) {
-      // Gecko 1.8 doesn't implement adoptNode, ignore
+      // Temporary work-around for bug 604736, adoptNode fails
+      this.borderElems[i] = doc.importNode(this.borderElems[i], true);
     }
     doc.body.appendChild(this.borderElems[i]);
   }
@@ -332,7 +333,8 @@ ehhAardvark.showBoxAndLabel = function(elem, string) {
     doc.adoptNode(this.labelElem);
   }
   catch(e) {
-    // Gecko 1.8 doesn't implement adoptNode, ignore
+    // Temporary work-around for bug 604736, adoptNode fails
+    this.labelElem = doc.importNode(this.labelElem, true);
   }
   doc.body.appendChild(this.labelElem);
 

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