Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I embed firefox in a GUI application?

Has anyone ever embedded the firefox web browser technology in their own [unmanaged] C/C++ GUI application in the same way that IE can be embedded as a COM object? (I would like to do this on Linux, not Windows). Are there "better" alternatives to firefox? I'm open to anything as long as I can use it with non-GPL code. My needs are fairly basic; I only need fundamental HTML parsing and display of static local files, but I'd take advantage of more sophisticated technology, if I can get it. I'd like to be able to use JavaScript, but I can get by without it.

like image 324
Matt Ervin Avatar asked Apr 10 '10 01:04

Matt Ervin


People also ask

What type of desktop application is Mozilla Firefox?

Mozilla Firefox, or simply Firefox, is a free and open-source web browser developed by the Mozilla Foundation and its subsidiary, the Mozilla Corporation. It uses the Gecko rendering engine to display web pages, which implements current and anticipated web standards.

Will not allow Firefox to display the page if another site has embedded I?

Website will not allow Firefox to display the page if another site has embedded it. If you see this error, it is probably because a website is trying to display another website without the consent of its owner. This is usually the result of a security misconfiguration.


1 Answers

First you need to differentiate between HTML engine and JavaScript Engine.

  • Firefoxs HTML rendering engine is called Gecko. And here is a guide about Embedding Gecko in your application.

  • Firefoxs JavaScript engine is called SpiderMonkey and here is How to Embed SpiderMonkey in your C application

like image 152
medopal Avatar answered Oct 12 '22 00:10

medopal