Bug 965472 - about:accounts should open a new tab to display legacy sync info. r=ttaubert

This commit is contained in:
Mark Hammond 2014-02-14 09:08:37 +11:00
parent de7af527bd
commit 706de66dd4

View File

@ -226,8 +226,16 @@ let wrapper = {
// Button onclick handlers
function handleOldSync() {
// we just want to navigate the current tab to the new location...
window.location = Services.urlFormatter.formatURLPref("app.support.baseURL") + "old-sync";
let chromeWin = window
.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIWebNavigation)
.QueryInterface(Ci.nsIDocShellTreeItem)
.rootTreeItem
.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIDOMWindow)
.QueryInterface(Ci.nsIDOMChromeWindow);
let url = Services.urlFormatter.formatURLPref("app.support.baseURL") + "old-sync";
chromeWin.switchToTabHavingURI(url, true);
}
function getStarted() {