firebug/firebug — pull request #4 by harthur (2012-03-21 15:53:48+00:00)
Title: use DOMUtils's new pseudo-class lock API for locking pseudo-classes

This uses the new DOMUtils pseudo-class lock API from [bug 708874](https://bugzilla.mozilla.org/show_bug.cgi?id=708874) to toggle :hover, :active, and :focus on the CSS panel.

This is preferable to what Firebug currently has because setting these locks doesn't update the element's actual content state, rather it just updates the element's style. So mousing over another element doesn't lose the :hover, etc.

I can't figure out how to listen for when a new element is selected and listen for when Firebug is closed from the CSS panel. So right now the pseudo-class stays on the element until you manually uncheck it.