
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_TRUEandPR_FALSEare 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
srcattributes.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_TRUEmeans the browser is a chrome wrapper. The default value isPR_FALSE.
| Written by:Ellen Evans | Comments, questions, complaints?
Bug 143387 |