[Pkg-mozext-commits] [firebug] 13/55: [&1.10] Avoid exception that breaks Trace styles with inline style

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


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

taffit pushed a commit to tag firebug-1.10.1
in repository firebug.

commit 1d10f387ed736fc8101fc491f89e44e15337165b
Author: Jan Odvarko <odvarko at gmail.com>
Date:   Fri Jul 13 16:25:23 2012 +0200

    [&1.10] Avoid exception that breaks Trace styles with inline style
---
 extension/content/firebug/lib/css.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/extension/content/firebug/lib/css.js b/extension/content/firebug/lib/css.js
index d6295de..039e0d3 100644
--- a/extension/content/firebug/lib/css.js
+++ b/extension/content/firebug/lib/css.js
@@ -672,10 +672,11 @@ Css.getInstanceForStyleSheet = function(styleSheet, ownerDocument)
 
 Css.getDocumentForStyleSheet = function(styleSheet)
 {
+    if (!styleSheet)
+        return;
+
     while (styleSheet.parentStyleSheet && !styleSheet.ownerNode)
-    {
         styleSheet = styleSheet.parentStyleSheet;
-    }
 
     if (styleSheet.ownerNode)
         return styleSheet.ownerNode.ownerDocument;

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