Bug 1580374 - DOM BPs ignore ignores blackboxed files. r=davidwalsh

Differential Revision: https://phabricator.services.mozilla.com/D45761

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jason Laster 2019-09-18 18:00:58 +00:00
Родитель 8762ab72e8
Коммит 0d8811c4bc
1 изменённых файлов: 13 добавлений и 9 удалений

Просмотреть файл

@ -1745,18 +1745,22 @@ const ThreadActor = ActorClassWithSpec(threadSpec, {
throw new Error("Unexpected mutation breakpoint type");
}
if (this.skipBreakpoints) {
return;
const frame = this.dbg.getNewestFrame();
if (!frame) {
return undefined;
}
const frame = this.dbg.getNewestFrame();
if (frame) {
this._pauseAndRespond(frame, {
type: "mutationBreakpoint",
mutationType,
message: `DOM Mutation: '${mutationType}'`,
});
const location = this.sources.getFrameLocation(frame);
if (this.skipBreakpoints || this.sources.isBlackBoxed(location.sourceUrl)) {
return undefined;
}
return this._pauseAndRespond(frame, {
type: "mutationBreakpoint",
mutationType,
message: `DOM Mutation: '${mutationType}'`,
});
},
/**