зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1437242 - don't drag browser-sync.js into places.xul. r=tcsc
MozReview-Commit-ID: FZTdHOUMMOK --HG-- extra : rebase_source : 7740cd64da18f414fd07e356f2734b1ca7be1551
This commit is contained in:
Родитель
b28f3f4deb
Коммит
9c04fa2a49
|
@ -114,6 +114,19 @@ var gSync = {
|
|||
return;
|
||||
}
|
||||
|
||||
// initial label for the sync buttons.
|
||||
let statusBroadcaster = document.getElementById("sync-status");
|
||||
if (!statusBroadcaster) {
|
||||
// We are in a window without our elements - just abort now, without
|
||||
// setting this._initialized, so we don't attempt to remove observers.
|
||||
return;
|
||||
}
|
||||
statusBroadcaster.setAttribute("label", this.syncStrings.GetStringFromName("syncnow.label"));
|
||||
// We start with every broadcasters hidden, so that we don't need to init
|
||||
// the sync UI on windows like pageInfo.xul (see bug 1384856).
|
||||
let setupBroadcaster = document.getElementById("sync-setup-state");
|
||||
setupBroadcaster.hidden = false;
|
||||
|
||||
for (let topic of this._obs) {
|
||||
Services.obs.addObserver(this, topic, true);
|
||||
}
|
||||
|
@ -121,14 +134,6 @@ var gSync = {
|
|||
this._generateNodeGetters();
|
||||
this._definePrefGetters();
|
||||
|
||||
// initial label for the sync buttons.
|
||||
let statusBroadcaster = document.getElementById("sync-status");
|
||||
statusBroadcaster.setAttribute("label", this.syncStrings.GetStringFromName("syncnow.label"));
|
||||
// We start with every broadcasters hidden, so that we don't need to init
|
||||
// the sync UI on windows like pageInfo.xul (see bug 1384856).
|
||||
let setupBroadcaster = document.getElementById("sync-setup-state");
|
||||
setupBroadcaster.hidden = false;
|
||||
|
||||
this._maybeUpdateUIState();
|
||||
|
||||
EnsureFxAccountsWebChannel();
|
||||
|
@ -180,11 +185,6 @@ var gSync = {
|
|||
},
|
||||
|
||||
updatePanelPopup(state) {
|
||||
// Some windows (e.g. places.xul) won't contain the panel UI, so we can
|
||||
// abort immediately for those (bug 1384856).
|
||||
if (!this.appMenuContainer) {
|
||||
return;
|
||||
}
|
||||
let defaultLabel = this.appMenuStatus.getAttribute("defaultlabel");
|
||||
// The localization string is for the signed in text, but it's the default text as well
|
||||
let defaultTooltiptext = this.appMenuStatus.getAttribute("signedinTooltiptext");
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
/* import-globals-from editBookmarkOverlay.js */
|
||||
// Via downloadsViewOverlay.xul -> allDownloadsViewOverlay.xul
|
||||
/* import-globals-from ../../../../toolkit/content/contentAreaUtils.js */
|
||||
/* import-globals-from ../../../base/content/browser-sync.js */
|
||||
|
||||
ChromeUtils.import("resource://gre/modules/AppConstants.jsm");
|
||||
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
@ -177,7 +176,6 @@ var PlacesOrganizer = {
|
|||
.removeChild(document.getElementById("placesContext_show:info"));
|
||||
|
||||
ContentArea.focus();
|
||||
gSync.init();
|
||||
},
|
||||
|
||||
QueryInterface: function PO_QueryInterface(aIID) {
|
||||
|
|
|
@ -48,8 +48,6 @@
|
|||
<!-- On Mac, these are included via macBrowserOverlay.xul -> browser.js -> defineLazyScriptGetter -->
|
||||
<script type="application/javascript"
|
||||
src="chrome://browser/content/places/editBookmarkOverlay.js"/>
|
||||
<script type="application/javascript"
|
||||
src="chrome://browser/content/browser-sync.js"/>
|
||||
#endif
|
||||
|
||||
<stringbundleset id="placesStringSet">
|
||||
|
|
Загрузка…
Ссылка в новой задаче