зеркало из https://github.com/mozilla/pjs.git
Fix for bug 138299 - switch consumers of nsIWindowMediator service to use the non-RDF contractID, in preparation for bug 132175
r=danm, sr=jag
This commit is contained in:
Родитель
6f76b2c70f
Коммит
cb37921af9
|
@ -83,7 +83,7 @@ function find()
|
|||
|
||||
function findMostRecentWindow(aType, aURI, aParam)
|
||||
{
|
||||
var WM = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService();
|
||||
var WM = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService();
|
||||
WM = WM.QueryInterface(Components.interfaces.nsIWindowMediator);
|
||||
var topWindow = WM.getMostRecentWindow(aType);
|
||||
if (!topWindow) gCreatingNewWindow = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче