зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1222087: Part 1 - Fix ignoring of exceptions in blackboxed code. r=fitzgen
MozReview-Commit-ID: vtu1ou4ueT --HG-- extra : rebase_source : 1eac501da57d107e002c862884d8f16c73b1f960
This commit is contained in:
Родитель
dd373cbd2b
Коммит
b95986457a
|
@ -1847,9 +1847,9 @@ ThreadActor.prototype = {
|
|||
}
|
||||
|
||||
const generatedLocation = this.sources.getFrameLocation(aFrame);
|
||||
const { sourceActor } = this.unsafeSynchronize(this.sources.getOriginalLocation(
|
||||
const { originalSourceActor } = this.unsafeSynchronize(this.sources.getOriginalLocation(
|
||||
generatedLocation));
|
||||
const url = sourceActor ? sourceActor.url : null;
|
||||
const url = originalSourceActor ? originalSourceActor.url : null;
|
||||
|
||||
if (this.sources.isBlackBoxed(url)) {
|
||||
return undefined;
|
||||
|
|
|
@ -73,8 +73,8 @@ function test_black_box_exception() {
|
|||
gThreadClient.pauseOnExceptions(true);
|
||||
|
||||
gClient.addOneTimeListener("paused", function (aEvent, aPacket) {
|
||||
do_check_neq(aPacket.frame.where.url, BLACK_BOXED_URL,
|
||||
"We shouldn't pause while in the black boxed source.");
|
||||
do_check_eq(aPacket.frame.where.source.url, SOURCE_URL,
|
||||
"We shouldn't pause while in the black boxed source.");
|
||||
finishClient(gClient);
|
||||
});
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче