[Pkg-mozext-commits] [firebug] 09/48: Issue 7003: Opening the search field popup blurs the window after changing Firebug to detached mode

David Prévot taffit at moszumanska.debian.org
Tue Jun 3 01:47:43 UTC 2014


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

taffit pushed a commit to branch master
in repository firebug.

commit 9635f7c3ffd4ea7be91b5b8b871893423c3a6b39
Author: Jan Odvarko <odvarko at gmail.com>
Date:   Tue May 27 10:27:24 2014 +0200

    Issue 7003: 	Opening the search field popup blurs the window after changing Firebug to detached mode
---
 extension/content/firebug/firefox/searchBox.xml | 5 ++++-
 extension/content/firebug/lib/system.js         | 6 ++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/extension/content/firebug/firefox/searchBox.xml b/extension/content/firebug/firefox/searchBox.xml
index 94ffb31..f9bf1b4 100644
--- a/extension/content/firebug/firefox/searchBox.xml
+++ b/extension/content/firebug/firefox/searchBox.xml
@@ -74,7 +74,10 @@
             optionsPopup.addEventListener("popupshowing", function runOnce()
             {
                 optionsPopup.removeEventListener("popupshowing", runOnce, false);
-                optionsPopup.setAttribute("noautohide", true);
+
+                // xxxHonza: Workaround for Linux, see issue 7003 for more details
+                if (!FBL.isLinux(window))
+                    optionsPopup.setAttribute("noautohide", true);
             }, false);
         ]]></constructor>
 
diff --git a/extension/content/firebug/lib/system.js b/extension/content/firebug/lib/system.js
index d8dedaa..21984df 100644
--- a/extension/content/firebug/lib/system.js
+++ b/extension/content/firebug/lib/system.js
@@ -146,6 +146,7 @@ System.getStringDataFromClipboard = function()
 
 System.isMac = function(win)
 {
+    FBTrace.sysout("isMaC", win)
     return win.navigator.platform.search("Mac") != -1;
 }
 
@@ -154,6 +155,11 @@ System.isWin = function(win)
     return win.navigator.platform.search("Win") != -1;
 }
 
+System.isLinux = function(win)
+{
+    return win.navigator.platform.search("Linux") != -1;
+}
+
 // ********************************************************************************************* //
 // Firebug Version Comparator
 

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



More information about the Pkg-mozext-commits mailing list