Skip to content

Commit

Permalink
[1.9] Do not restore Script panel location if the JS execution is hal…
Browse files Browse the repository at this point in the history
…ted at a breakpoint. In such case the user wants to see the breakpoint (not necessarily the previous script).

http://code.google.com/p/fbug/source/detail?r=12560
  • Loading branch information
janodvarko committed Dec 23, 2011
1 parent a5c2f0e commit 81d4a14
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extension/content/firebug/js/scriptPanel.js
Expand Up @@ -252,7 +252,10 @@ Firebug.ScriptPanel.prototype = Obj.extend(Firebug.SourceBoxPanel,
var self = this;
this.context.setTimeout(function()
{
self.showSourceLinkAsync(sourceLink, noHighlight, --counter);
// If JS execution is stooped at a breakpoint do not restore the previous
// location. The user wants to see the breakpoint now.
if (!this.context.stopped)
self.showSourceLinkAsync(sourceLink, noHighlight, --counter);
}, 50);
}
},
Expand Down

0 comments on commit 81d4a14

Please sign in to comment.