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

2015-01-26 Thread Tomasz
So summarizing, I will describe here all the necessary changes to be done in order to get my solution working. The produced log is as that: --- Mon Jan 26 19:13:15 2015 | GETTER: [Style], FILE: [http://static.gazeta.pl/i

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

2015-01-26 Thread Tomasz
> In what cases were the early-return cases actually hit? They correspond > to things like out-of-memory conditions and should not have been getting > hit... Here: cgThings.append(CGGeneric('if (!stack) { \n')) cgThin

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

2015-01-26 Thread Tomasz
> Hmm. It's possible that stack came back null if the call into the > binding wasn't actually from script. Add a null-check (this part > _should_ end up with an indented block and all that). Well, I got my function working. Using immediate returns from the functions was not a good solution a

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
\n')) 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) Tomasz ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

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
pend(CGGeneric('} \n')) cgThings.append(CGGeneric(' } \n')) -- Unfortunately, I am getting a compilat

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
proxy" or something else, but as far as I saw, all these second function parameters are of the correct type. The only problem is that I do not know how to guess the correct name - or avoid placing my code if the argument of the correct type is not present in the invocation of the method at all. But, this is a minor problem, which can be solved later. Best regards, Tomasz ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

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

2015-01-22 Thread Tomasz
from /home/tomasz/CPPProjects/mozilla-central/obj-x86_64-unknown-linux-gnu/dom/bindings/PeerConnectionImplEnumsBinding.cpp:5, 5:43.34 from /home/tomasz/CPPProjects/mozilla-central/media/webrtc/signaling/test/signaling_unittests.cpp:45: 5:43.34 ../../../.

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

2015-01-21 Thread Tomasz
auses the following errors and breaks the compilation: --- 5:43.34 In file included from ../../../../dist/include/nsGlobalWindow.h:44:0, 5:43.34 from /home/tomasz/CPPProjects/mozilla-central/obj-x86_64-unknown-linu

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

2015-01-21 Thread Tomasz
ght after the line that sets > bindingHeaders["xpcpublic.h"]). Thank you, I just made that, but other issues appear: --- 2:18.70 /home/tomasz/CPPProjects/mozilla-central/obj-x86_64-unknown-linux-gnu/dom/bindings/Test

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

2015-01-20 Thread Tomasz
valid use of incomplete type 'class nsGlobalWindow' nsIURI* oURI = cwindow->GetDocumentURI(); ../../dist/include/mozilla/dom/ScriptSettings.h:21:7: error: forward declaration of 'class nsGlobalWindow' class nsGlobalWindow ---

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

2015-01-19 Thread Tomasz
a way that the document URL will appear exactly before all the embedded methods / setters / getters? Tomasz On Monday, January 19, 2015 at 3:29:52 PM UTC+1, Josh Matthews wrote: > Half of the battle is modifying CGPerSignatureCall in Codegen.py - that > will get you the name of the DO

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

2015-01-19 Thread Tomasz
t care how the functions are internally implemented - I just want to log all the executions. Is there any easy way to do that besides adding logging statements to every single JavaScript function we want to log? Thank you for all your suggestions in advance. Best regards, Tomasz ___

Xulrunner app with findbar

2013-07-10 Thread Tomasz G.
Hello, I'm developing application using xulrunner and I need to use find bar (like the one from Firefox). I found something like this: XUL: http://www.google.com/"; type="content-primary"/> JavaScript: var findbar1 = document.getElementById("FindToolbar1"); findbar1.open(0); The findbar show