Bug 1269457 - Only set breakpoints for pending bp actors. r=ejpbruel

The special code path carved out in bug 1225160 dropped the `actor.isPending`
check which causes many, many attempts to set a breakpoint on every new source
notification, leading to a very slow debugging experience.

MozReview-Commit-ID: A3pnHzh5eeh
This commit is contained in:
J. Ryan Stinnett 2016-05-31 16:05:39 -05:00
parent a847380c46
commit 4dc1d16893

View File

@ -2014,7 +2014,9 @@ const ThreadActor = ActorClass({
// debugger, and carefully avoid the use of unsafeSynchronize in this
// function when source maps are disabled.
for (let actor of bpActors) {
actor.originalLocation.originalSourceActor._setBreakpoint(actor);
if (actor.isPending) {
actor.originalLocation.originalSourceActor._setBreakpoint(actor);
}
}
}