<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>Low level, check these out (and their .cpp friends):<br></div>
<div>* For windows: <a href="https://dxr.mozilla.org/mozilla-central/source/dom/base/nsScriptLoader.h">https://dxr.mozilla.org/mozilla-central/source/dom/base/nsScriptLoader.h</a><br></div>
<div>* For workers: <a href="https://dxr.mozilla.org/mozilla-central/source/dom/workers/ScriptLoader.h">https://dxr.mozilla.org/mozilla-central/source/dom/workers/ScriptLoader.h</a><br></div>
<div><br></div>
<div>System code uses these too, but can generally be identified by its use of the system principal. Most relevant code-paths will have checks for that sprinkled throughout for various reasons.<br></div>
<div><br></div>
<div>What's the higher level goal you're attempting to achieve? If you want to dynamically instrument JS you might want to do network interception via an extension or, if you control/are replicating a site, just using a serviceworker.<br></div>
<div><br></div>
<div>Andrew<br></div>
<div><br></div>
<div>On Fri, Aug 26, 2016, at 02:52 PM, Renaud Vande Langerijt wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div>Hi,<br></div>
<div><br></div>
<div>Can anyone guide me to the place(s) in the source code where firefox is calling spidermonkey for the parsing and interpretation of custom JavaScript code?<br></div>
<div>"Custom" in the sense that I do not want to intercept the internal JavaScript code used by firefox itself, but the JavaScript code from the website the browser is showing.<br></div>
<div><br></div>
<div>I've been searching for a considerable amount of time. Any help is welcome as the deadline for my thesis is approaching and the answer to the above question is vital for the response of my research question.<br></div>
<div><br></div>
<div>Best Regards,<br></div>
<div><br></div>
<div>Renaud<br></div>
<div><br></div>
<div><br></div>
</div>
<div><u>_______________________________________________</u><br></div>
<div>firefox-dev mailing list<br></div>
<div><a href="mailto:firefox-dev@mozilla.org">firefox-dev@mozilla.org</a><br></div>
<div><a href="https://mail.mozilla.org/listinfo/firefox-dev">https://mail.mozilla.org/listinfo/firefox-dev</a><br></div>
</blockquote><div><br></div>
</body>
</html>