Dom.disable window open feature.location: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
m (update template)
 
(7 intermediate revisions by 3 users not shown)
Line 8: Line 8:
==Possible values and their effects==
==Possible values and their effects==
===True===
===True===
Ignore <code>"location=no"</code> in the window features argument of <code>window.open()</code> and prevent popups from hiding the [[:Category:Location Bar|Location Bar]]. (Default)
Ignore <code>"location=no"</code> in the window features argument of <code>window.open()</code> and prevent popups from hiding the [[:Category:Location Bar|Location Bar]]. (Default in Firefox 3)  
 
===False===
===False===
Allow popups to hide the [[:Category:Location Bar|Location Bar]].
Allow popups to hide the [[:Category:Location Bar|Location Bar]]. (Default in Mozilla Suite/SeaMonkey and prior to Firefox 3)
 
==Caveats==
* Setting this value to false may make website spoofing attempts more effective. For this reason, this preference defaults to true.


==First checked in==
==First checked in==
Line 29: Line 25:
* [https://bugzilla.mozilla.org/show_bug.cgi?id=22183 Bug 22183 - UI spoofing can cause user to mistake content for chrome]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=22183 Bug 22183 - UI spoofing can cause user to mistake content for chrome]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=107949 Bug 107949 - Add pref for ignoring window feature options on window.open()]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=107949 Bug 107949 - Add pref for ignoring window feature options on window.open()]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=337344 Bug 337344 – Disable location bar hiding by default, to make chrome spoofing harder]


==Related preferences==
==Related preferences==
Line 41: Line 38:
* [[dom.disable_window_open_feature.titlebar]]
* [[dom.disable_window_open_feature.titlebar]]
* [[dom.disable_window_open_feature.toolbar]]
* [[dom.disable_window_open_feature.toolbar]]
==See also==
*[[About:config_entries#DOM..2A|About:config entries - dom.disable_window_open_feature.*]] summarizes choices that may also be broken out to separate pages
*[[Prevent websites from disabling new window features]]


[[Category:Preferences]]
[[Category:Preferences]]
[[Category:Location Bar]]
[[Category:Location Bar]]
[[Category:Security and privacy-related preferences]]
[[Category:Security and privacy-related preferences]]

Latest revision as of 19:35, 30 April 2009

Background

Web authors who use window.open() to create new browser windows have the option of specifying which chrome features appear on the window (menu bars, toolbars, the status bar, etc.) and what window functionality is present (whether it’s resizable, whether it has scrollbars, etc.).

Oftentimes these parameters make a popup window less useful, or even obfuscate the popup’s contents and origin. This preference allows you to ignore the part of window.open() calls that tries to hide the Location Bar.

Possible values and their effects

True

Ignore "location=no" in the window features argument of window.open() and prevent popups from hiding the Location Bar. (Default in Firefox 3)

False

Allow popups to hide the Location Bar. (Default in Mozilla Suite/SeaMonkey and prior to Firefox 3)

First checked in

2002-06-04 by Christopher Aillon

Has an effect in

  • Mozilla Suite (all versions since 1.1 alpha)
  • Mozilla Phoenix (all versions)
  • Mozilla Firebird (all versions)
  • Mozilla Firefox (all versions)
  • SeaMonkey (all versions)

Related bugs

Related preferences

See also