[Pkg-mozext-commits] [adblock-plus-element-hiding-helper] 27/483: Do not need to call getBrowser() to anchor tooltips

David Prévot taffit at moszumanska.debian.org
Thu Jan 22 21:41:23 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 c89c75390f5f0c63136385dde6bc025865b72715
Author: Wladimir Palant <trev at gtchat.de>
Date:   Wed Jan 10 22:46:52 2007 +0000

    Do not need to call getBrowser() to anchor tooltips
    
    --HG--
    extra : convert_revision : svn%3Ad8bf93c1-8190-44a8-bb31-1ea94378a4df/trunk%40624
---
 chrome/content/aardvark.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/chrome/content/aardvark.js b/chrome/content/aardvark.js
index 355527e..e60e035 100644
--- a/chrome/content/aardvark.js
+++ b/chrome/content/aardvark.js
@@ -93,7 +93,7 @@ ehhAardvark.showCommandLabel = function(key, label) {
   document.getElementById("ehh-commandlabel-label").setAttribute("value", label);
 
   var commandLabel = document.getElementById("ehh-commandlabel");
-  commandLabel.showPopup(getBrowser(), this.mouseX, this.mouseY, "tooltip", "topleft", "topleft");
+  commandLabel.showPopup(document.documentElement, this.mouseX, this.mouseY, "tooltip", "topleft", "topleft");
 
   this.commandLabelTimeout = setTimeout(function() {
     commandLabel.hidePopup();
@@ -510,9 +510,8 @@ ehhAardvark.viewSource = function (elem)
 
   var x = this.mouseX;
   var y = this.mouseY;
-  var browser = getBrowser();
   setTimeout(function() {
-    sourceBox.showPopup(browser, x, y, "tooltip", "topleft", "topleft");
+    sourceBox.showPopup(document.documentElement, x, y, "tooltip", "topleft", "topleft");
   }, 500);
   return true;
 }

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