Editing chrome source code for research, changes not appearing in browser

107 views
Skip to first unread message

Owen Corrigan

unread,
Nov 11, 2012, 5:04:12 PM11/11/12
to chromium...@chromium.org
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

PhistucK

unread,
Nov 12, 2012, 4:34:02 AM11/12/12
to owen.c...@gmail.com, chromium...@chromium.org
I have not read all of your post, but I just thought I would mention the multiple virtual machine (multivm) build of Chromium, to which they currently refer as Dartium.
It might be helpful for you, because it adds support for another client side language - Dart.

Binaries and information -

Source code (maybe the looking at source differences would be helpful) -

Also, this looks like an old patch with a similar purpose -

Good luck!


PhistucK



--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

Reply all
Reply to author
Forward
0 new messages