Ed Price is Hungry

(but not very often)

Tip: Try switching off and on again

Debugging CSS in multiple browsers (cont.)

Firefox

As a rule Firefox has always done a far better job of rendering web pages according to standards. This means that if you code your pages correctly you should have few problems with Firefox. However, there are css attributes that are deprecated between one version and another, differences that might crop up between Firefox 2 and Firefox 3, and so on. In short there's still every reason to debug in different versions of Firefox.

Unlike IE it has always been possible to run multiple versions of Firefox on your PC. That doesn't mean to say it's necessarily been easy to do so. However, it's now just a matter of setting up a few additional profiles and amending a few shortcuts.

First you'll need to download some old versions of Firefox (let's assume you've already got the latest version installed as your default browser. You do, right?!) - you can get these here: http://releases.mozilla.org/pub/mozilla.org/firefox/releases/ in a variety of flavours depending on your platform and language.

You can install as many versions as you like (though you should really only need the ‘latest-2.0', ‘latest-3.0' and ‘latest-3.5' installs). However, be sure to install each version in its own folder, e.g. C:Program FilesMozilla Firefox 2.0 and C:Program FilesMozilla Firefox 3.0.

Next step is to set up profiles for each version. The following will enable you to run each version side by side and, furthermore, set up different bookmarks, extensions and the rest for each browser. First launch the Firefox Profile Manager by going to Start -> Run and typing:

"C:Program FilesMozilla Firefoxfirefox.exe" -no-remote -ProfileManager

Mac users should go to Terminal and type:

/Applications/Firefox.app/Contents/MacOS/firefox -profilemanager

(obviously you might need to change the path if your main Firefox install is located somewhere other than the default.) Incidentally, Mac users might also want to investigate the MultiFirefox tool available at: http://davemartorana.com/multifirefox/

Firefox profile managerAll you need to do is click on Create Profile and enter a name - do this for each profile you want - just ensure that the names don't have spaces in. It's worth noting that by default Firefox will launch using whichever profile is highlighted in the window, so you will want to ensure that your default profile is highlighted when you hit Exit. Also, unless you want to be hassled each time you start Firefox you'll want to check Don't ask at startup.

Multiple Firefox ShortcutsThe last step is to set up shortcuts for each Firefox install making sure that each version of the browser loads up using the correct profile. First create your shortcuts as usual (if the installation process hasn't already done so for you), ensuring they have distinctive names. Now right click on each shortcut in turn and select Properties. Go to the Shortcut tab and edit Target so it reads something like:

"C:Program FilesMozilla Firefox 2.0firefox.exe" -P Firefox2 -no-remote

"C:Program FilesMozilla Firefox 3.0firefox.exe" -P Firefox3 -no-remote

"C:Program FilesMozilla Firefoxfirefox.exe" -P default -no-remote

The -P attribute tells the shortcut to load the named profile, while the -no-remote bit lets you run different versions side by side. Obviously this will only work for the shortcuts you've just set up. If you want to launch Firefox from your start menu/desktop/quick launch toolbar you'll need to amend those shortcuts in the same manner.

NOTE: You might prefer to leave your default Firefox shortcut unaltered in order to avoid getting 'Firefox is already running...' error messages.

Read on for a list of handy Firefox tools and details for accessing developer tools in Safari and Chrome.

Posted:  August 26, 2009 at 13:01

Filed under: Web Design

Author: Justin (contact)

Last edit: August 26, 2009 - 13:02

No comments

Add a comment

All comments are subject to approval prior to appearing on the site.
HTML code is NOT allowed and will be stripped out.

Please enter the sum of nine plus eight in digits (e.g '19')

Search

Recently posted
Categories
Tags
Monthly Archives

Feeds RSS logo
Copyright

The content on this blog is protected by a Creative Commons license. This is purely to stop people from doing nasty things with my words - in the unlikely event that you do want to reproduce any content here just ask

Creative Commons License

Ed Price Is Hungry by Justin Cawthorne is licensed under a Creative Commons Attribution-Non-Commercial-No Derivative Works 3.0 Unported License.
Based on a work at www.edpriceishungry.com