зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1296767 part 9 - Remove Old Sync link in about:accounts. r=markh
MozReview-Commit-ID: 8HjZbLIT6YA
This commit is contained in:
Родитель
3844e92a36
Коммит
080a07ea9c
|
@ -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 & 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.">
|
||||
|
|
Загрузка…
Ссылка в новой задаче