[Pkg-mozext-commits] [firebug] 12/16: Work-around: avoid FireFile breaking the Style panel when switching tabs

David Prévot taffit at moszumanska.debian.org
Mon Mar 31 22:45:31 UTC 2014


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

taffit pushed a commit to tag fbtest-1.11.1
in repository firebug.

commit 126c92c4b4f732494a390b5459783917d2174d4a
Author: Simon Lindholm <simon.lindholm10 at gmail.com>
Date:   Wed Dec 12 14:11:19 2012 +0100

    Work-around: avoid FireFile breaking the Style panel when switching tabs
---
 extension/content/firebug/css/stylePanel.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/extension/content/firebug/css/stylePanel.js b/extension/content/firebug/css/stylePanel.js
index f18b80d..51379d4 100644
--- a/extension/content/firebug/css/stylePanel.js
+++ b/extension/content/firebug/css/stylePanel.js
@@ -157,6 +157,10 @@ CSSStylePanel.prototype = Obj.extend(CSSStyleSheetPanel.prototype,
 
             for (var i = 0; i < props.length; i++)
             {
+                // XXX Avoid FireFile NPE
+                if (!this.template.CSSFontPropValueTag)
+                    break;
+
                 var prop = props[i];
                 var propName = prop.getElementsByClassName("cssPropName").item(0).textContent;
                 if (propName == "font-family" || propName == "font")

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