Bug 1345112 - Fix invalid console.trace() calls in inspector front. r=jdescottes
authorAlisha <anejaalisha@yahoo.com>
Sat, 11 Mar 2017 05:39:00 -0500
changeset 347232 b2635d26a7b7
parent 347231 a01bd91a80c1
child 347233 b8d0f53f8414
push id31491
push usercbook@mozilla.com
push dateMon, 13 Mar 2017 14:24:00 +0000
treeherdermozilla-central@8d9fd089cabd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdescottes
bugs1345112
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1345112 - Fix invalid console.trace() calls in inspector front. r=jdescottes
devtools/shared/fronts/inspector.js
--- a/devtools/shared/fronts/inspector.js
+++ b/devtools/shared/fronts/inspector.js
@@ -762,18 +762,19 @@ const WalkerFront = FrontClassWithSpec(w
           targetID = this.rootNode.actorID;
           targetFront = this.rootNode;
         } else {
           targetID = change.target;
           targetFront = this.get(targetID);
         }
 
         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;
         }
 
         let emittedMutation = object.merge(change, { target: targetFront });
 
         if (change.type === "childList" ||
             change.type === "nativeAnonymousChildList") {
           // Update the ownership tree according to the mutation record.
@@ -821,18 +822,19 @@ const WalkerFront = FrontClassWithSpec(w
             targetFront._form.numChildren = change.numChildren;
           }
         } else if (change.type === "frameLoad") {
           // Nothing we need to do here, except verify that we don't have any
           // document children, because we should have gotten a documentUnload
           // 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") {
           if (targetFront === this.rootNode) {
             this._createRootNodePromise();
           }
 
           // We try to give fronts instead of actorIDs, but these fronts need