Keep Firefox’s location bar on sight

By Percy Cabello

Popup with location bar off (default)Some pop-up windows may hide the location bar for a number of valid good reasons like providing a less cluttered interface or a smaller window, but it is also an easy cover for malicious web sites to hide the real location of fake sites in cross site scripting (XSS) attacks.

Michal Zalewski, the hacker who uncovered a handful of security vulnerabilities in Firefox on last February, pointed it as one of Firefox’s weaknesses. Fortunately, as suggested in the bug discussion, this behavior can be changed to forbid the ability to hide the location bar to all web sites.

To do this:

  • Enter about:config in the location bar
  • Look for dom.disable_window_open_feature.location
  • Double click it to toggle it to true

Popup with location bar on

You are done. Now popups will show the location bar always. It may look weird at first but it’s a smal price to pay for additional protection.

Posted on March 9, 2007 - 12:00 am || More on Firefox, Tips

Comments

Cameron

March 9, 2007 12:00 am

Have you got a webpage where I can test it out? It doesn’t seem to work on my bank’s website – http://national.com.au – then click “Go” in the top right hand corner which brings up a popup to log in to internet banking.

Reply

Aji JohnSeptember 2nd, 2008 at 12:43 am

open ur firfox and type about:config in ur location or addressbar. Change dom.disable_window_open_feature.location to false. now try to access ur page say http://national.com.au then click “Go” in the top right hand corner which brings up a popup to log in to internet banking. Now see the difference there is no location box in the popup window

Reply

Muriel FoxOctober 25th, 2008 at 7:04 pm

I tried this, and even restarted the computer. Still doesn’t work. How can I ensure that the location bar remains on the Firefox homepage in Vista? Thanks.

Reply

Percy Cabello

March 9, 2007 12:00 am

Cameron it works for me: http://www.mozillalinks.org/images/locbarblocktest.png

I didn’t need to restart, but guess it wouldn’t hurt you try.

Reply

Cameron

March 9, 2007 12:00 am

Ah, it seems that because I’ve moved the location bar to the menubar (alongside File, Edit, etc.) that I need to toggle dom.disable_window_open_feature.menubar too – thanks for the tip! :)

Reply

Cameron

March 9, 2007 12:00 am

Additionally, could you add the following line to your css please?

img.wp-smiley {padding: 0px; margin: 0px;}

It’ll make smileys look far better ;)

Reply

Percy Cabello

March 9, 2007 12:00 am

Thanks Cameron! Will check it tonight.

Reply

Jim Armstrong

April 6, 2007 12:00 am

No www. address bar on Firefox……….WHY

Reply

Gorthax

April 10, 2007 12:00 am

This along with adblock is killer

Reply

Ryan.Havvy

May 17, 2007 12:00 am

Note: Havvy isn’t my last name.

Anyways, that function should be turned by default, no? I do know that Internet Explorer also lets that address bar being seen. So, a rare 1-UP over Mozilla from Microsoft.

Great find none-the-less.

Reply

Louise Napier

June 13, 2007 12:00 am

I can’t find how to find my Location Bar, I have two google search bars.

Reply

Hans W.Ludwig

December 22, 2007 12:00 am

Why don’t I have a Mozilla Firefox address bar?

Reply

Anthony Hazell

February 19, 2008 12:00 am

I cannot access the location bar so am unable to type in about: etc Please help!

Reply

mathieu

February 26, 2008 12:00 am

I’ve downloaded the latest version and the dom.disable_window_open_feature.location parameter is by default on “true”. Is this normal? cause im trying to remove it from a page on my website, thx.

Reply

jon

March 23, 2008 12:00 am

Thanks! I hate popups that do that!

Reply

another jon

September 25, 2008 12:00 am

That sucks. As a web designer I have good reason to want to hide this annoying URL. Why do the 99% of valid website creators always get screwed over because of the <1% troublemakers?

Reply

Juan FengMay 27th, 2009 at 9:47 pm

That’s why it’s an option. This way, people who don’t care that your website sucks are none the wiser anyway.

Reply

Jay

December 17, 2008 12:00 am

Can you please tell me how I can get my fire fox address back? The only thing I have is the google search bar and the Y search bar. But the main address bar that goes at the fire top I don’t have. I have been putting up with this for over a year and I am tired of it. I am needing help please. I have unistall fire fox and reinstall it. I still don’t have and address bar at the top.
Thank you!
jnez_nez@yahoo.com

Reply

SpliFF

July 27, 2009 12:00 am

@Jay

Stop installing retarded toolbars and you won’t have so much trouble with your regular ones. Are you so blind you can’t see them for the useless spyware they are?

Reply

vijai

November 26, 2009 12:00 am

i don’t want manually hide the location bar,
if there any auto process to hide location bar

Reply

Leave Comment