remove redundant code for seamonkey, especially given that it doesn't work in embedding. allows embedding apps to use xul pref window. r=blake/sr=hyatt/a=asa. bug# 128924.

This commit is contained in:
pinkerton%netscape.com 2002-03-07 21:10:47 +00:00
Родитель 17030cc1da
Коммит c2b322df2b
1 изменённых файлов: 0 добавлений и 13 удалений

Просмотреть файл

@ -31,19 +31,6 @@
**/
function Startup()
{
// Check for an existing pref window.
const kWindowMediatorContractID = "@mozilla.org/rdf/datasource;1?name=window-mediator";
const kWindowMediatorIID = Components.interfaces.nsIWindowMediator;
const kWindowMediator = Components.classes[kWindowMediatorContractID].getService(kWindowMediatorIID);
var windows = kWindowMediator.getEnumerator("mozilla:preferences");
var prefWindow;
while ((prefWindow = windows.getNext().QueryInterface(Components.interfaces.nsIDOMWindow)) &&
prefWindow != window) {
// Prefs already open, activate it and close this one.
prefWindow.focus();
window.close();
}
hPrefWindow = new nsPrefWindow('panelFrame');
if( !hPrefWindow )