I need to embed a web browser in C++ application. As well, I need to reach its javascript methods from Delphi components.
I know that for FF there is Gecko with XPCOM. Is there something like this for WebKit?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
WebKit first: there’s project called Chromium embedded (Chromium is basically WebKit rendering engine and V8 Javascript engine), that has also Delphi support. After a quick look into headers, I did not find a way to access JS methods, but it allows executing javascript snippets in given frame:
So the pieces are there, you just need to figure out how to patch them together.
For Gecko, there are Delphi bindings available under a project called d-gecko. But it seems to be a bit outdated and also does not seem to allow accessing the Javascript.