Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Issue 5316: Break on HTML mutation works only if the HTML panel is se…

…lected
  • Loading branch information...
commit 27b2d859da1f2513951a491f29aeb9c3c0eb216c 1 parent 924a2d9
@janodvarko janodvarko authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 extension/content/firebug/html/htmlPanel.js
View
5 extension/content/firebug/html/htmlPanel.js
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.