enrii.blog

A passionate programmer’s findings in the world of internet.

Just Downloaded Firefox 3.5.1

Sunday, July 19th, 2009

Installed Mozilla Firefox version 3.5.1.

As with every Firefox release, I was expecting that it would reduce memory consumption, but it's didn't happen, or it wasn't obvious. With only four tabs running, it's using 125MB of memory.

On the UI, I notice a "new tab" button on the tab bar. I would normally have to double click on the tab bar to create new tab. Now, I can do it with single click on that button.

In the Options, I notice a new tab, the Privacy tab. But the content of the tab seems to be taken from other tab to create this new tab.

Nothing interesting. Still, it's worth upgrading. They had put lots of effort to enhance the stability and security of the browser.

Get yours: Mozilla Firefox

Embed Windows Media Player for Firefox

Sunday, December 14th, 2008

I have done some Google searches researchs recently to fulfill the requirements of a project. One of them is to embed audio player in them web-based system, which will be played in Mozilla Firefox.

Server side

The HTML code that works for me:

<OBJECT id="Player"
	type="application/x-ms-wmp" 
	width="210" height="45">
	<PARAM name="autostart" value="false"/>
	<PARAM NAME="URL" VALUE="test-mp3.mp3">
	<PARAM name="PlayCount" value="1">
</OBJECT>

Client side

In Firefox, I found that I'll have to install a plug-in from Port25: Windows Media Player Firefox Plugin

The better solution might be to use Flash media player, but most of it are not suitable for a commercial product (unless I write a new one?).

Do comment if you have better recommendations!

Backup and Restore Firefox Configurations and Settings (Profile)

Wednesday, February 6th, 2008

Recently, I installed my web based PHP system in a company. After I setup the server, I went to each PC to install Mozilla Firefox. There are around 8 computers and it will take a while for me to install and reconfigure each of the fresh installed Firefox.

So, I spend some time to check how I can backup all configurations from one machine and move it to all the others. I did not expect it to be so simple.

Backup Firefox Profile

Copy the following file:

C:\Documents and Settings\<user>\Application Data\Mozilla\Firefox\profile.ini

and the following Firefox profile folder:

C:\Documents and Settings\<user>\Application Data\Mozilla\Firefox\Profiles\<random-string>.default

into a pendrive to backup.

Restore Firefox Profile

Go to the second machine, replace the profile.ini file at the exact location. Then, copy the profile folder to the exact location as well.

You can expect all the Firefox settings and configurations are transferred to the second machine!

In case you had renamed the profile folder, make sure you correct profile.ini file so that it points to correct path.

If you would like to read further details, go to: Firefox Help: How to Manage Profiles

Lock Firefox Preferences

Tuesday, November 7th, 2006

It is interesting to know that Mozilla provides a mechanism for us to lock any preferences in the option menu. If you would like to play with it, follow these instructions:

  1. Go to Tools > Options...
  2. Change the setting of the preference you want to lock.
    e.g. lock General > Home Page Location to "about:blank".
  3. Open "about:config" to find the key of the preference. Use the filter field to save your time from scrolling up and down.
    e.g. Type in "homepage" and you can find "browser.startup.homepage".
  4. Open a notepad and write in the following lines:
    //
    lockPref("browser.startup.homepage", "about:blank");
  5. Save it as Mozilla.txt and do byte shift with an offset of 13. Use this byte shift service. You will receive a file "mozilla.cfg", which you must save it at the location of firefox.exe.
  6. Add the following line to "C:\Program Files\Mozilla Firefox\greprefs\all.js" file:
    pref("general.config.filename", "mozilla.cfg");

You will find your homepage field in options uneditable after that.

Reference:
Locking Mozilla Firefox Settings

Urgent: Update Your Firefox to Version 1.5.0.5 Now

Friday, July 28th, 2006

Firefox Logo Mozilla recently patched 13 Firefox flaws, which 8 of them are tagged "critical".

TechWeb.com reported:

Danish vulnerability tracker Secunia tagged the overall update as "highly critical," the second-from-the-top threat ranking. "[These] multiple vulnerabilities can be exploited to conduct cross-site scripting attacks or compromise a user's system," Secunia's online research note read.

A majority of the bugs will allow an attacker to introduce his own code to a vulnerable system; several of them can be exploited by posting malicious code or content on Web sites and enticing users to visit those sites.

If you are running on 1.5.x version of Firefox, check for new version and download Firefox 1.5.0.5 by clicking on Help > Check for Updates... in the file menu.