[Pkg-mozext-commits] [firebug] 57/68: Issue 6451 (Pseudo-element rules not applying to elements are displayed) http://code.google.com/p/fbug/issues/detail?id=6451

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


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

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

commit 865d4163b581f43a5db44bf8aebb43f7145938cf
Author: Sebastian Zartner <sebastianzartner at gmail.com>
Date:   Fri May 17 13:16:52 2013 +0200

    Issue 6451 (Pseudo-element rules not applying to elements are displayed)
    http://code.google.com/p/fbug/issues/detail?id=6451
---
 extension/content/firebug/css/stylePanel.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/extension/content/firebug/css/stylePanel.js b/extension/content/firebug/css/stylePanel.js
index 883423b..7d0b994 100644
--- a/extension/content/firebug/css/stylePanel.js
+++ b/extension/content/firebug/css/stylePanel.js
@@ -233,7 +233,12 @@ CSSStylePanel.prototype = Obj.extend(CSSStyleSheetPanel.prototype,
         // The domUtils API requires the pseudo-element selectors to be prefixed by only one colon 
         pseudoElements.forEach(function(pseudoElement, i)
         {
-        	if (Str.hasPrefix(pseudoElement, "::"))
+            // xxxsz: Do not show Mozilla-specific pseudo-elements for now (see issue 6451)
+            // Pseudo-element rules just apply to specific elements, so we need a way to find out
+            // which elements that are
+            if (Str.hasPrefix(pseudoElement, "::-moz"))
+                pseudoElements.splice(i, 1);
+            else if (Str.hasPrefix(pseudoElement, "::"))
                 pseudoElements[i] = pseudoElement.substr(1);
         });
 

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