Use content view of the stack draft
authorJarda Snajdr <jsnajdr@gmail.com>
Wed, 22 Jun 2016 10:32:29 +0200
changeset 398527 1a979f1603ec752ab61ad4731fd25a8ea553a659
parent 398526 fe53e7004d8fa0c51dc6655957dfbc2bd7fe781d
child 398528 0c276f24e1922a767027518bf906eece36bc2467
push id25563
push userbmo:jsnajdr@gmail.com
push dateTue, 09 Aug 2016 09:41:28 +0000
milestone51.0a1
Use content view of the stack
devtools/shared/webconsole/network-monitor.js
--- a/devtools/shared/webconsole/network-monitor.js
+++ b/devtools/shared/webconsole/network-monitor.js
@@ -231,17 +231,17 @@ StackTraceCollector.prototype = {
     let channel = subject.QueryInterface(Ci.nsIHttpChannel);
 
     if (!matchRequest(channel, this.filters)) {
       return;
     }
 
     // Convert the nsIStackFrame XPCOM objects to a nice JSON that can be
     // passed around through message managers etc.
-    let frame = components.stack;
+    let frame = Cu.waiveXrays(components.stack);
     let stacktrace = [];
     if (frame && frame.caller) {
       frame = frame.caller;
       while (frame) {
         stacktrace.push({
           filename: frame.filename,
           lineNumber: frame.lineNumber,
           columnNumber: frame.columnNumber,