mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
ab9253304f
When Firefox downloads an update, it previously kept the update around to apply it on the next restart. This patch changes this so that the updater program is launched in the background as soon as the update has finished downloading in order to stage the updated version of the application by copying the existing installation directory to a temporary location and applying the update on top of it, and replace the existing installation directory with the staged directory on the next restart. Because the replacing step is typically very fast, this patch eliminates the wait for the update to be applied on restart, making it unnecessary to show a progress dialog when restarting. --HG-- rename : toolkit/mozapps/update/test/chrome/test_0092_finishedBackground.xul => toolkit/mozapps/update/test/chrome/test_0093_stagedBackground.xul rename : toolkit/mozapps/update/test/unit/test_0110_general.js => toolkit/mozapps/update/test/unit/test_0113_general.js rename : toolkit/mozapps/update/test/unit/test_0111_general.js => toolkit/mozapps/update/test/unit/test_0114_general.js rename : toolkit/mozapps/update/test/unit/test_0112_general.js => toolkit/mozapps/update/test/unit/test_0115_general.js rename : toolkit/mozapps/update/test/unit/test_0170_fileLocked_xp_win_complete.js => toolkit/mozapps/update/test/unit/test_0172_fileLocked_xp_win_complete.js rename : toolkit/mozapps/update/test/unit/test_0171_fileLocked_xp_win_partial.js => toolkit/mozapps/update/test/unit/test_0173_fileLocked_xp_win_partial.js rename : toolkit/mozapps/update/test/unit/test_0110_general.js => toolkit/mozapps/update/test_svc/unit/test_0113_general_svc.js rename : toolkit/mozapps/update/test/unit/test_0111_general.js => toolkit/mozapps/update/test_svc/unit/test_0114_general_svc.js rename : toolkit/mozapps/update/test/unit/test_0112_general.js => toolkit/mozapps/update/test_svc/unit/test_0115_general_svc.js rename : toolkit/mozapps/update/test/unit/test_0170_fileLocked_xp_win_complete.js => toolkit/mozapps/update/test_svc/unit/test_0172_fileLocked_xp_win_complete_svc.js rename : toolkit/mozapps/update/test/unit/test_0171_fileLocked_xp_win_partial.js => toolkit/mozapps/update/test_svc/unit/test_0173_fileLocked_xp_win_partial_svc.js
129 lines
5.5 KiB
XML
129 lines
5.5 KiB
XML
<?xml version="1.0"?> <!-- -*- Mode: HTML -*- -->
|
|
|
|
# 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://browser/content/aboutDialog.css" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://branding/content/aboutDialog.css" type="text/css"?>
|
|
|
|
<!DOCTYPE window [
|
|
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
|
|
%brandDTD;
|
|
<!ENTITY % aboutDialogDTD SYSTEM "chrome://browser/locale/aboutDialog.dtd" >
|
|
%aboutDialogDTD;
|
|
]>
|
|
|
|
#ifdef XP_MACOSX
|
|
<?xul-overlay href="chrome://browser/content/macBrowserOverlay.xul"?>
|
|
#endif
|
|
|
|
<window xmlns:html="http://www.w3.org/1999/xhtml"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
id="aboutDialog"
|
|
windowtype="Browser:About"
|
|
onload="init(event);"
|
|
#ifdef MOZ_UPDATER
|
|
onunload="onUnload(event);"
|
|
#endif
|
|
#ifdef XP_MACOSX
|
|
inwindowmenu="false"
|
|
#else
|
|
title="&aboutDialog.title;"
|
|
#endif
|
|
role="dialog"
|
|
aria-describedby="version distribution distributionId communityDesc contributeDesc trademark"
|
|
>
|
|
|
|
<script type="application/javascript" src="chrome://browser/content/aboutDialog.js"/>
|
|
|
|
<vbox id="aboutDialogContainer">
|
|
<hbox id="clientBox">
|
|
<vbox id="leftBox" flex="1"/>
|
|
<vbox id="rightBox" flex="1">
|
|
#expand <label id="version">__MOZ_APP_VERSION__</label>
|
|
<label id="distribution" class="text-blurb"/>
|
|
<label id="distributionId" class="text-blurb"/>
|
|
|
|
<vbox id="detailsBox">
|
|
<vbox id="updateBox">
|
|
#ifdef MOZ_UPDATER
|
|
<deck id="updateDeck" orient="vertical">
|
|
<hbox id="updateButtonBox" align="center">
|
|
<button id="updateButton" align="start"
|
|
oncommand="gAppUpdater.buttonOnCommand();"/>
|
|
<spacer flex="1"/>
|
|
</hbox>
|
|
<hbox id="checkingForUpdates" align="center">
|
|
<image class="update-throbber"/><label>&update.checkingForUpdates;</label>
|
|
</hbox>
|
|
<hbox id="checkingAddonCompat" align="center">
|
|
<image class="update-throbber"/><label>&update.checkingAddonCompat;</label>
|
|
</hbox>
|
|
<hbox id="downloading" align="center">
|
|
<image class="update-throbber"/><label>&update.downloading.start;</label><label id="downloadStatus"/><label>&update.downloading.end;</label>
|
|
</hbox>
|
|
<hbox id="applying" align="center">
|
|
<image class="update-throbber"/><label>&update.applying;</label>
|
|
</hbox>
|
|
<hbox id="downloadFailed" align="center">
|
|
<label>&update.failed.start;</label><label id="failedLink" class="text-link">&update.failed.linkText;</label><label>&update.failed.end;</label>
|
|
</hbox>
|
|
<hbox id="adminDisabled" align="center">
|
|
<label>&update.adminDisabled;</label>
|
|
</hbox>
|
|
<hbox id="noUpdatesFound" align="center">
|
|
<label>&update.noUpdatesFound;</label>
|
|
</hbox>
|
|
<hbox id="manualUpdate" align="center">
|
|
<label>&update.manual.start;</label><label id="manualLink" class="text-link"/><label>&update.manual.end;</label>
|
|
</hbox>
|
|
</deck>
|
|
#endif
|
|
</vbox>
|
|
|
|
#ifdef MOZ_UPDATER
|
|
<description class="text-blurb" id="currentChannelText">
|
|
&channel.description.start;<label id="currentChannel"/>&channel.description.end;
|
|
</description>
|
|
#endif
|
|
<vbox id="experimental" hidden="true">
|
|
<description class="text-blurb" id="warningDesc">
|
|
&warningDesc.version;
|
|
#ifdef MOZ_TELEMETRY_REPORTING
|
|
&warningDesc.telemetryDesc;
|
|
#endif
|
|
</description>
|
|
<description class="text-blurb" id="communityExperimentalDesc">
|
|
&community.exp.start;<label class="text-link" href="http://www.mozilla.org/">&community.exp.mozillaLink;</label>&community.exp.middle;<label class="text-link" href="about:credits">&community.exp.creditsLink;</label>&community.exp.end;
|
|
</description>
|
|
</vbox>
|
|
<description class="text-blurb" id="communityDesc">
|
|
&community.start2;<label class="text-link" href="http://www.mozilla.org/">&community.mozillaLink;</label>&community.middle2;<label class="text-link" href="about:credits">&community.creditsLink;</label>&community.end3;
|
|
</description>
|
|
<description class="text-blurb" id="contributeDesc">
|
|
&contribute.start;<label class="text-link" href="http://www.mozilla.org/contribute/">&contribute.getInvolvedLink;</label>&contribute.end;
|
|
</description>
|
|
</vbox>
|
|
</vbox>
|
|
</hbox>
|
|
<vbox id="bottomBox">
|
|
<hbox pack="center">
|
|
<label class="text-link bottom-link" href="about:license">&bottomLinks.license;</label>
|
|
<label class="text-link bottom-link" href="about:rights">&bottomLinks.rights;</label>
|
|
<label class="text-link bottom-link" href="http://www.mozilla.com/legal/privacy/">&bottomLinks.privacy;</label>
|
|
</hbox>
|
|
<description id="trademark">&trademarkInfo.part1;</description>
|
|
</vbox>
|
|
</vbox>
|
|
|
|
<keyset>
|
|
<key keycode="VK_ESCAPE" oncommand="window.close();"/>
|
|
</keyset>
|
|
|
|
#ifdef XP_MACOSX
|
|
#include browserMountPoints.inc
|
|
#endif
|
|
</window>
|