Hi all,
I am doing a college project on researching whether it is possible to modify a browser to use python as a client side language. I am modifying chrome for the first time and have run into a few problems and if anyone has any information or links that could point me in the right direction I would really appreciate it. I have already downloaded and built the source code.
Firstly, just to show that I can edit the source code I thought it would be a good exercise to add "text/python" as a javascript MIME type in
MIMETypeRegistry.cpp (the idea is that if someone uses "text/python as a type in a script tag, it will just call the JavaScript engine). However after modifying that file and calling Ninja to build it, ninja examines out/Debug and tells me there is "no work to do" and doesn't recompile. I have tried with targets "chrome" and "all".
Another test I tried to do was to try to prevent JavaScript from being called. I did this by editing files that call the JavaScript engine (such as making
executeScript in ScriptElement.ccp return without doing anything) but this doesn't affect the browsers ability to call JavaScript. Ninja rebuilds the scripts, but when I run the created chrome binary JavaScript loads as normal. I know that the scripts are rebuilt because it will not compile if there are mistakes in the files.
I suspect I am having a problem where the new binary of chrome I build is not loaded so the changes I make are lost, or I have made a mistake in my understanding of how the JavaScript engine is called, and it does not rely on the files that I have changed. If anyone can tell me what I am doing wrong here I would really appreciate it.
Regards,
Owen