Bug 1345112 - Fix invalid console.trace() calls in inspector front. r=jdescottes

--HG--
extra : rebase_source : 293a832e540efe966ed1a07f9dbe361f6c45399e
This commit is contained in:
Alisha 2017-03-11 05:39:00 -05:00
parent 0488a95df8
commit b6906a58a1

View File

@ -767,8 +767,9 @@ const WalkerFront = FrontClassWithSpec(walkerSpec, {
}
if (!targetFront) {
console.trace("Got a mutation for an unexpected actor: " + targetID +
console.warn("Got a mutation for an unexpected actor: " + targetID +
", please file a bug on bugzilla.mozilla.org!");
console.trace();
continue;
}
@ -826,8 +827,9 @@ const WalkerFront = FrontClassWithSpec(walkerSpec, {
// first.
for (let child of targetFront.treeChildren()) {
if (child.nodeType === nodeConstants.DOCUMENT_NODE) {
console.trace("Got an unexpected frameLoad in the inspector, " +
console.warn("Got an unexpected frameLoad in the inspector, " +
"please file a bug on bugzilla.mozilla.org!");
console.trace();
}
}
} else if (change.type === "documentUnload") {