From cdfcf7cfc1cc354e290bbdedf9bc50849393bac5 Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Thu, 7 Mar 2002 21:10:47 +0000 Subject: [PATCH] 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. git-svn-id: svn://10.0.0.236/trunk@116080 18797224-902f-48f8-a5cc-f745e15eee43 --- .../prefwindow/resources/content/pref.xul | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/mozilla/xpfe/components/prefwindow/resources/content/pref.xul b/mozilla/xpfe/components/prefwindow/resources/content/pref.xul index c4a368c35b7..a6abb9f2956 100644 --- a/mozilla/xpfe/components/prefwindow/resources/content/pref.xul +++ b/mozilla/xpfe/components/prefwindow/resources/content/pref.xul @@ -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 )