Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsIWebBrowserSetup Interface Reference

The nsIWebBrowserSetup interface allows certain properties of a new browser object to set before the browser window is opened. More...

import "nsIWebBrowserSetup.idl";

Inheritance diagram for nsIWebBrowserSetup:
Inheritance graph
[legend]
Collaboration diagram for nsIWebBrowserSetup:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void setProperty (in unsigned long aId, in unsigned long aValue)
 Sets an integer or boolean property on the new web browser object.

Public Attributes

const unsigned long SETUP_ALLOW_PLUGINS = 1
 Boolean.
const unsigned long SETUP_ALLOW_JAVASCRIPT = 2
 Boolean.
const unsigned long SETUP_ALLOW_META_REDIRECTS = 3
 Boolean.
const unsigned long SETUP_ALLOW_SUBFRAMES = 4
 Boolean.
const unsigned long SETUP_ALLOW_IMAGES = 5
 Boolean.
const unsigned long SETUP_FOCUS_DOC_BEFORE_CONTENT = 6
 Boolean.
const unsigned long SETUP_USE_GLOBAL_HISTORY = 256
 Boolean.
const unsigned long SETUP_IS_CHROME_WRAPPER = 7
 Boolean.

Detailed Description

The nsIWebBrowserSetup interface allows certain properties of a new browser object to set before the browser window is opened.

Note:
Unless stated otherwise, settings are presumed to be enabled by default.

FROZEN

Definition at line 52 of file nsIWebBrowserSetup.idl.


Member Function Documentation

void nsIWebBrowserSetup::setProperty ( in unsigned long  aId,
in unsigned long  aValue 
)

Sets an integer or boolean property on the new web browser object.

Only PR_TRUE and PR_FALSE are legal boolean values.

Parameters:
aIdThe identifier of the property to be set.
aValueThe value of the property.

Member Data Documentation

Boolean.

Enables/disables image loading for this browser window. If you disable the images, load a page, then enable the images, the page will not automatically load the images for the previously loaded page. This flag controls the state of a webBrowser at load time and does not automatically re-load a page when the state is toggled. Reloading must be done by hand, or by walking through the DOM tree and re-setting the src attributes.

See also:
setProperty

Definition at line 94 of file nsIWebBrowserSetup.idl.

Boolean.

Enables/disables Javascript support for this browser.

See also:
setProperty

Definition at line 66 of file nsIWebBrowserSetup.idl.

Boolean.

Enables/disables meta redirect support for this browser. Meta redirect timers will be ignored if this option is disabled.

See also:
setProperty

Definition at line 74 of file nsIWebBrowserSetup.idl.

Boolean.

Enables/disables plugin support for this browser.

See also:
setProperty

Definition at line 59 of file nsIWebBrowserSetup.idl.

Boolean.

Enables/disables subframes within the browser

See also:
setProperty

Definition at line 81 of file nsIWebBrowserSetup.idl.

Boolean.

Enables/disables whether the document as a whole gets focus before traversing the document's content, or after traversing its content.

NOTE: this property is obsolete and now has no effect

See also:
setProperty

Definition at line 104 of file nsIWebBrowserSetup.idl.

Boolean.

A value of PR_TRUE makes the browser a chrome wrapper. Default is PR_FALSE.

Since:
mozilla1.0
See also:
setProperty

Definition at line 122 of file nsIWebBrowserSetup.idl.

Boolean.

Enables/disables the use of global history in the browser. Visited URLs will not be recorded in the global history when it is disabled.

See also:
setProperty

Definition at line 112 of file nsIWebBrowserSetup.idl.


The documentation for this interface was generated from the following file: