Skip to content

Commit

Permalink
Issue 5316: Break on HTML mutation works only if the HTML panel is se…
Browse files Browse the repository at this point in the history
…lected
  • Loading branch information
janodvarko committed Mar 12, 2012
1 parent 924a2d9 commit 27b2d85
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extension/content/firebug/html/htmlPanel.js
Expand Up @@ -1160,7 +1160,10 @@ Firebug.HTMLPanel.prototype = Obj.extend(WalkingPanel,

Events.removeEventListener(this.panelNode.ownerDocument, "keypress", this.onKeyPress, true);

if (this.context.attachedMutation)
// Optimalization: if the HTML panel isn't currently selected remove
// mutation listeners. Don't do it if there are mutation breakpoints
// these should work even if the HTML panel is not selected (issue 5316)
if (this.context.attachedMutation && this.context.mutationBreakpoints.isEmpty())
{
this.context.attachedMutation = false;

Expand Down

0 comments on commit 27b2d85

Please sign in to comment.