зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
8762ab72e8
Коммит
0d8811c4bc
|
@ -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}'`,
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче