Bug 740389 - Clean up openTopWin and mark it as deprecated. r=gavin

This commit is contained in:
Dão Gottwald 2012-03-29 19:46:26 +02:00
parent b9c416e161
commit 0ca4926e78
2 changed files with 4 additions and 4 deletions

View File

@ -2306,7 +2306,7 @@ function BrowserOpenFileWindow()
gLastOpenDirectory.path = fp.file.parent.QueryInterface(Ci.nsILocalFile);
} catch(e) {
}
openTopWin(fp.fileURL.spec);
openUILinkIn(fp.fileURL.spec, "current");
}
} catch (ex) {
}

View File

@ -95,9 +95,9 @@ function getTopWin(skipPopups) {
return Services.wm.getMostRecentWindow("navigator:browser");
}
function openTopWin( url )
{
openUILink(url, {})
function openTopWin(url) {
/* deprecated */
openUILinkIn(url, "current");
}
function getBoolPref(prefname, def)