зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
17030cc1da
Коммит
c2b322df2b
|
@ -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 )
|
||||
|
|
Загрузка…
Ссылка в новой задаче