Bug 1296767 part 9 - Remove Old Sync link in about:accounts. r=markh

MozReview-Commit-ID: 8HjZbLIT6YA
This commit is contained in:
Edouard Oger 2017-01-19 12:02:46 -05:00
Родитель 3844e92a36
Коммит 080a07ea9c
3 изменённых файлов: 1 добавлений и 21 удалений

Просмотреть файл

@ -304,18 +304,6 @@ var wrapper = {
// Button onclick handlers
function handleOldSync() {
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() {
show("remote");
@ -503,10 +491,7 @@ document.addEventListener("DOMContentLoaded", function() {
var buttonRetry = document.getElementById("buttonRetry");
buttonRetry.addEventListener("click", retry);
var oldsync = document.getElementById("oldsync");
oldsync.addEventListener("click", handleOldSync);
var buttonOpenPrefs = document.getElementById("buttonOpenPrefs")
var buttonOpenPrefs = document.getElementById("buttonOpenPrefs");
buttonOpenPrefs.addEventListener("click", openPrefs);
}, {capture: true, once: true});

Просмотреть файл

@ -63,10 +63,6 @@
<div class="button-row">
<button id="buttonGetStarted" class="button" tabindex="1">&aboutAccountsConfig.startButton.label;</button>
</div>
<div class="links">
<button id="oldsync" tabindex="2">&aboutAccountsConfig.useOldSync.label;</button>
</div>
</section>
</div>

Просмотреть файл

@ -6,7 +6,6 @@
<!ENTITY aboutAccountsConfig.description "Sign in to sync your tabs, bookmarks, passwords &amp; more.">
<!ENTITY aboutAccountsConfig.startButton.label "Get started">
<!ENTITY aboutAccountsConfig.useOldSync.label "Using an older version of Sync?">
<!ENTITY aboutAccountsConfig.syncPreferences.label "Sync preferences">
<!ENTITY aboutAccounts.noConnection.title "No connection">
<!ENTITY aboutAccounts.noConnection.description "You must be connected to the Internet to sign in.">