зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1280257 - Reset non-pending breakpoints when tab is reloaded with source maps disabled;r=jryans
This commit is contained in:
Родитель
d71d400a4a
Коммит
44e1776918
|
@ -1985,14 +1985,11 @@ const ThreadActor = ActorClassWithSpec(threadSpec, {
|
|||
} else {
|
||||
promises.push(this.sources.getAllGeneratedLocations(actor.originalLocation)
|
||||
.then((generatedLocations) => {
|
||||
if (generatedLocations.length > 0 &&
|
||||
if (generatedLocations.length > 0 &&
|
||||
generatedLocations[0].generatedSourceActor.actorID === sourceActor.actorID) {
|
||||
sourceActor._setBreakpointAtAllGeneratedLocations(
|
||||
actor,
|
||||
generatedLocations
|
||||
);
|
||||
}
|
||||
}));
|
||||
sourceActor._setBreakpointAtAllGeneratedLocations(actor, generatedLocations);
|
||||
}
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2015,6 +2012,10 @@ const ThreadActor = ActorClassWithSpec(threadSpec, {
|
|||
for (let actor of bpActors) {
|
||||
if (actor.isPending) {
|
||||
actor.originalLocation.originalSourceActor._setBreakpoint(actor);
|
||||
} else {
|
||||
actor.originalLocation.originalSourceActor._setBreakpointAtGeneratedLocation(
|
||||
actor, GeneratedLocation.fromOriginalLocation(actor.originalLocation)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче