Re: Does anybody know how to modify the source code in order to log the executions of the JavaScript functions?

2015-01-23 Thread Tomasz
> Remove 'signaling_unittests' from the list of tests in > http://mxr.mozilla.org/mozilla-central/source/media/webrtc/signaling/test/moz.build > Yes, it worked. Now the code compiles. There are, however, several other problems, which I am describing below. > Filing a bug on "Core: WebRTC", p

Re: Does anybody know how to modify the source code in order to log the executions of the JavaScript functions?

2015-01-23 Thread Boris Zbarsky
On 1/23/15 7:50 AM, Tomasz wrote: This is not what I wanted :) I want to have the exact URLs of the particular files in which the calls were. So, if a particular method is called from a JavaScript from Doubleclick.net, I expect to get a URL of this JavaScript. Yeah, you didn't say that up fro

Re: Does anybody know how to modify the source code in order to log the executions of the JavaScript functions?

2015-01-23 Thread Tomasz
Thanks, however, this does not want to compile. I re-wrote it to a form which I can include in the Python code: -- cgThings.append(CGGeneric(' JS::Rooted stack(cx); \n'))

Re: Does anybody know how to modify the source code in order to log the executions of the JavaScript functions?

2015-01-23 Thread Ehsan Akhgari
On 2015-01-23 10:33 AM, Tomasz wrote: Thanks, however, this does not want to compile. I re-wrote it to a form which I can include in the Python code: -- cgThings.append(CGGeneric(' JS::Rooted stack(cx);

Re: Does anybody know how to modify the source code in order to log the executions of the JavaScript functions?

2015-01-23 Thread Boris Zbarsky
On 1/23/15 10:33 AM, Tomasz wrote: cgThings.append(CGGeneric(' if (JS::CaptureCurrentStack(cx, &stack, 1)) { \n')) cgThings.append(CGGeneric('JS::Rooted source(cx); \n')) Also, this is very very wrong. If JS::Ca

Re: Does anybody know how to modify the source code in order to log the executions of the JavaScript functions?

2015-01-23 Thread Tomasz
Well, in the version with returns it is: cgThings.append(CGGeneric(' JS::Rooted stack(cx); \n')) cgThings.append(CGGeneric(' if (!JS::CaptureCurrentStack(cx, &stack, 1)) {

Re: Does anybody know how to modify the source code in order to log the executions of the JavaScript functions?

2015-01-23 Thread Boris Zbarsky
On 1/23/15 12:06 PM, Tomasz wrote: Both versions (with returns and conditional statements) compile fine. However, neither of them works. Both versions crash on browser startup on: JS_GetProperty(cx, stack, "source", &source) Hmm. It's possible that stack came back null if the call into the