Update the Mozilla WebGadget with a recent version of Gecko

Share your advanced PureBasic knowledge/code with the community.
zapman*
Enthusiast
Enthusiast
Posts: 115
Joined: Wed Jun 02, 2004 10:17 pm
Location: New Caledonia (South Pacific)
Contact:

Update the Mozilla WebGadget with a recent version of Gecko

Post by zapman* »

To understand what follows, it's important to know that FireFox and Mozilla browsers both use "Gecko" as a rendering componant to display web pages.

The "Mozilla" WebGadget works thank to a sort of patch which ables Gecko to run inside an ActivX control. All what PB does when you add the "#PB_Web_Mozilla" option to your WebGadget is to include this activX control in your application window. "#PB_Web_Gecko" would be a more precise name for what it is.

Unfortunately, the patch allowing Gecko to run inside an ActivX is a bit old (2005). When you download the "MozillaControl" from http://www.iol.ie/~locka/mozilla/mozilla.htm to able your WebGadget to render HTML as Mozilla, you get a frozzen and limited 2005 version of Gecko. If you browse with your WebGadget, you won't see the Web as you can with the actual version of FireFox.

By luck, the MozillaControl patch has been included into the XULRunner Mozilla Project which is a very big project still in progress.

If you download XULRunner to your PC instead of the old MozillaControl proposed inside the PB documention, you'll get the last version of Gecko running into your "#PB_Web_Mozilla" WebGadget.

Here is what you have to do:

If you've yet installed the older MozillaControl, you must first uninstall it using the "uninstall.exe" file located in the MozillaControl1712 folder (in your "program files" folder).

Then, download XulRunner at http://releases.mozilla.org/pub/mozilla ... .win32.zip .
Notice that Linux and MasOS XulRunner packages are also available at http://releases.mozilla.org/pub/mozilla ... 3/contrib/

Unzip the content of the downloaded file into a "XULRunner" folder and store it somewhere on your PC (the best is to store it into your "Program files" folder)

Last thing is that you need to run a very small batch file which is needed to register Gecko as an activeX control.
- Download this batch at http://starkravingfinkle.org/projects/x ... -setup.zip
- Unzip the content of the file in your XulRunner folder
- Clic on "mozactivex-reg.bat"

You can now use your PB Mozilla WebGadget with a very recent version of Mozilla/Gecko:
Gecko version in now 20070321 instead of 20051002
Don't try - DO it !