[Pkg-mozext-commits] [itsalltext] 286/459: Another try at working around the showPopup bug(s)

David Prévot taffit at moszumanska.debian.org
Tue Feb 24 23:26:30 UTC 2015


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

taffit pushed a commit to branch master
in repository itsalltext.

commit 11ecb7d1389cc96699a62ae1724b7345941ce7f9
Author: docwhat at gerf.org <docwhat at gerf.org>
Date:   Tue Oct 30 16:07:02 2007 -0400

    Another try at working around the showPopup bug(s)
---
 src/chrome/content/cacheobj.js | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/chrome/content/cacheobj.js b/src/chrome/content/cacheobj.js
index abb1c81..355a1d0 100644
--- a/src/chrome/content/cacheobj.js
+++ b/src/chrome/content/cacheobj.js
@@ -529,14 +529,25 @@ CacheObj.prototype.onContext = function(event) {
      *
      * Excuse me while I scream.
      *
-     * See Mozilla bugs: 287357, 362403, 279703
+     * See Mozilla bugs: 
+     * https://bugzilla.mozilla.org/show_bug.cgi?id=287357
+     * https://bugzilla.mozilla.org/show_bug.cgi?id=291083
      */
     var cobj = ItsAllText.getCacheObj(event.target);
     var popup = ItsAllText.rebuildMenu(cobj.uid);
-    document.popupNode = popup;
+    /*
     popup.showPopup(popup,
                     event.screenX, event.screenY,
                     'context', null, null);
+    */
+    if (popup.openPopup) {
+        popup.openPopup(null, 'after_pointer', null, null, true, null);
+    } else {
+        document.popupNode = popup;
+        popup.showPopup(document.documentElement,
+                        event.screenX, event.screenY,
+                        'popup', null, null);
+    }
     event.stopPropagation();
     return false;
 };

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git



More information about the Pkg-mozext-commits mailing list