fx-compat: Add app update dialog files from fx68

Removed in fx69

Not yet functional
This commit is contained in:
Dan Stillman 2022-09-13 05:19:28 -04:00
parent e955583d2c
commit 35d5c2633d
6 changed files with 1815 additions and 0 deletions

View file

@ -0,0 +1,34 @@
/* Hide the wizard's header so the size of the billboard can size the window
on creation. A custom header will be used in its place when a header is
needed. */
.wizard-header {
display: none;
}
/* Display the custom header */
.update-header {
display: -moz-box !important;
}
/* Custom header implementation based on the Wizard's header. This allows the
size of the billboard's remotecontent to size the window since it does not
have an updateheader on the billboard page. */
updateheader {
-moz-binding: url("chrome://mozapps/content/update/updates.xml#updateheader");
display: -moz-box;
-moz-box-orient: horizontal;
}
#downloadProgress {
-moz-box-flex: 1;
}
/* Update History Window */
richlistitem.update {
display: -moz-box;
-moz-box-orient: vertical;
}
.update-name {
-moz-box-flex: 1;
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,22 @@
<?xml version="1.0"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<bindings id="updatesBindings"
xmlns="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:xbl="http://www.mozilla.org/xbl">
<binding id="updateheader">
<content>
<xul:hbox class="wizard-header update-header" flex="1">
<xul:vbox class="wizard-header-box-1">
<xul:vbox class="wizard-header-box-text">
<xul:label class="wizard-header-label" xbl:inherits="value=label"/>
</xul:vbox>
</xul:vbox>
</xul:hbox>
</content>
</binding>
</bindings>

View file

@ -0,0 +1,197 @@
<?xml version="1.0"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://mozapps/content/update/updates.css"?>
<?xml-stylesheet href="chrome://mozapps/skin/update/updates.css"?>
<!DOCTYPE wizard [
<!ENTITY % updateDTD SYSTEM "chrome://mozapps/locale/update/updates.dtd">
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
%updateDTD;
%brandDTD;
#if defined(XP_MACOSX) && MOZ_BUILD_APP == browser
#include ../../../../browser/base/content/browser-doctype.inc
#endif
]>
<wizard id="updates"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
title="&updateWizard.title;"
windowtype="Update:Wizard"
style="width: auto; height: auto"
onload="gUpdates.onLoad();"
onunload="gUpdates.onUnload();">
<script src="chrome://global/content/contentAreaUtils.js"/>
<script src="chrome://mozapps/content/update/updates.js"/>
<script src="chrome://global/content/globalOverlay.js"/>
<script src="chrome://global/content/editMenuOverlay.js"/>
#if defined(XP_MACOSX) && MOZ_BUILD_APP == browser
#include ../../../../browser/base/content/macWindow.inc.xul
#endif
<stringbundleset id="updateSet">
<stringbundle id="brandStrings" src="chrome://branding/locale/brand.properties"/>
<stringbundle id="updateStrings" src="chrome://mozapps/locale/update/updates.properties"/>
</stringbundleset>
<wizardpage id="dummy" pageid="dummy" firstpage="true"/>
<wizardpage id="checking" pageid="checking" next="noupdatesfound"
object="gCheckingPage">
<updateheader label="&checking.title;"/>
<vbox class="update-content" flex="1">
<label>&updateCheck.label;</label>
<separator class="thin"/>
<html:progress id="checkingProgress"/>
</vbox>
</wizardpage>
<wizardpage id="noupdatesfound" pageid="noupdatesfound"
object="gNoUpdatesPage">
<updateheader label="&noupdatesfound.title;"/>
<vbox class="update-content" flex="1">
<label id="noUpdatesAutoEnabled" hidden="true">&noupdatesautoenabled.intro;</label>
<label id="noUpdatesAutoDisabled" hidden="true">&noupdatesautodisabled.intro;</label>
</vbox>
</wizardpage>
<wizardpage id="manualUpdate" pageid="manualUpdate" object="gManualUpdatePage">
<updateheader label="&manualUpdate.title;"/>
<vbox class="update-content" flex="1">
<label id="manualUpdateDesc">&manualUpdate.desc;</label>
<label id="manualUpdateSpaceDesc"
hidden="true">&manualUpdate.space.desc;</label>
<separator class="thin"/>
<label>&manualUpdateGetMsg.label;</label>
<hbox>
<label id="manualUpdateLinkLabel" value="" is="text-link"
onclick="openUpdateURL(event);"/>
</hbox>
</vbox>
</wizardpage>
<wizardpage id="unsupported" pageid="unsupported"
object="gUnsupportedPage">
<updateheader label="&unsupported.title;"/>
<vbox class="update-content" flex="1">
<description flex="1">&unsupported.label;
<label id="unsupportedLinkLabel" class="inline-link" onclick="openUpdateURL(event);" is="text-link">
&unsupportedLink.label;
</label>
</description>
</vbox>
</wizardpage>
<wizardpage id="updatesfoundbasic" pageid="updatesfoundbasic"
object="gUpdatesFoundBasicPage" next="downloading">
<updateheader id="updatesFoundBasicHeader" label=""/>
<vbox class="update-content" flex="1">
<label id="updatesFoundInto"/>
<separator class="thin"/>
<label id="updateName" crop="right" value=""/>
<separator id="updateNameSep" class="thin"/>
<label id="upgradeEvangelism">&evangelism.desc;</label>
<separator id="upgradeEvangelismSep" flex="1"/>
<vbox flex="1">
<hbox id="moreInfoURL">
<label id="updateMoreInfoURL" is="text-link"
value="&clickHere.label;" onclick="openUpdateURL(event);"/>
</hbox>
</vbox>
</vbox>
</wizardpage>
<wizardpage id="downloading" pageid="downloading"
object="gDownloadingPage">
<updateheader label="&downloadPage.title;"/>
<vbox class="update-content" flex="1">
<hbox id="downloadStatusProgress">
<html:progress id="downloadProgress" max="100"/>
</hbox>
<separator class="thin"/>
<hbox id="downloadStatusLine">
<label id="downloadStatus" flex="1">&connecting.label;</label>
</hbox>
<separator/>
<hbox id="verificationFailed" align="start" hidden="true">
<image id="verificationFailedIcon"/>
<label flex="1">&verificationFailedText.label;</label>
</hbox>
</vbox>
</wizardpage>
<wizardpage id="errors" pageid="errors" object="gErrorsPage">
<updateheader label="&error.title;"/>
<vbox class="update-content" flex="1">
<label id="errorIntro">&error.label;</label>
<separator/>
<html:textarea class="plain" readonly="readonly" id="errorReason" rows="3"/>
<separator/>
<label id="errorManual">&errorManual.label;</label>
<hbox>
<label id="errorLinkLabel" value="" is="text-link"
onclick="openUpdateURL(event);"/>
</hbox>
</vbox>
</wizardpage>
<wizardpage id="errorextra" pageid="errorextra"
object="gErrorExtraPage">
<updateheader label="&error.title;"/>
<vbox class="update-content" flex="1">
<label id="bgErrorLabel">&genericBackgroundError.label;</label>
<hbox>
<label id="errorExtraLinkLabel" is="text-link"
value="" onclick="openUpdateURL(event);"/>
</hbox>
</vbox>
</wizardpage>
<wizardpage id="errorpatching" pageid="errorpatching" next="downloading"
object="gErrorPatchingPage">
<updateheader label="&error.title;"/>
<vbox class="update-content" flex="1">
<label>&errorpatching.intro;</label>
</vbox>
</wizardpage>
<wizardpage id="finished" pageid="finished" object="gFinishedPage">
<updateheader label="&finishedPage.title;"/>
<vbox class="update-content" flex="1">
<label>&finishedPage.text;</label>
</vbox>
</wizardpage>
<wizardpage id="finishedBackground" pageid="finishedBackground"
object="gFinishedPage">
<updateheader label="&finishedPage.title;"/>
<vbox class="update-content" flex="1">
<label>&finishedBackgroundPage.text;</label>
<separator/>
<hbox align="center">
<label>&finishedBackground.name;</label>
<label id="updateFinishedName" flex="1" crop="right" value=""/>
<label id="finishedBackgroundLink" disabled="true" is="text-link"
value="&details.link;" onclick="openUpdateURL(event);"/>
</hbox>
<spacer flex="1"/>
<label id="finishedBackgroundMore">&finishedBackground.more;</label>
<label id="finishedBackgroundMoreElevated"
hidden="true">&finishedBackground.moreElevated;</label>
<label id="finishedBackgroundMoreElevatedLink"
hidden="true">&errorManual.label;</label>
<hbox>
<label id="finishedBackgroundMoreElevatedLinkLabel" is="text-link"
value="" onclick="openUpdateURL(event);" hidden="true"/>
</hbox>
</vbox>
</wizardpage>
</wizard>

View file

@ -0,0 +1,74 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!ENTITY updateWizard.title "Software Update">
<!ENTITY checking.title "Checking for Updates">
<!ENTITY updateCheck.label "Looking for newer versions of &brandShortName;…">
<!ENTITY noupdatesfound.title "No Updates Found">
<!ENTITY noupdatesautoenabled.intro "There are no updates available. &brandShortName; will check
periodically for updates.">
<!ENTITY noupdatesautodisabled.intro "There are no updates available. Please check again later or enable
&brandShortName;'s automatic update checking.">
<!ENTITY manualUpdate.title "Unable to Update">
<!ENTITY manualUpdate.desc "A recommended security and stability update is available, but you do
not have the system permissions required to install it. Please contact your
system administrator, or try again from an account that has permission to
install software on this computer.">
<!ENTITY manualUpdate.space.desc "A recommended security and stability update is available, but you do
not have enough space to install it.">
<!ENTITY manualUpdateGetMsg.label "You can always get the latest version of &brandShortName; at:">
<!ENTITY unsupported.title "System Unsupported">
<!ENTITY unsupported.label "Your &brandShortName; is out of date, but the latest version is not
supported on your system. Please upgrade your system, then try again.
You will not see this notice again, but you can">
<!ENTITY unsupportedLink.label "learn more.">
<!ENTITY clickHere.label "View more information about this update">
<!ENTITY evangelism.desc "It is strongly recommended that you apply this
update for &brandShortName; as soon as possible.">
<!ENTITY downloadPage.title "Downloading &brandShortName;">
<!ENTITY downloading.intro "Downloading the update…">
<!ENTITY connecting.label "Connecting to the update server…">
<!ENTITY verificationFailedText.label "&brandShortName; was unable to verify the integrity of the
incremental update it downloaded, so it is now downloading
the complete update package.">
<!ENTITY viewDetails.tooltip "View details for this update">
<!ENTITY details.link "Details">
<!ENTITY error.title "Update Failed">
<!ENTITY error.label "There were problems checking for, downloading, or installing this
update. &brandShortName; could not be updated because:">
<!ENTITY errorManual.label "You can update &brandShortName; manually by visiting this link
and downloading the latest version:">
<!ENTITY errorpatching.intro "The partial Update could not be applied.
&brandShortName; will try again by downloading a complete Update.">
<!ENTITY genericBackgroundError.label "&brandShortName; is unable to determine if there is an update available. Please
make sure that you have the latest version of &brandShortName; from:">
<!ENTITY finishedPage.title "Update Ready to Install">
<!ENTITY finishedPage.text "The update will be installed the next time &brandShortName; starts. You
can restart &brandShortName; now, or continue working and restart later.">
<!ENTITY finishedBackgroundPage.text "A security and stability update for &brandShortName; has been
downloaded and is ready to be installed.">
<!ENTITY finishedBackground.name "Update:">
<!-- LOCALIZATION NOTE (finishedBackground.more): This string describes the button labels defined by restartNowButton and restartLaterButton in updates.properties. -->
<!ENTITY finishedBackground.more "The update will be installed the next time &brandShortName; starts. You
can restart &brandShortName; now, or continue working and restart later.">
<!ENTITY finishedBackground.moreElevated "This update requires administrator privileges. The update will be
installed the next time &brandShortName; starts. You can restart
&brandShortName; now, continue working and restart later, or decline this
update.">

View file

@ -0,0 +1,79 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# LOCALIZATION NOTE: The 1st %S is brandShortName and 2nd %S is update version
# where update version from the update xml
# example: MyApplication 10.0.5
updateName=%S %S
# LOCALIZATION NOTE: When present
# %1$S is the brandShortName. Ex: MyApplication
# %2$S is the update version - provided by the update xml. Ex: version 10.0.5
# %3$S is the build identifier - provided by the update xml. Ex: 20081022033543
updateNightlyName=%1$S %2$S %3$S nightly
intro_major=Do you want to upgrade to %1$S %2$S now?
intro_minor=A security and stability update for %1$S is available:
# LOCALIZATION NOTE: When present %S is brandShortName
verificationError=%S could not confirm the integrity of the update package.
updaterIOErrorTitle=Software Update Failed
updaterIOErrorMsg=The update could not be installed. Please make sure there are no other copies of %S running on your computer, and then restart %S to try again.
okButton=OK
okButton.accesskey=O
askLaterButton=Ask Later
askLaterButton.accesskey=A
noThanksButton=No Thanks
noThanksButton.accesskey=N
updateButton_minor=Update %S
updateButton_minor.accesskey=U
updateButton_major=Get the New Version
updateButton_major.accesskey=G
backButton=Back
backButton.accesskey=B
acceptTermsButton=Accept Terms
acceptTermsButton.accesskey=A
# NOTE: The restartLaterButton string is also used in
# mozapps/extensions/content/blocklist.js
restartLaterButton=Restart Later
restartLaterButton.accesskey=L
restartNowButton=Restart %S
restartNowButton.accesskey=R
# LOCALIZATION NOTE: %S is the date the update was installed from the local
# updates.xml for displaying update history
statusSucceededFormat=Installed on: %S
statusFailed=Install Failed
hideButton=Hide
hideButton.accesskey=H
applyingUpdate=Applying update…
updatesfound_minor.title=Update Available
updatesfound_major.title=New Version Available
installSuccess=The Update was successfully installed
installPending=Install Pending
patchApplyFailure=The Update could not be installed (patch apply failed)
elevationFailure=You dont have the permissions necessary to install this update. Please contact your system administrator.
check_error-200=Update XML file malformed (200)
check_error-403=Access denied (403)
check_error-404=Update XML file not found (404)
check_error-500=Internal server error (500)
check_error-2152398849=Failed (unknown reason)
check_error-2152398861=Connection refused
check_error-2152398862=Connection timed out
# NS_ERROR_OFFLINE
check_error-2152398864=Network is offline (go online)
check_error-2152398867=Port not allowed
check_error-2152398868=No data was received (please try again)
check_error-2152398878=Update server not found (check your internet connection)
check_error-2152398890=Proxy server not found (check your internet connection)
# NS_ERROR_DOCUMENT_NOT_CACHED
check_error-2152398918=Network is offline (go online)
check_error-2152398919=Data transfer was interrupted (please try again)
check_error-2152398920=Proxy server connection refused
check_error-2153390069=Server certificate has expired (please adjust your system clock to the correct date and time if it is incorrect)
check_error-verification_failed=The integrity of the update could not be verified