You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.
nsIWebBrowserSetup
This interface allows certain properties of a new browser object to be set before the browser window is opened. This interface is scriptable.
Note: Unless stated otherwise, settings are presumed to be enabled by default.
Sets an integer or boolean property on the new web browser object. Only
PR_TRUE
andPR_FALSE
are legal boolean values.Syntax:
void setProperty (in unsigned long aId, in unsigned long aValue)Parameters:
See Constants below for available properties and values.
nsresult:
Boolean. Enables/disables plugin support for this browser.
Boolean. Enables/disables Javascript support for this browser.
Boolean. Enables/disables meta redirect support for this browser. Meta redirect timers will be ignored if this option is disabled.
Boolean. Enables/disables subframes within the browser.
Boolean. Enables/disables image loading for this browser window.
If images are disabled, a page is loaded, and then images are enabled, 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.Boolean. Enables/disables the use of global history in the browser. Visited URLs are not recorded in the global history when it is disabled.
Boolean. Marks whether the browser is a chrome wrapper. A value of
PR_TRUE
means the browser is a chrome wrapper. The default value isPR_FALSE
.
Written by:Ellen Evans | Comments, questions, complaints?
Bug 143387 |