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.
This is a embedder-provided callback interface used by Gecko to create new browser windows in certain specific circumstances, like in utilizing PSM. A WindowWatcher component must also be available, and must be notified of the
nsIWindowCreatorduring application initialization. This interface is not scriptable.
Creates a new window. Gecko will/may call this method, if made available to it, to create new windows.
Syntax:nsIWebBrowserChrome nsIWindowCreator::createChromeWindow( in nsIWebBrowserChrome parent, in PRUint32 chromeFlags)
parent:The parent window, if one exists, or
nullif not. The newly created window should be made a child/dependent window of the parent, if any (and if the concept applies to the underlying OS).
chromeFlags:Chrome features from
| Written by:Ellen Evans | Comments, questions, complaints?