mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-10-02 01:20:13 +02:00
add sessionstore system
This commit is contained in:
parent
869e3d5b5f
commit
f373524404
@ -1,12 +1,12 @@
|
||||
# gmake
|
||||
# This file is automatically generated for client.mk.
|
||||
# Do not edit. Edit /c/projects/retrozilla/mozilla/mozconfig instead.
|
||||
# Do not edit. Edit /c/projects/moz95/mozilla/mozconfig instead.
|
||||
# To create a new .mozconfig file, you can visit,
|
||||
# http://webtools.mozilla.org/build/config.cgi
|
||||
|
||||
# PATH=/local/bin:/c/mozilla-build//wget:/c/mozilla-build//7zip:/c/mozilla-build//blat261/full:/c/mozilla-build//python25:/c/mozilla-build//svn-win32-1.4.2/bin:/c/mozilla-build//upx203w:/c/mozilla-build//xemacs/XEmacs-21.4.19/i586-pc-win32:/c/mozilla-build//info-zip:/c/mozilla-build//nsis-2.22:/c/mozilla-build//nsis-2.33u:.:/usr/local/bin:/mingw/bin:/bin:/c/PROGRA~1/MICROS~3/Common/msdev98/BIN:/c/PROGRA~1/MICROS~3/VC98/BIN:/c/PROGRA~1/MICROS~3/Common/TOOLS/WINNT:/c/PROGRA~1/MICROS~3/Common/TOOLS:/c/WINNT/System32:/c/WINNT:/c/WINNT/System32/Wbem:/c/mozilla-build/moztools-180compat/bin
|
||||
MOZ_MAKE_FLAGS=-j4
|
||||
MOZ_OBJDIR=/c/projects/retrozilla/obj-sm95-release
|
||||
MOZ_OBJDIR=/c/projects/moz95/obj-sm95-release
|
||||
# --target=i586-pc-msvc is used by configure (not client.mk)
|
||||
# --enable-application=suite is used by configure (not client.mk)
|
||||
# --enable-optimize is used by configure (not client.mk)
|
||||
|
@ -1,14 +0,0 @@
|
||||
# gmake
|
||||
# This file is automatically generated for client.mk.
|
||||
# Do not edit. Edit /c/projects/moz95/mozilla/mozconfig instead.
|
||||
# To create a new .mozconfig file, you can visit,
|
||||
# http://webtools.mozilla.org/build/config.cgi
|
||||
|
||||
# PATH=/local/bin:/c/mozilla-build//wget:/c/mozilla-build//7zip:/c/mozilla-build//blat261/full:/c/mozilla-build//python25:/c/mozilla-build//svn-win32-1.4.2/bin:/c/mozilla-build//upx203w:/c/mozilla-build//xemacs/XEmacs-21.4.19/i586-pc-win32:/c/mozilla-build//info-zip:/c/mozilla-build//nsis-2.22:/c/mozilla-build//nsis-2.33u:.:/usr/local/bin:/mingw/bin:/bin:/c/PROGRA~1/MICROS~3/Common/msdev98/BIN:/c/PROGRA~1/MICROS~3/VC98/BIN:/c/PROGRA~1/MICROS~3/Common/TOOLS/WINNT:/c/PROGRA~1/MICROS~3/Common/TOOLS:/c/WINNT/System32:/c/WINNT:/c/WINNT/System32/Wbem:/c/mozilla-build/moztools-180compat/bin
|
||||
MOZ_MAKE_FLAGS=-j4
|
||||
MOZ_OBJDIR=/c/projects/moz95/obj-sm95-release
|
||||
# --target=i586-pc-msvc is used by configure (not client.mk)
|
||||
# --enable-application=suite is used by configure (not client.mk)
|
||||
# --enable-optimize is used by configure (not client.mk)
|
||||
# --disable-debug is used by configure (not client.mk)
|
||||
# --disable-tests is used by configure (not client.mk)
|
@ -41,6 +41,29 @@
|
||||
#expand pref("general.useragent.extra.__MOZ_APP_NAME__", "__MOZ_APP_DISPLAYNAME__/__MOZ_APP_VERSION__ SeaMonkey/1.1.19 Firefox/2.0.20");
|
||||
pref("rzHome.autofocus", true);
|
||||
|
||||
// RETROZILLA SESSION RESTORE PREFERENCES
|
||||
pref("extensions.crashrecovery.interval", 10000);
|
||||
pref("extensions.crashrecovery.postdata", -1);
|
||||
pref("extensions.crashrecovery.privacy_level", 1);
|
||||
pref("extensions.crashrecovery.restore_prompt", true);
|
||||
pref("extensions.crashrecovery.restore_prompt_uri", "chrome://global/content/extensions/sessionmanager/restore_prompt.xul"); // change this to new URI
|
||||
pref("extensions.crashrecovery.resume_session", false);
|
||||
pref("extensions.crashrecovery.resume_session_once", false);
|
||||
|
||||
pref("extensions.sessionmanager.backup_session", 1);
|
||||
pref("extensions.sessionmanager.max_backup_keep", 1);
|
||||
pref("extensions.sessionmanager.max_closed_undo", 10);
|
||||
pref("extensions.sessionmanager.max_tabs_undo", 10);
|
||||
pref("extensions.sessionmanager.name_format", "%40t-%d");
|
||||
pref("extensions.sessionmanager.options_selected_tab", 0);
|
||||
pref("extensions.sessionmanager.overwrite", true);
|
||||
pref("extensions.sessionmanager.reload", false);
|
||||
pref("extensions.sessionmanager.resume_session", "");
|
||||
pref("extensions.sessionmanager.save_closed_tabs", 0);
|
||||
pref("extensions.sessionmanager.save_window_list", false);
|
||||
pref("extensions.sessionmanager.session_list_order", 1);
|
||||
pref("extensions.sessionmanager.submenus", false);
|
||||
|
||||
/* The prefs in this file are specific to the seamonkey browser.
|
||||
* Generic default prefs that would be useful to embedders belong in
|
||||
* modules/libpref/src/init/all.js
|
||||
|
@ -49,6 +49,8 @@
|
||||
<?xul-overlay href="chrome://communicator/content/sidebar/sidebarOverlay.xul"?>
|
||||
<?xul-overlay href="chrome://communicator/content/communicatorOverlay.xul"?>
|
||||
<?xul-overlay href="chrome://communicator/content/bookmarks/bookmarksOverlay.xul"?>
|
||||
<!-- Extension-specific overlays -->
|
||||
<?xul-overlay href="chrome://global/content/extensions/sessionmanager/sessionmanager.xul"?>
|
||||
|
||||
|
||||
<!DOCTYPE window [
|
||||
|
@ -96,6 +96,7 @@ DIRS += \
|
||||
startup \
|
||||
alerts \
|
||||
extensions \
|
||||
sessionstore \
|
||||
$(NULL)
|
||||
endif
|
||||
endif
|
||||
|
@ -105,6 +105,7 @@ comm.jar:
|
||||
content/communicator/sidebar/local-panels.rdf (sidebar/resources/local-panels.rdf)
|
||||
content/communicator/alerts/alert.xul (alerts/resources/content/alert.xul)
|
||||
content/communicator/alerts/alert.js (alerts/resources/content/alert.js)
|
||||
content/communicator/sessionstore/src/crashrecovery.js (sessionstore/src/crashrecovery.js)
|
||||
* content/cookie/contents.rdf (/toolkit/components/cookie/content/contents.rdf)
|
||||
content/cookie/cookieAcceptDialog.xul (/toolkit/components/cookie/content/cookieAcceptDialog.xul)
|
||||
content/cookie/cookieAcceptDialog.js (/toolkit/components/cookie/content/cookieAcceptDialog.js)
|
||||
@ -191,6 +192,8 @@ en-US.jar:
|
||||
* locale/en-US/cookie/contents.rdf (cookie/locale/en-US/contents.rdf)
|
||||
locale/en-US/cookie/cookieAcceptDialog.properties (/toolkit/locales/en-US/chrome/cookie/cookieAcceptDialog.properties)
|
||||
locale/en-US/cookie/cookieAcceptDialog.dtd (/toolkit/locales/en-US/chrome/cookie/cookieAcceptDialog.dtd)
|
||||
locale/en-US/sessionstore/crashrecovery.properties (sessionstore/locale/en-US/crashrecovery.properties)
|
||||
|
||||
|
||||
toolkit.jar:
|
||||
content/global/blank.html (console/resources/content/blank.html)
|
||||
|
47
xpfe/components/sessionstore/Makefile.in
Normal file
47
xpfe/components/sessionstore/Makefile.in
Normal file
@ -0,0 +1,47 @@
|
||||
#
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 1998
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either of the GNU General Public License Version 2 or later (the "GPL"),
|
||||
# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
DIRS = public src
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
19
xpfe/components/sessionstore/contents.rdf
Normal file
19
xpfe/components/sessionstore/contents.rdf
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
|
||||
<Seq about="urn:mozilla:locale:root">
|
||||
<li resource="urn:mozilla:locale:en-US"/>
|
||||
</Seq>
|
||||
|
||||
<Description about="urn:mozilla:locale:en-US"
|
||||
chrome:name="en-US"
|
||||
chrome:displayName="English (US)"
|
||||
chrome:author="zeniko"
|
||||
>
|
||||
<chrome:packages>
|
||||
<Seq about="urn:mozilla:locale:en-US:packages">
|
||||
<li resource="urn:mozilla:locale:en-US:crashrecovery"/>
|
||||
</Seq>
|
||||
</chrome:packages>
|
||||
</Description>
|
||||
</RDF>
|
4
xpfe/components/sessionstore/crashrecovery.properties
Normal file
4
xpfe/components/sessionstore/crashrecovery.properties
Normal file
@ -0,0 +1,4 @@
|
||||
extensions.{1280606b-2510-4fe0-97ef-9b5a22eafe6a}.description=Automagically recovers all windows (after a crash).
|
||||
|
||||
restore_prompt=All windows from before the last crash will be restored.
|
||||
restore_prompt_again=Don't show this dialog again
|
19
xpfe/components/sessionstore/locale/en-US/contents.rdf
Normal file
19
xpfe/components/sessionstore/locale/en-US/contents.rdf
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
|
||||
<Seq about="urn:mozilla:locale:root">
|
||||
<li resource="urn:mozilla:locale:en-US"/>
|
||||
</Seq>
|
||||
|
||||
<Description about="urn:mozilla:locale:en-US"
|
||||
chrome:name="en-US"
|
||||
chrome:displayName="English (US)"
|
||||
chrome:author="zeniko"
|
||||
>
|
||||
<chrome:packages>
|
||||
<Seq about="urn:mozilla:locale:en-US:packages">
|
||||
<li resource="urn:mozilla:locale:en-US:crashrecovery"/>
|
||||
</Seq>
|
||||
</chrome:packages>
|
||||
</Description>
|
||||
</RDF>
|
@ -0,0 +1,4 @@
|
||||
extensions.{1280606b-2510-4fe0-97ef-9b5a22eafe6a}.description=Automagically recovers all windows (after a crash).
|
||||
|
||||
restore_prompt=All windows from before the last crash will be restored.
|
||||
restore_prompt_again=Don't show this dialog again
|
51
xpfe/components/sessionstore/public/Makefile.in
Normal file
51
xpfe/components/sessionstore/public/Makefile.in
Normal file
@ -0,0 +1,51 @@
|
||||
#
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 1998
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either of the GNU General Public License Version 2 or later (the "GPL"),
|
||||
# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
DEPTH = ../../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = crashrecovery
|
||||
XPIDL_MODULE=crashrecovery
|
||||
|
||||
XPIDLSRCS = crashrecovery.idl \
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
32
xpfe/components/sessionstore/public/crashrecovery.idl
Normal file
32
xpfe/components/sessionstore/public/crashrecovery.idl
Normal file
@ -0,0 +1,32 @@
|
||||
#include "nsISupports.idl"
|
||||
|
||||
interface nsIDOMWindow;
|
||||
|
||||
/**
|
||||
* nsICrashRecoveryService keeps track of the current browsing state - i.e.
|
||||
* tab history, cookies, scroll state, form data, POSTDATA and window features
|
||||
* - and allows to restore everything into one window.
|
||||
*/
|
||||
|
||||
[scriptable, uuid(1280606b-2510-4fe0-97ef-9b5a22eafe33)]
|
||||
interface nsICrashRecoveryService : nsISupports
|
||||
{
|
||||
/**
|
||||
* @return The current browsing state, serialized into a string.
|
||||
*/
|
||||
wstring getCurrentState();
|
||||
|
||||
/**
|
||||
* @param aWindow is the window whose state is to be returned.
|
||||
*
|
||||
* @return The current state of one window, serialized into a string.
|
||||
*/
|
||||
wstring getWindowState(in nsIDOMWindow aWindow);
|
||||
|
||||
/**
|
||||
* @param aWindow is the window into which the browsing state will be restored.
|
||||
* @param aState is a serialized browsing state as produced by getCurrentState.
|
||||
* @param aOverwriteTabs indicates whether the window's tabs will be overwritten.
|
||||
*/
|
||||
void restoreWindow(in nsIDOMWindow aWindow, in wstring aState, in boolean aOverwriteTabs);
|
||||
};
|
48
xpfe/components/sessionstore/src/Makefile.in
Normal file
48
xpfe/components/sessionstore/src/Makefile.in
Normal file
@ -0,0 +1,48 @@
|
||||
#
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is mozilla.org Code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 1998
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either of the GNU General Public License Version 2 or later (the "GPL"),
|
||||
# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
DEPTH = ../../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
EXTRA_COMPONENTS = crashrecovery.js
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
1940
xpfe/components/sessionstore/src/crashrecovery.js
Normal file
1940
xpfe/components/sessionstore/src/crashrecovery.js
Normal file
File diff suppressed because it is too large
Load Diff
@ -90,6 +90,20 @@ toolkit.jar:
|
||||
content/global/fontpackage.xul (resources/content/fontpackage.xul)
|
||||
content/global/fontpackage.js (resources/content/fontpackage.js)
|
||||
content/global/XPCNativeWrapper.js (resources/content/XPCNativeWrapper.js)
|
||||
content/global/extensions/sessionmanager/sessionmanager.xul (resources/content/extensions/sessionmanager/sessionmanager.xul)
|
||||
content/global/extensions/sessionmanager/zzz_closewindow_hack.xul (resources/content/extensions/sessionmanager/zzz_closewindow_hack.xul)
|
||||
content/global/extensions/sessionmanager/options.xul (resources/content/extensions/sessionmanager/options.xul)
|
||||
content/global/extensions/sessionmanager/restore_prompt.xul (resources/content/extensions/sessionmanager/restore_prompt.xul)
|
||||
content/global/extensions/sessionmanager/session_prompt.xul (resources/content/extensions/sessionmanager/session_prompt.xul)
|
||||
content/global/extensions/sessionmanager/sessionmanager.js (resources/content/extensions/sessionmanager/sessionmanager.js)
|
||||
content/global/extensions/sessionmanager/options.js (resources/content/extensions/sessionmanager/options.js)
|
||||
content/global/extensions/sessionmanager/session_prompt.js (resources/content/extensions/sessionmanager/session_prompt.js)
|
||||
content/global/extensions/sessionmanager/contents.rdf (resources/content/extensions/sessionmanager/contents.rdf)
|
||||
content/global/extensions/sessionmanager/skin/contents.rdf (resources/content/extensions/sessionmanager/skin/contents.rdf)
|
||||
content/global/extensions/sessionmanager/skin/dougeeebear.png (resources/content/extensions/sessionmanager/skin/dougeeebear.png)
|
||||
content/global/extensions/sessionmanager/skin/icon.png (resources/content/extensions/sessionmanager/skin/icon.png)
|
||||
content/global/extensions/sessionmanager/skin/sessionmanager.css (resources/content/extensions/sessionmanager/skin/sessionmanager.css)
|
||||
content/global/extensions/sessionmanager/skin/toolbar.png (resources/content/extensions/sessionmanager/skin/toolbar.png)
|
||||
#ifdef MOZ_SVG
|
||||
content/global/svg/svgBindings.xml (/layout/svg/base/src/resources/content/svgBindings.xml)
|
||||
#endif
|
||||
@ -123,6 +137,10 @@ en-US.jar:
|
||||
locale/en-US/global/fontpackage.dtd (resources/locale/en-US/fontpackage.dtd)
|
||||
locale/en-US/global/fontpackage.properties (resources/locale/en-US/fontpackage.properties)
|
||||
locale/en-US/global/tree.dtd (resources/locale/en-US/tree.dtd)
|
||||
locale/en-US/global/extensions/sessionmanager/contents.rdf (resources/locale/en-US/extensions/sessionmanager/contents.rdf)
|
||||
locale/en-US/global/extensions/sessionmanager/options.dtd (resources/locale/en-US/extensions/sessionmanager/options.dtd)
|
||||
locale/en-US/global/extensions/sessionmanager/sessionmanager.dtd (resources/locale/en-US/extensions/sessionmanager/sessionmanager.dtd)
|
||||
locale/en-US/global/extensions/sessionmanager/sessionmanager.properties (resources/locale/en-US/extensions/sessionmanager/sessionmanager.properties)
|
||||
|
||||
US.jar:
|
||||
* locale/US/global-region/contents.rdf (resources/locale/en-US/contents-region.rdf)
|
||||
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
|
||||
<Seq about="urn:mozilla:package:root">
|
||||
<li resource="urn:mozilla:package:sessionmanager"/>
|
||||
</Seq>
|
||||
|
||||
<Description about="urn:mozilla:package:sessionmanager" chrome:name="sessionmanager"/>
|
||||
|
||||
<Seq about="urn:mozilla:overlays">
|
||||
<li resource="chrome://navigator/content/navigator.xul"/>
|
||||
</Seq>
|
||||
|
||||
<Seq about="chrome://navigator/content/navigator.xul">
|
||||
<li>chrome://sessionmanager/content/sessionmanager.xul</li>
|
||||
</Seq>
|
||||
</RDF>
|
@ -0,0 +1,77 @@
|
||||
gSessionManager._onLoad = gSessionManager.onLoad;
|
||||
gSessionManager.onLoad = function() {
|
||||
this._onLoad(true);
|
||||
|
||||
var resume_session = _("resume_session");
|
||||
var sessions = this.getSessions();
|
||||
resume_session.appendItem(this._string("startup_none"), "", "");
|
||||
resume_session.appendItem(this._string("startup_prompt"), this.mPromptSessionName, "");
|
||||
if (!sessions.some(function(aSession) { return aSession.fileName == this.mBackupSessionName; }, this))
|
||||
{
|
||||
resume_session.appendItem(this._string("startup_resume"), this.mBackupSessionName, "");
|
||||
}
|
||||
sessions.forEach(function(aSession) {
|
||||
resume_session.appendItem(aSession.name, aSession.fileName, "");
|
||||
});
|
||||
resume_session.value = _("extensions.sessionmanager.resume_session").value;
|
||||
|
||||
_("SessionManagerPrefs").selectedIndex = _("extensions.sessionmanager.options_selected_tab").value;
|
||||
};
|
||||
gSessionManager.onUnload = function() {
|
||||
_("extensions.sessionmanager.options_selected_tab").valueFromPreferences = _("SessionManagerPrefs").selectedIndex;
|
||||
};
|
||||
|
||||
var _disable = gSessionManager.setDisabled;
|
||||
|
||||
function readMaxClosedUndo()
|
||||
{
|
||||
var value = _("extensions.sessionmanager.max_closed_undo").value;
|
||||
|
||||
_disable(_("save_window_list"), value == 0);
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
function readMaxTabsUndo()
|
||||
{
|
||||
var value = _("extensions.sessionmanager.max_tabs_undo").value;
|
||||
|
||||
_disable(_("save_closed_tabs"), value == 0);
|
||||
_disable(document.getElementsByAttribute("control", "save_closed_tabs")[0], value == 0);
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
function promptClearUndoList()
|
||||
{
|
||||
var max_tabs_undo = _("max_tabs").value;
|
||||
|
||||
gSessionManager.clearUndoListPrompt();
|
||||
|
||||
_("max_tabs").value = max_tabs_undo;
|
||||
};
|
||||
|
||||
function readInterval()
|
||||
{
|
||||
return _("extensions.crashrecovery.interval").value / 1000;
|
||||
}
|
||||
|
||||
function writeInterval()
|
||||
{
|
||||
return Math.round(parseFloat(_("interval").value) * 1000 || 0);
|
||||
}
|
||||
|
||||
function readPrivacyLevel()
|
||||
{
|
||||
var value = _("extensions.crashrecovery.privacy_level").value;
|
||||
|
||||
_disable(_("postdata"), value > 1);
|
||||
_disable(document.getElementsByAttribute("control", "postdata")[0], value > 1);
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
function _(aId)
|
||||
{
|
||||
return document.getElementById(aId);
|
||||
}
|
@ -0,0 +1,170 @@
|
||||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
||||
|
||||
<!DOCTYPE prefwindow [
|
||||
<!ENTITY % sessionmanagerDTD SYSTEM "chrome://global/locale/extensions/sessionmanager/sessionmanager.dtd">
|
||||
%sessionmanagerDTD;
|
||||
<!ENTITY % optionsDTD SYSTEM "chrome://global/locale/extensions/sessionmanager/options.dtd">
|
||||
%optionsDTD;
|
||||
]>
|
||||
|
||||
<prefwindow
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
id="SessionManagerOptions"
|
||||
title="&sessionManager; &options.title;"
|
||||
style="width: &options.width;;"
|
||||
>
|
||||
<prefpane id="SessionManagerOptionsPane">
|
||||
<preferences>
|
||||
<preference id="extensions.crashrecovery.interval" name="extensions.crashrecovery.interval" type="int"/>
|
||||
<preference id="extensions.crashrecovery.postdata" name="extensions.crashrecovery.postdata" type="int"/>
|
||||
<preference id="extensions.crashrecovery.privacy_level" name="extensions.crashrecovery.privacy_level" type="int"/>
|
||||
<preference id="extensions.sessionmanager.backup_session" name="extensions.sessionmanager.backup_session" type="int"/>
|
||||
<preference id="extensions.sessionmanager.max_backup_keep" name="extensions.sessionmanager.max_backup_keep" type="int"/>
|
||||
<preference id="extensions.sessionmanager.max_closed_undo" name="extensions.sessionmanager.max_closed_undo" type="int"/>
|
||||
<preference id="extensions.sessionmanager.max_tabs_undo" name="extensions.sessionmanager.max_tabs_undo" type="int"/>
|
||||
<preference id="extensions.sessionmanager.name_format" name="extensions.sessionmanager.name_format" type="string"/>
|
||||
<preference id="extensions.sessionmanager.options_selected_tab" name="extensions.sessionmanager.options_selected_tab" type="int"/>
|
||||
<preference id="extensions.sessionmanager.overwrite" name="extensions.sessionmanager.overwrite" type="bool"/>
|
||||
<preference id="extensions.sessionmanager.reload" name="extensions.sessionmanager.reload" type="bool"/>
|
||||
<preference id="extensions.sessionmanager.resume_session" name="extensions.sessionmanager.resume_session" type="string"/>
|
||||
<preference id="extensions.sessionmanager.save_closed_tabs" name="extensions.sessionmanager.save_closed_tabs" type="int"/>
|
||||
<preference id="extensions.sessionmanager.save_window_list" name="extensions.sessionmanager.save_window_list" type="bool"/>
|
||||
<preference id="extensions.sessionmanager.session_list_order" name="extensions.sessionmanager.session_list_order" type="int"/>
|
||||
<preference id="extensions.sessionmanager.submenus" name="extensions.sessionmanager.submenus" type="bool"/>
|
||||
</preferences>
|
||||
|
||||
<stringbundleset id="stringbundleset">
|
||||
<stringbundle id="bundle_sessionmanager" src="chrome://global/locale/extensions/sessionmanager/sessionmanager.properties"/>
|
||||
</stringbundleset>
|
||||
|
||||
<script type="application/x-javascript" src="chrome://global/content/extensions/sessionmanager/sessionmanager.js"/>
|
||||
<script type="application/x-javascript" src="chrome://global/content/extensions/sessionmanager/options.js"/>
|
||||
<tabbox id="SessionManagerPrefs" flex="1">
|
||||
<tabs>
|
||||
<tab label="&general.caption;"/>
|
||||
<tab label="&undoClose.caption;"/>
|
||||
<tab label="&advanced.caption;"/>
|
||||
</tabs>
|
||||
<tabpanels flex="1">
|
||||
<tabpanel orient="vertical">
|
||||
<groupbox>
|
||||
<caption label="&startNend.caption;"/>
|
||||
<label value="&resume_sess.label;" accesskey="&resume_sess.accesskey;" control="resume_session"/>
|
||||
<menulist id="resume_session" preference="extensions.sessionmanager.resume_session"/>
|
||||
<hbox align="center">
|
||||
<label value="&backup_sess.label;" accesskey="&backup_sess.accesskey;" control="backup_session"/>
|
||||
<spacer flex="1"/>
|
||||
<menulist id="backup_session" preference="extensions.sessionmanager.backup_session">
|
||||
<menupopup>
|
||||
<menuitem value="1" label="&backup_session.label1;"/>
|
||||
<menuitem value="0" label="&backup_session.label0;"/>
|
||||
<menuitem value="2" label="&backup_session.label2;"/>
|
||||
</menupopup>
|
||||
</menulist>
|
||||
</hbox>
|
||||
</groupbox>
|
||||
<groupbox>
|
||||
<caption label="&restoring.caption;"/>
|
||||
<hbox align="center">
|
||||
<checkbox label="&overwrite.label;" accesskey="&overwrite.accesskey;" preference="extensions.sessionmanager.overwrite" flex="1"/>
|
||||
<checkbox label="&reload.label;" accesskey="&reload.accesskey;" preference="extensions.sessionmanager.reload" flex="1"/>
|
||||
</hbox>
|
||||
</groupbox>
|
||||
<groupbox>
|
||||
<caption label="&sessionList.caption;"/>
|
||||
<hbox align="center">
|
||||
<label value="&orderList.label;" accesskey="&orderList.accesskey;" control="session_list_order"/>
|
||||
<spacer flex="1"/>
|
||||
<menulist id="session_list_order" preference="extensions.sessionmanager.session_list_order">
|
||||
<menupopup>
|
||||
<menuitem value="1" label="&orderList.label1;"/>
|
||||
<menuitem value="-2" label="&orderList.label_2;"/>
|
||||
<menuitem value="2" label="&orderList.label2;"/>
|
||||
</menupopup>
|
||||
</menulist>
|
||||
</hbox>
|
||||
<hbox align="center">
|
||||
<label value="&max_backup.label;" accesskey="&max_backup.accesskey;" control="max_backup_keep"/>
|
||||
<spacer flex="1"/>
|
||||
<textbox id="max_backup_keep" preference="extensions.sessionmanager.max_backup_keep" size="5" maxlength="5"/>
|
||||
</hbox>
|
||||
</groupbox>
|
||||
</tabpanel>
|
||||
|
||||
<tabpanel orient="vertical">
|
||||
<groupbox>
|
||||
<caption label="&windowsNtabs.caption;"/>
|
||||
<hbox align="center">
|
||||
<label value="&max_closed.label;" accesskey="&max_closed.accesskey;" control="max_closed"/>
|
||||
<spacer flex="1"/>
|
||||
<textbox id="max_closed" preference="extensions.sessionmanager.max_closed_undo" size="5" maxlength="5" onsyncfrompreference="return readMaxClosedUndo();"/>
|
||||
</hbox>
|
||||
<hbox align="center">
|
||||
<label value="&max_tabs.label;" accesskey="&max_tabs.accesskey;" control="max_tabs"/>
|
||||
<spacer flex="1"/>
|
||||
<textbox id="max_tabs" preference="extensions.sessionmanager.max_tabs_undo" size="5" maxlength="5" onsyncfrompreference="return readMaxTabsUndo();"/>
|
||||
</hbox>
|
||||
<checkbox label="&submenu.label;" accesskey="&submenu.accesskey;" preference="extensions.sessionmanager.submenus"/>
|
||||
</groupbox>
|
||||
<groupbox>
|
||||
<caption label="&persistence.caption;"/>
|
||||
<hbox align="center">
|
||||
<label value="&closed_tabs.label;" accesskey="&closed_tabs.accesskey;" control="save_closed_tabs"/>
|
||||
<spacer flex="1"/>
|
||||
<menulist id="save_closed_tabs" preference="extensions.sessionmanager.save_closed_tabs">
|
||||
<menupopup>
|
||||
<menuitem value="1" label="&closed_tabs.label1;"/>
|
||||
<menuitem value="2" label="&closed_tabs.label2;"/>
|
||||
<menuitem value="0" label="&closed_tabs.label0;"/>
|
||||
</menupopup>
|
||||
</menulist>
|
||||
</hbox>
|
||||
<checkbox id="save_window_list" label="&window_list.label;" accesskey="&window_list.accesskey;" preference="extensions.sessionmanager.save_window_list"/>
|
||||
</groupbox>
|
||||
<hbox align="center">
|
||||
<spacer flex="1"/>
|
||||
<button label="&clear_list.label;" accesskey="&clear_list.accesskey;" oncommand="promptClearUndoList();"/>
|
||||
</hbox>
|
||||
</tabpanel>
|
||||
|
||||
<tabpanel orient="vertical">
|
||||
<groupbox>
|
||||
<caption label="&name_format.caption;"/>
|
||||
<hbox align="center">
|
||||
<label value="&name_format.label;" accesskey="&name_format.accesskey;" control="name_format"/>
|
||||
<spacer flex="1"/>
|
||||
<textbox id="name_format" preference="extensions.sessionmanager.name_format"/>
|
||||
</hbox>
|
||||
<description style="height: 5ex;">&name_format.desc;</description>
|
||||
</groupbox>
|
||||
<groupbox>
|
||||
<caption label="&service.caption;"/>
|
||||
<description class="header">&service.description;</description>
|
||||
<hbox align="center">
|
||||
<label value="&interval.label;" accesskey="&interval.accesskey;" control="interval"/>
|
||||
<spacer flex="1"/>
|
||||
<textbox id="interval" preference="extensions.crashrecovery.interval" size="7" onsyncfrompreference="return readInterval();" onsynctopreference="return writeInterval();"/>
|
||||
</hbox>
|
||||
<hbox align="center">
|
||||
<label value="&postdata.label;" accesskey="&postdata.accesskey;" control="postdata"/>
|
||||
<spacer flex="1"/>
|
||||
<textbox id="postdata" preference="extensions.crashrecovery.postdata" size="7"/>
|
||||
</hbox>
|
||||
<label value="&privacy.label;" accesskey="&privacy.accesskey;" control="privacy_level"/>
|
||||
<hbox align="center">
|
||||
<spacer flex="1"/>
|
||||
<menulist id="privacy_level" preference="extensions.crashrecovery.privacy_level" onsyncfrompreference="return readPrivacyLevel();">
|
||||
<menupopup>
|
||||
<menuitem value="0" label="&privacy.level0;"/>
|
||||
<menuitem value="1" label="&privacy.level1;"/>
|
||||
<menuitem value="2" label="&privacy.level2;"/>
|
||||
</menupopup>
|
||||
</menulist>
|
||||
</hbox>
|
||||
</groupbox>
|
||||
</tabpanel>
|
||||
</tabpanels>
|
||||
</tabbox>
|
||||
</prefpane>
|
||||
</prefwindow>
|
@ -0,0 +1,51 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!DOCTYPE dialog>
|
||||
|
||||
<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
<script type="application/x-javascript" src="chrome://global/content/extensions/sessionmanager/sessionmanager.js"/>
|
||||
|
||||
<stringbundleset id="stringbundleset">
|
||||
<stringbundle id="bundle_sessionmanager" src="chrome://global/locale/extensions/sessionmanager/sessionmanager.properties"/>
|
||||
</stringbundleset>
|
||||
|
||||
<script type="application/x-javascript"><![CDATA[
|
||||
gSessionManager.restorePrompt = function() {
|
||||
this.onLoad(true);
|
||||
this.onLoad = function() { };
|
||||
this.onUnload = function() { };
|
||||
|
||||
var params = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock);
|
||||
var values = { name: "*", addCurrentSession: true, ignorable: true }
|
||||
var fileName = (location.search != "?cancel")?this.selectSession(this._string("recover_session"), this._string("recover_session_ok"), values):"";
|
||||
if (fileName != "*")
|
||||
{
|
||||
if (fileName)
|
||||
{
|
||||
this.setPref("_recovering", fileName);
|
||||
}
|
||||
else if (!this.getPref("save_window_list", false))
|
||||
{
|
||||
this.clearUndoData("window", true);
|
||||
}
|
||||
params.SetInt(0, 1); // don't recover the crashed session
|
||||
}
|
||||
if (values.ignore)
|
||||
{
|
||||
params.SetInt(1, 1); // don't prompt again
|
||||
}
|
||||
|
||||
// save crashed session
|
||||
var file = this.getProfileFile("crashrecovery.dat");
|
||||
if (file.exists())
|
||||
{
|
||||
var name = this.getFormattedName("", new Date(), this._string("crashed_session"));
|
||||
var state = this.nameState(this.readFile(file), name + "\ntimestamp=" + file.lastModifiedTime);
|
||||
this.writeFile(this.getSessionDir(this.mBackupSessionName, true), state);
|
||||
}
|
||||
};
|
||||
|
||||
gSessionManager.restorePrompt();
|
||||
window.close();
|
||||
]]></script>
|
||||
</dialog>
|
@ -0,0 +1,176 @@
|
||||
var gParams = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock);
|
||||
var gSessionList = null;
|
||||
var gTextBox = null;
|
||||
var gAcceptButton = null;
|
||||
var gSessionNames = {};
|
||||
var gExistingName = 0;
|
||||
var gNeedSelection = false;
|
||||
|
||||
gSessionManager._onLoad = gSessionManager.onLoad;
|
||||
gSessionManager.onLoad = function() {
|
||||
this._onLoad(true);
|
||||
|
||||
_("mac_title").hidden = !/mac/i.test(navigator.platform);
|
||||
setDescription(_("session_label"), gParams.GetString(1));
|
||||
|
||||
gAcceptButton = document.documentElement.getButton("accept");
|
||||
gAcceptButton.label = gParams.GetString(2) || gAcceptButton.label;
|
||||
|
||||
var sessions = this.getSessions();
|
||||
if (gParams.GetInt(1) & 1) // add a "virtual" current session
|
||||
{
|
||||
sessions.unshift({ name: this._string("current_session"), fileName: "*" });
|
||||
}
|
||||
|
||||
gSessionList = _("session_list");
|
||||
gSessionList.selType = (gParams.GetInt(1) & 2)?"multiple":"single";
|
||||
|
||||
if (gParams.GetString(4)) // enable text box
|
||||
{
|
||||
_("text_container").hidden = false;
|
||||
setDescription(_("text_label"), gParams.GetString(4));
|
||||
gTextBox = _("text_box");
|
||||
|
||||
sessions.forEach(function(aSession, aIx) {
|
||||
gSessionNames[aSession.name.trim().toLowerCase()] = aIx + 1;
|
||||
});
|
||||
|
||||
onTextboxInput(gParams.GetString(6));
|
||||
if (gExistingName && !(gParams.GetInt(1) & 256))
|
||||
{
|
||||
gParams.SetString(3, sessions[gExistingName - 1].fileName);
|
||||
gTextBox.value = "";
|
||||
onTextboxInput();
|
||||
}
|
||||
}
|
||||
if (gParams.GetInt(1) & 4) // show the "Don't show [...] again" checkbox
|
||||
{
|
||||
_("checkbox_container").hidden = false;
|
||||
}
|
||||
|
||||
sessions.forEach(function(aSession) {
|
||||
var item = gSessionList.appendItem(aSession.name, aSession.fileName);
|
||||
if (aSession.fileName == gParams.GetString(3))
|
||||
{
|
||||
setTimeout(function(aItem) { gSessionList.selectItem(aItem); }, 0, item);
|
||||
}
|
||||
});
|
||||
|
||||
if ((gNeedSelection = !gTextBox || !gParams.GetString(5)) || (gParams.GetInt(1) & 256)) // when no textbox or renaming
|
||||
{
|
||||
gSessionList.addEventListener("select", onListboxSelect, false);
|
||||
onListboxSelect();
|
||||
}
|
||||
|
||||
// add accessibility shortcuts (single-click / double-click / return)
|
||||
for (var i = 0; i < gSessionList.childNodes.length; i++)
|
||||
{
|
||||
gSessionList.childNodes[i].setAttribute("ondblclick", "if (event.button == 0 && !event.ctrlKey && !event.shiftKey && !event.altKey) gAcceptButton.doCommand();");
|
||||
if (gTextBox && !(gParams.GetInt(1) & 256))
|
||||
{
|
||||
gSessionList.childNodes[i].setAttribute("onclick", "if (event.button == 0 && !event.ctrlKey && !event.shiftKey && !event.altKey) onTextboxInput(gSessionList.childNodes[gSessionList.selectedIndex].label);");
|
||||
}
|
||||
}
|
||||
if (gTextBox)
|
||||
{
|
||||
gSessionList.setAttribute("onkeypress", "if (event.keyCode == event.DOM_VK_RETURN && this.selectedIndex > -1) { event.button = 0; eval(this.selectedItem.getAttribute('onclick')); event.preventDefault(); }");
|
||||
}
|
||||
|
||||
if (gSessionList.hasAttribute("height"))
|
||||
{
|
||||
gSessionList.height = gSessionList.getAttribute("height");
|
||||
}
|
||||
if (!window.opener)
|
||||
{
|
||||
document.documentElement.removeAttribute("screenX");
|
||||
document.documentElement.removeAttribute("screenY");
|
||||
}
|
||||
window.sizeToContent();
|
||||
|
||||
gParams.SetInt(0, 1);
|
||||
};
|
||||
|
||||
gSessionManager.onUnload = function() {
|
||||
function persist(aObj, aAttr, aValue)
|
||||
{
|
||||
aObj.setAttribute(aAttr, aValue);
|
||||
document.persist(aObj.id, aAttr);
|
||||
}
|
||||
|
||||
if (window.opener)
|
||||
{
|
||||
persist(document.documentElement, "screenX", window.screenX - window.opener.screenX);
|
||||
persist(document.documentElement, "screenY", window.screenY - window.opener.screenY);
|
||||
}
|
||||
persist(gSessionList, "height", gSessionList.boxObject.height);
|
||||
|
||||
gParams.SetInt(1, (_("checkbox").checked)?1:0);
|
||||
};
|
||||
|
||||
function onListboxSelect()
|
||||
{
|
||||
if (!gTextBox)
|
||||
{
|
||||
gAcceptButton.disabled = gSessionList.selectedCount == 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
onTextboxInput();
|
||||
}
|
||||
}
|
||||
|
||||
function onTextboxInput(aNewValue)
|
||||
{
|
||||
if (aNewValue)
|
||||
{
|
||||
gTextBox.value = aNewValue;
|
||||
setTimeout(function() { gTextBox.select(); gTextBox.focus(); }, 0);
|
||||
}
|
||||
|
||||
var input = gTextBox.value.trim().toLowerCase();
|
||||
var oldWeight = !!gAcceptButton.style.fontWeight;
|
||||
|
||||
gExistingName = gSessionNames[input] || 0;
|
||||
var newWeight = gExistingName || ((gParams.GetInt(1) & 256) && gSessionList.selectedCount > 0);
|
||||
|
||||
if (!gNeedSelection && oldWeight != newWeight)
|
||||
{
|
||||
gAcceptButton.label = (newWeight)?gParams.GetString(5):gParams.GetString(2);
|
||||
gAcceptButton.style.fontWeight = (newWeight)?"bold":"";
|
||||
}
|
||||
gAcceptButton.disabled = !input || gNeedSelection && (gSessionList.selectedCount == 0 || gExistingName);
|
||||
}
|
||||
|
||||
function onAcceptDialog()
|
||||
{
|
||||
gParams.SetInt(0, 0);
|
||||
if (gNeedSelection || ((gParams.GetInt(1) & 256) && gSessionList.selectedCount > 0))
|
||||
{
|
||||
gParams.SetString(3, gSessionList.selectedItems.map(function(aItem) { return aItem.value || ""; }).join("\n"));
|
||||
}
|
||||
else if (gExistingName)
|
||||
{
|
||||
gParams.SetString(3, gSessionList.childNodes[gExistingName - 1].value);
|
||||
}
|
||||
else
|
||||
{
|
||||
gParams.SetString(3, "");
|
||||
}
|
||||
gParams.SetString(6, _("text_box").value.trim());
|
||||
}
|
||||
|
||||
String.prototype.trim = function() {
|
||||
return this.replace(/^\s+|\s+$/g, "").replace(/\s+/g, " ");
|
||||
};
|
||||
|
||||
function setDescription(aObj, aValue)
|
||||
{
|
||||
aValue.split("\n").forEach(function(aLine) {
|
||||
aObj.appendChild(document.createElement("description")).setAttribute("value", aLine);
|
||||
});
|
||||
}
|
||||
|
||||
function _(aId)
|
||||
{
|
||||
return document.getElementById(aId);
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
||||
|
||||
<!DOCTYPE dialog SYSTEM "chrome://global/locale/extensions/sessionmanager/sessionmanager.dtd">
|
||||
|
||||
<dialog
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns:xhtml2="http://www.w3.org/TR/xhtml2"
|
||||
xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"
|
||||
xhtml2:role="wairole:alert"
|
||||
id="sessionmanagerPrompt"
|
||||
title="&sessionManager;"
|
||||
ondialogaccept="return onAcceptDialog();"
|
||||
style="min-width: 35em; -moz-user-focus: ignore;"
|
||||
persist="width"
|
||||
>
|
||||
<script type="application/x-javascript" src="chrome://global/content/extensions/sessionmanager/sessionmanager.js"/>
|
||||
<script type="application/x-javascript" src="chrome://global/content/extensions/sessionmanager/session_prompt.js"/>
|
||||
|
||||
<stringbundleset id="stringbundleset">
|
||||
<stringbundle id="bundle_sessionmanager" src="chrome://global/locale/extensions/sessionmanager/sessionmanager.properties"/>
|
||||
</stringbundleset>
|
||||
|
||||
<hbox flex="1">
|
||||
<hbox align="center">
|
||||
<image id="info.icon" class="spaced question-icon"/>
|
||||
</hbox>
|
||||
|
||||
<vbox flex="1">
|
||||
<label id="mac_title" value="&sessionManager;" class="dialogTitle" hidden="true"/>
|
||||
|
||||
<vbox id="session_label"/>
|
||||
<vbox flex="1">
|
||||
<listbox id="session_list" rows="3" flex="1"/>
|
||||
</vbox>
|
||||
<separator class="thin"/>
|
||||
|
||||
<vbox id="text_container" hidden="true">
|
||||
<vbox id="text_label" class="header"/>
|
||||
<textbox id="text_box" oninput="onTextboxInput();"/>
|
||||
<separator class="thin"/>
|
||||
</vbox>
|
||||
<vbox id="checkbox_container" hidden="true">
|
||||
<checkbox id="checkbox" label="&prompt.ignore.label;"/>
|
||||
</vbox>
|
||||
</vbox>
|
||||
</hbox>
|
||||
</dialog>
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,96 @@
|
||||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="chrome://global/content/extensions/sessionmanager/skin/sessionmanager.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE overlay SYSTEM "chrome://global/locale/extensions/sessionmanager/sessionmanager.dtd">
|
||||
|
||||
<overlay id="sessionmanagerOverlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
<script type="application/x-javascript" src="chrome://global/content/extensions/sessionmanager/sessionmanager.js"/>
|
||||
|
||||
<stringbundleset id="stringbundleset">
|
||||
<stringbundle id="bundle_sessionmanager" src="chrome://global/locale/extensions/sessionmanager/sessionmanager.properties"/>
|
||||
</stringbundleset>
|
||||
|
||||
<toolbarpalette id="BrowserToolbarPalette"> <!-- Firefox (toolbar) -->
|
||||
<toolbarbutton id="sessionmanager-toolbar" type="menu-button" class="toolbarbutton-1 chromeclass-toolbar-additional" label="&sessionManager;" oncommand="gSessionManager.save(null, event.shiftKey);" onclick="gSessionManager.onToolbarClick(event, this);" tooltiptext="&toolbar.tooltip;" contextmenu="">
|
||||
<menupopup onpopupshowing="gSessionManager.init(this, true);" onpopuphiding="gSessionManager.uninit(this);" onmousemove="event.stopPropagation();" onclick="event.stopPropagation();" oncommand="event.stopPropagation();">
|
||||
<menuitem label="&save.label;" accesskey="&save.accesskey;" oncommand="gSessionManager.save();"/>
|
||||
<menuitem label="&saveOne.label;" accesskey="&saveOne.accesskey;" oncommand="gSessionManager.saveWindow();"/>
|
||||
<menuseparator _id="start-separator"/>
|
||||
<menuseparator _id="separator"/>
|
||||
<menuitem label="&rename.label;" accesskey="&rename.accesskey;" oncommand="gSessionManager.rename();"/>
|
||||
<menuitem label="&remove.label;" accesskey="&remove.accesskey;" oncommand="gSessionManager.remove();"/>
|
||||
<menuitem label="&openFolder.label;" accesskey="&openFolder.accesskey;" oncommand="gSessionManager.openFolder();"/>
|
||||
<menuseparator _id="options-separator"/>
|
||||
<menuitem label="&options.label;" accesskey="&options.accesskey;" oncommand="gSessionManager.openOptions();"/>
|
||||
<menuseparator/>
|
||||
<menu _id="undo-menu" label="&undoClosed.label;" accesskey="&undoClosed.accesskey;" onpopupshowing="event.stopPropagation();" onpopuphiding="event.stopPropagation();">
|
||||
<menupopup>
|
||||
<menuitem _id="windows" label="&closedWindows;" disabled="true"/>
|
||||
<menuseparator _id="closed-separator"/>
|
||||
<menuitem _id="tabs" label="&closedTabs;" disabled="true"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
</menupopup>
|
||||
</toolbarbutton>
|
||||
|
||||
<toolbarbutton id="sessionmanager-undo" type="menu-button" class="toolbarbutton-1 chromeclass-toolbar-additional" label="&toolbar.undo.label;" oncommand="if (event.shiftKey) gSessionManager.undoCloseWindow(); else if (gSessionManager.mClosedTabs.length) gSessionManager.undoCloseTab(); else this.open = true;" onclick="gSessionManager.onToolbarClick(event, this);" tooltiptext="&toolbar.undo.tooltip;" contextmenu="">
|
||||
<menupopup onpopupshowing="gSessionManager.initUndo(this, true);" onpopuphiding="gSessionManager.uninitUndo(this);" onmousemove="event.stopPropagation();" onclick="event.stopPropagation();" oncommand="event.stopPropagation();">
|
||||
<menuitem _id="windows" label="&closedWindows;" disabled="true"/>
|
||||
<menuseparator _id="closed-separator"/>
|
||||
<menuitem _id="tabs" label="&closedTabs;" disabled="true"/>
|
||||
</menupopup>
|
||||
</toolbarbutton>
|
||||
</toolbarpalette>
|
||||
|
||||
<menupopup id="menu_ToolsPopup"> <!-- Firefox -->
|
||||
<menu id="sessionmanager-menu" label="&sessionManager;" accesskey="&toolsmenu.accesskey;" insertbefore="devToolsSeparator">
|
||||
<menupopup onpopupshowing="gSessionManager.init(this);" onpopuphiding="gSessionManager.uninit(this);">
|
||||
<menuitem label="&save.label;" accesskey="&save.accesskey;" oncommand="gSessionManager.save();"/>
|
||||
<menuitem label="&saveOne.label;" accesskey="&saveOne.accesskey;" oncommand="gSessionManager.saveWindow();"/>
|
||||
<menuseparator _id="start-separator"/>
|
||||
<menuseparator _id="separator"/>
|
||||
<menuitem label="&rename.label;" accesskey="&rename.accesskey;" oncommand="gSessionManager.rename();"/>
|
||||
<menuitem label="&remove.label;" accesskey="&remove.accesskey;" oncommand="gSessionManager.remove();"/>
|
||||
<menuitem label="&openFolder.label;" accesskey="&openFolder.accesskey;" oncommand="gSessionManager.openFolder();"/>
|
||||
<menuseparator _id="options-separator"/>
|
||||
<menuitem label="&options.label;" accesskey="&options.accesskey;" oncommand="gSessionManager.openOptions();"/>
|
||||
<menuseparator/>
|
||||
<menu _id="undo-menu" label="&undoClosed.label;" accesskey="&undoClosed.accesskey;" onpopupshowing="event.stopPropagation();" onpopuphiding="event.stopPropagation();">
|
||||
<menupopup>
|
||||
<menuitem _id="windows" label="&closedWindows;" disabled="true"/>
|
||||
<menuseparator _id="closed-separator"/>
|
||||
<menuitem _id="tabs" label="&closedTabs;" disabled="true"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
</menupopup>
|
||||
</menu>
|
||||
</menupopup>
|
||||
|
||||
<menupopup id="taskPopup"> <!-- SeaMonkey -->
|
||||
<menu id="sessionmanager-menu" label="&sessionManager;" accesskey="&toolsmenu.accesskey;" insertbefore="navBeginGlobalItems">
|
||||
<menupopup onpopupshowing="gSessionManager.init(this);" onpopuphiding="gSessionManager.uninit(this);">
|
||||
<menuitem label="&save.label;" accesskey="&save.accesskey;" oncommand="gSessionManager.save();"/>
|
||||
<menuitem label="&saveOne.label;" accesskey="&saveOne.accesskey;" oncommand="gSessionManager.saveWindow();"/>
|
||||
<menuseparator _id="start-separator"/>
|
||||
<menuseparator _id="separator"/>
|
||||
<menuitem label="&rename.label;" accesskey="&rename.accesskey;" oncommand="gSessionManager.rename();"/>
|
||||
<menuitem label="&remove.label;" accesskey="&remove.accesskey;" oncommand="gSessionManager.remove();"/>
|
||||
<menuitem label="&openFolder.label;" accesskey="&openFolder.accesskey;" oncommand="gSessionManager.openFolder();"/>
|
||||
<menuseparator _id="options-separator"/>
|
||||
<menuitem _id="resume" type="checkbox" label="&resume.label;" accesskey="&resume.accesskey;" oncommand="gSessionManager.toggleResume();"/>
|
||||
<menuitem _id="reload" type="checkbox" label="&reload.label;" accesskey="&reload.accesskey;" oncommand="gSessionManager.toggleReload();"/>
|
||||
<menuitem _id="overwrite" type="checkbox" label="&overwrite.label;" accesskey="&overwrite.accesskey;" oncommand="gSessionManager.toggleOverwrite();"/>
|
||||
<menuseparator/>
|
||||
<menu _id="undo-menu" label="&undoClosed.label;" accesskey="&undoClosed.accesskey;" onpopupshowing="event.stopPropagation();" onpopuphiding="event.stopPropagation();">
|
||||
<menupopup>
|
||||
<menuitem _id="windows" label="&closedWindows;" disabled="true"/>
|
||||
<menuseparator _id="closed-separator"/>
|
||||
<menuitem _id="tabs" label="&closedTabs;" disabled="true"/>
|
||||
<menuseparator _id="end-separator"/>
|
||||
<menuitem label="&clearList.label;" accesskey="&clearList.accesskey;" oncommand="gSessionManager.clearUndoListPrompt();"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
</menupopup>
|
||||
</menu>
|
||||
</menupopup>
|
||||
</overlay>
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
|
||||
<Seq about="urn:mozilla:skin:root">
|
||||
<li resource="urn:mozilla:skin:classic/1.0"/>
|
||||
</Seq>
|
||||
|
||||
<Description about="urn:mozilla:skin:classic/1.0">
|
||||
<chrome:packages>
|
||||
<Seq about="urn:mozilla:skin:classic/1.0:packages">
|
||||
<li resource="urn:mozilla:skin:classic/1.0:sessionmanager"/>
|
||||
</Seq>
|
||||
</chrome:packages>
|
||||
</Description>
|
||||
</RDF>
|
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
@ -0,0 +1,46 @@
|
||||
#sessionmanager-menu menuitem[_id="windows"],
|
||||
#sessionmanager-toolbar menuitem[_id="windows"],
|
||||
#sessionmanager-undo menuitem[_id="windows"],
|
||||
#sessionmanager-menu menuitem[_id="tabs"],
|
||||
#sessionmanager-toolbar menuitem[_id="tabs"],
|
||||
#sessionmanager-undo menuitem[_id="tabs"] {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
#sessionmanager-menu menuitem[marked="true"],
|
||||
#sessionmanager-toolbar menuitem[marked="true"] {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#sessionmanager-toolbar,
|
||||
#sessionmanager-undo {
|
||||
list-style-image: url("chrome://global/content/extensions/sessionmanager/skin/toolbar.png");
|
||||
}
|
||||
|
||||
#sessionmanager-toolbar {
|
||||
-moz-image-region: rect(0px, 24px, 24px, 0px);
|
||||
}
|
||||
#sessionmanager-undo {
|
||||
-moz-image-region: rect(0px, 48px, 24px, 24px);
|
||||
}
|
||||
#sessionmanager-undo[disabled="true"] {
|
||||
-moz-image-region: rect(0px, 72px, 24px, 48px);
|
||||
}
|
||||
|
||||
toolbar[iconsize="small"] #sessionmanager-toolbar {
|
||||
-moz-image-region: rect(24px, 16px, 40px, 0px);
|
||||
}
|
||||
toolbar[iconsize="small"] #sessionmanager-undo {
|
||||
-moz-image-region: rect(24px, 40px, 40px, 24px);
|
||||
}
|
||||
toolbar[iconsize="small"] #sessionmanager-undo[disabled="true"] {
|
||||
-moz-image-region: rect(24px, 64px, 40px, 48px);
|
||||
}
|
||||
|
||||
#sessionmanager-toolbar {
|
||||
list-style-image: url("chrome://global/content/extensions/sessionmanager/skin/dougeeebear.png");
|
||||
-moz-image-region: rect(8px, 56px, 32px, 32px);
|
||||
}
|
||||
toolbar[iconsize="small"] #sessionmanager-toolbar {
|
||||
-moz-image-region: rect(15px, 72px, 31px, 56px);
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 396 B |
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!DOCTYPE overlay>
|
||||
|
||||
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
<script type="application/x-javascript"><![CDATA[
|
||||
if (typeof closeWindow == "function" && /canQuitApplication/.test(closeWindow))
|
||||
{
|
||||
window.closeWindow = function(aClose) {
|
||||
if (aClose)
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
}
|
||||
]]></script>
|
||||
</overlay>
|
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
|
||||
<Seq about="urn:mozilla:locale:root">
|
||||
<li resource="urn:mozilla:locale:en-US"/>
|
||||
</Seq>
|
||||
|
||||
<Description about="urn:mozilla:locale:en-US"
|
||||
chrome:name="en-US"
|
||||
chrome:displayName="English (US)"
|
||||
chrome:author="zeniko"
|
||||
>
|
||||
<chrome:packages>
|
||||
<Seq about="urn:mozilla:locale:en-US:packages">
|
||||
<li resource="urn:mozilla:locale:en-US:sessionmanager"/>
|
||||
</Seq>
|
||||
</chrome:packages>
|
||||
</Description>
|
||||
</RDF>
|
@ -0,0 +1,60 @@
|
||||
<!ENTITY options.title "Options">
|
||||
<!ENTITY options.width "42em">
|
||||
|
||||
<!ENTITY general.caption "General">
|
||||
<!ENTITY startNend.caption "Startup & Shutdown">
|
||||
<!ENTITY resume_sess.label "At startup always load the following session:">
|
||||
<!ENTITY resume_sess.accesskey "s">
|
||||
<!ENTITY backup_sess.label "At shutdown">
|
||||
<!ENTITY backup_sess.accesskey "h">
|
||||
<!ENTITY backup_session.label0 "discard the current session">
|
||||
<!ENTITY backup_session.label1 "backup the current session">
|
||||
<!ENTITY backup_session.label2 "ask whether to backup the current session">
|
||||
|
||||
<!ENTITY restoring.caption "Session Restoring">
|
||||
<!ENTITY sessionList.caption "Session List">
|
||||
<!ENTITY orderList.label "Order the session list">
|
||||
<!ENTITY orderList.accesskey "d">
|
||||
<!ENTITY orderList.label1 "alphabetically">
|
||||
<!ENTITY orderList.label2 "oldest to newest">
|
||||
<!ENTITY orderList.label_2 "newest to oldest">
|
||||
<!ENTITY max_backup.label "Number of older (crashed) session backups to keep:">
|
||||
<!ENTITY max_backup.accesskey "N">
|
||||
|
||||
<!ENTITY undoClose.caption "Undo Close">
|
||||
<!ENTITY windowsNtabs.caption "Closed Windows & Tabs">
|
||||
<!ENTITY max_closed.label "Maximum number of remembered closed windows:">
|
||||
<!ENTITY max_closed.accesskey "w">
|
||||
<!ENTITY max_tabs.label "Maximum number of remembered closed tabs (per window):">
|
||||
<!ENTITY max_tabs.accesskey "t">
|
||||
<!ENTITY submenu.label "List all closed windows and tabs in a submenu">
|
||||
<!ENTITY submenu.accesskey "c">
|
||||
|
||||
<!ENTITY persistence.caption "Persistence">
|
||||
<!ENTITY closed_tabs.label "Restore the list of reopenable closed tabs for all windows:">
|
||||
<!ENTITY closed_tabs.accesskey "e">
|
||||
<!ENTITY closed_tabs.label0 "never">
|
||||
<!ENTITY closed_tabs.label1 "at startup">
|
||||
<!ENTITY closed_tabs.label2 "always">
|
||||
<!ENTITY window_list.label "Don't clear the list of closed windows at shutdown">
|
||||
<!ENTITY window_list.accesskey "o">
|
||||
<!ENTITY clear_list.label "Clear List">
|
||||
<!ENTITY clear_list.accesskey "r">
|
||||
|
||||
<!ENTITY advanced.caption "Advanced">
|
||||
<!ENTITY name_format.caption "Session Names">
|
||||
<!ENTITY name_format.label "Format for the suggestions of session names:">
|
||||
<!ENTITY name_format.accesskey "F">
|
||||
<!ENTITY name_format.desc "Use %t for the active tab's title, %d for today's date and %m for the time; additionally the title's length can be limited to # characters: %#t.">
|
||||
|
||||
<!ENTITY service.caption ""Crash Recovery" Settings">
|
||||
<!ENTITY service.description "Don't touch these, unless you know what you're doing:">
|
||||
<!ENTITY interval.label "Minimum time interval between two state saves (in seconds):">
|
||||
<!ENTITY interval.accesskey "i">
|
||||
<!ENTITY postdata.label "Maximum amount of POSTDATA to be stored (in bytes; -1 for all):">
|
||||
<!ENTITY postdata.accesskey "x">
|
||||
<!ENTITY privacy.label "Save sensitive data (form data, POSTDATA and cookies) for">
|
||||
<!ENTITY privacy.accesskey "v">
|
||||
<!ENTITY privacy.level0 "all sites">
|
||||
<!ENTITY privacy.level1 "unencrypted sites only">
|
||||
<!ENTITY privacy.level2 "no sites at all">
|
@ -0,0 +1,35 @@
|
||||
<!ENTITY sessionManager "Session Manager">
|
||||
<!ENTITY toolsmenu.accesskey "M">
|
||||
|
||||
<!ENTITY save.label "Save Session...">
|
||||
<!ENTITY save.accesskey "S">
|
||||
<!ENTITY saveOne.label "Save Current Window...">
|
||||
<!ENTITY saveOne.accesskey "W">
|
||||
<!ENTITY rename.label "Rename Session...">
|
||||
<!ENTITY rename.accesskey "R">
|
||||
<!ENTITY remove.label "Delete Session(s)...">
|
||||
<!ENTITY remove.accesskey "D">
|
||||
<!ENTITY openFolder.label "Open Session Folder">
|
||||
<!ENTITY openFolder.accesskey "F">
|
||||
|
||||
<!ENTITY options.label "&sessionManager; Options">
|
||||
<!ENTITY options.accesskey "O">
|
||||
<!ENTITY resume.label "Resume Current Session At Startup">
|
||||
<!ENTITY resume.accesskey "m">
|
||||
<!ENTITY reload.label "Reload All Restored Windows">
|
||||
<!ENTITY reload.accesskey "l">
|
||||
<!ENTITY overwrite.label "Replace Existing Windows">
|
||||
<!ENTITY overwrite.accesskey "p">
|
||||
|
||||
<!ENTITY undoClosed.label "Reopen Closed ...">
|
||||
<!ENTITY undoClosed.accesskey "C">
|
||||
<!ENTITY closedWindows "Closed Windows:">
|
||||
<!ENTITY closedTabs "Closed Tabs:">
|
||||
<!ENTITY clearList.label "Clear 'Closed' List...">
|
||||
<!ENTITY clearList.accesskey "C">
|
||||
|
||||
<!ENTITY toolbar.tooltip "Save the current browsing session...">
|
||||
<!ENTITY toolbar.undo.label "Undo Close">
|
||||
<!ENTITY toolbar.undo.tooltip "Reopen the most recently closed tab">
|
||||
|
||||
<!ENTITY prompt.ignore.label "Don't show this dialog again">
|
@ -0,0 +1,41 @@
|
||||
extensions.{1280606b-2510-4fe0-97ef-9b5a22eafe30}.description=Saves and restores the state of all windows.
|
||||
|
||||
sessionManager = Session Manager
|
||||
|
||||
save_session = Save the current browsing session as:
|
||||
save_window = Save the current window as:
|
||||
save2_session = Double-click an existing session to replace it:
|
||||
save_session_ok = Save Session
|
||||
save_window_ok = Save Window
|
||||
save_session_ok2 = Replace Session
|
||||
|
||||
rename_session = Which session do you want to rename?
|
||||
rename2_session = Rename that session to:
|
||||
rename_session_ok = Rename
|
||||
|
||||
remove_session = Which session(s) do you want to delete?
|
||||
remove_session_ok = Delete
|
||||
|
||||
recover_session = Your current browsing session crashed. Which session do you want to recover?
|
||||
recover_session_ok = Recover Session
|
||||
|
||||
resume_session = Which session do you want to resume?
|
||||
resume_session_ok = Resume Session
|
||||
|
||||
preserve_session = Do you want to preserve this session for resuming?
|
||||
|
||||
current_session = [ Current Browsing Session ]
|
||||
backup_session = [ Previous Browsing Session ]
|
||||
crashed_session = [ Crashed Session (%d %m) ]
|
||||
old_backup_session = [ Older Browsing Session (%d %m) ]
|
||||
|
||||
startup_none = < None (load the homepage) >
|
||||
startup_prompt = < Prompt for a session >
|
||||
startup_resume = < Previous Browsing Session >
|
||||
|
||||
untitled_window = (Untitled)
|
||||
|
||||
clear_list_prompt = Do you really want to clear the list of recently closed windows and tabs?
|
||||
|
||||
io_error = This operation failed due to a file access error:\n%S
|
||||
unknown_error = unknown error
|
@ -142,7 +142,7 @@ Show Dialog=TRUE
|
||||
;*** LOCALIZE ME BABY ***
|
||||
Title=GRE Setup - Welcome
|
||||
;*** LOCALIZE ME BABY ***
|
||||
Message0=Welcome to %s Setup. You are about to install %s version 1.0.0.0000000000.
|
||||
Message0=Welcome to %s Setup. You are about to install %s version 1.1.0.0000000000.
|
||||
;*** LOCALIZE ME BABY ***
|
||||
Message1=It is strongly recommended that you exit all Windows programs before running this Setup program.
|
||||
;*** LOCALIZE ME BABY ***
|
||||
@ -655,7 +655,7 @@ Timing=post smartupdate
|
||||
Root Key=HKEY_LOCAL_MACHINE
|
||||
Key=[REGPATH]\Uninstall
|
||||
Name=Description
|
||||
Name Value=GRE (1.0)
|
||||
Name Value=GRE (1.1)
|
||||
Type=REG_SZ
|
||||
Decrypt Key=TRUE
|
||||
Decrypt Name=FALSE
|
||||
|
@ -191,7 +191,7 @@ function registerMainKeys(winreg)
|
||||
subkey = regRootKey + "\\Uninstall";
|
||||
winreg.createKey(subkey,"");
|
||||
err = winreg.setValueString(subkey, "Uninstall Log Folder", fProgram + "Uninstall");
|
||||
err = winreg.setValueString(subkey, "Description", "GRE (1.0)");
|
||||
err = winreg.setValueString(subkey, "Description", "GRE (1.1)");
|
||||
}
|
||||
|
||||
// main
|
||||
@ -210,7 +210,7 @@ var regRootKey;
|
||||
regRootKey = new String(Install.arguments);
|
||||
|
||||
srDest = 1;
|
||||
err = initInstall("GRE", "GRE", "1.0.0.0000000000");
|
||||
err = initInstall("GRE", "GRE", "1.1.0.0000000000");
|
||||
logComment("initInstall: " + err);
|
||||
|
||||
fProgram = getFolder("Program");
|
||||
|
@ -116,7 +116,7 @@ var fileMsvcrt;
|
||||
var fileMsvcirt;
|
||||
|
||||
srDest = 1;
|
||||
err = initInstall("Mozilla XPCOM", "XPCOM", "1.0.0.0000000000");
|
||||
err = initInstall("Mozilla XPCOM", "XPCOM", "1.1.0.0000000000");
|
||||
logComment("initInstall: " + err);
|
||||
|
||||
fProgram = getFolder("Program");
|
||||
@ -137,7 +137,7 @@ if(verifyDiskSpace(fProgram, srDest))
|
||||
|
||||
upgradeCleanup();
|
||||
err = addDirectory("",
|
||||
"1.0.0.0000000000",
|
||||
"1.1.0.0000000000",
|
||||
"bin", // dir name in jar to extract
|
||||
fProgram, // Where to put this file (Returned from GetFolder)
|
||||
"", // subdir name to create relative to fProgram
|
||||
@ -156,7 +156,7 @@ if(verifyDiskSpace(fProgram, srDest))
|
||||
{
|
||||
logComment("File not found: " + fileMsvcrt);
|
||||
addFile("/Microsoft/Shared/msvcrt.dll",
|
||||
"1.0.0.0000000000",
|
||||
"1.1.0.0000000000",
|
||||
"msvcrt.dll", // dir name in jar to extract
|
||||
fWindowsSystem, // Where to put this file (Returned from getFolder)
|
||||
"", // subdir name to create relative to fProgram
|
||||
@ -178,7 +178,7 @@ if(verifyDiskSpace(fProgram, srDest))
|
||||
{
|
||||
logComment("File not found: " + fileMsvcirt);
|
||||
addFile("/Microsoft/Shared/msvcirt.dll",
|
||||
"1.0.0.0000000000",
|
||||
"1.1.0.0000000000",
|
||||
"msvcirt.dll", // dir name in jar to extract
|
||||
fWindowsSystem, // Where to put this file (Returned from getFolder)
|
||||
"", // subdir name to create relative to fProgram
|
||||
|
@ -105,12 +105,12 @@ function registerProgramFolderKey(winreg, fFolderPath)
|
||||
|
||||
subkey = "SOFTWARE\\RetroZilla\\RetroZilla";
|
||||
winreg.createKey(subkey,"");
|
||||
err = winreg.setValueString(subkey, "CurrentVersion", "1.0 (en)");
|
||||
err = winreg.setValueString(subkey, "CurrentVersion", "1.1 (en)");
|
||||
|
||||
subkey = "SOFTWARE\\RetroZilla\\RetroZilla\\1.0 (en)";
|
||||
subkey = "SOFTWARE\\RetroZilla\\RetroZilla\\1.1 (en)";
|
||||
winreg.createKey(subkey,"");
|
||||
|
||||
subkey = "SOFTWARE\\RetroZilla\\RetroZilla\\1.0 (en)\\Main";
|
||||
subkey = "SOFTWARE\\RetroZilla\\RetroZilla\\1.1 (en)\\Main";
|
||||
winreg.createKey(subkey,"");
|
||||
err = winreg.setValueString(subkey, "Program Folder Path", fFolderPath);
|
||||
}
|
||||
@ -219,7 +219,7 @@ function createShortcuts()
|
||||
}
|
||||
logComment("folderQuickLaunchExists: " + folderQuickLaunchExists);
|
||||
|
||||
subkey = "SOFTWARE\\RetroZilla\\RetroZilla\\1.0 (en)\\Main";
|
||||
subkey = "SOFTWARE\\RetroZilla\\RetroZilla\\1.1 (en)\\Main";
|
||||
fFolderPathStr = winreg.getValueString(subkey, "Program Folder Path");
|
||||
if((fFolderPathStr == "") || (fFolderPathStr == null))
|
||||
{
|
||||
@ -293,7 +293,7 @@ function createShortcuts()
|
||||
fileDelete(fFolderPath);
|
||||
}
|
||||
|
||||
subkey = "SOFTWARE\\RetroZilla\\RetroZilla\\1.0 (en)\\Setup";
|
||||
subkey = "SOFTWARE\\RetroZilla\\RetroZilla\\1.1 (en)\\Setup";
|
||||
regvalue = winreg.getValueString(subkey, "browserargs");
|
||||
|
||||
/* log this so if the user turns on turbo mode in the browser the uninstaller will undo it */
|
||||
@ -366,12 +366,12 @@ function registerMainKeys(winreg)
|
||||
|
||||
subkey = "SOFTWARE\\RetroZilla\\RetroZilla";
|
||||
winreg.createKey(subkey,"");
|
||||
err = winreg.setValueString(subkey, "CurrentVersion", "1.0 (en)");
|
||||
err = winreg.setValueString(subkey, "CurrentVersion", "1.1 (en)");
|
||||
|
||||
subkey = "SOFTWARE\\RetroZilla\\RetroZilla\\1.0 (en)";
|
||||
subkey = "SOFTWARE\\RetroZilla\\RetroZilla\\1.1 (en)";
|
||||
winreg.createKey(subkey,"");
|
||||
|
||||
subkey = "SOFTWARE\\RetroZilla\\RetroZilla\\1.0 (en)\\Main";
|
||||
subkey = "SOFTWARE\\RetroZilla\\RetroZilla\\1.1 (en)\\Main";
|
||||
winreg.createKey(subkey,"");
|
||||
|
||||
err = winreg.setValueString(subkey, "Install Directory", fProgram);
|
||||
@ -379,20 +379,20 @@ function registerMainKeys(winreg)
|
||||
// The following keys are required to be created to supply information
|
||||
// about the location of the Gecko Embedded Client to 3rd party apps.
|
||||
// "SOFTWARE\\Mozilla" must not be localized!
|
||||
subkey = "SOFTWARE\\Mozilla\\RetroZilla 1.0";
|
||||
subkey = "SOFTWARE\\Mozilla\\RetroZilla 1.1";
|
||||
winreg.createKey(subkey,"");
|
||||
err = winreg.setValueString(subkey, "GeckoVer", "$GreVersion$");
|
||||
|
||||
subkey = "SOFTWARE\\Mozilla\\RetroZilla 1.0\\Extensions";
|
||||
subkey = "SOFTWARE\\Mozilla\\RetroZilla 1.1\\Extensions";
|
||||
winreg.createKey(subkey,"");
|
||||
err = winreg.setValueString(subkey, "Components", fProgram + "Components");
|
||||
err = winreg.setValueString(subkey, "Plugins", fProgram + "Plugins");
|
||||
|
||||
subkey = "SOFTWARE\\Mozilla\\RetroZilla 1.0\\bin";
|
||||
subkey = "SOFTWARE\\Mozilla\\RetroZilla 1.1\\bin";
|
||||
winreg.createKey(subkey,"");
|
||||
err = winreg.setValueString(subkey, "PathToExe", fProgram + "RetroZilla.exe");
|
||||
|
||||
subkey = "SOFTWARE\\RetroZilla\\RetroZilla\\1.0 (en)\\Main";
|
||||
subkey = "SOFTWARE\\RetroZilla\\RetroZilla\\1.1 (en)\\Main";
|
||||
err = winreg.setValueString(subkey, "PathToExe", fProgram + "RetroZilla.exe");
|
||||
|
||||
// Register as a windows XP internet browser
|
||||
@ -416,7 +416,7 @@ function registerMainKeys(winreg)
|
||||
data = "\"" + fProgram + "RetroZilla.exe\"";
|
||||
winreg.setValueString(subkey + "\\shell\\open\\command", "", data);
|
||||
|
||||
data = "\"" + fProgram + "uninstall\\retrozillaUninstall.exe\" /ua \"1.0 (en)\" /hs browser";
|
||||
data = "\"" + fProgram + "uninstall\\retrozillaUninstall.exe\" /ua \"1.1 (en)\" /hs browser";
|
||||
winreg.setValueString(subkey + "\\InstallInfo", "HideIconsCommand", data);
|
||||
|
||||
winreg.setValueNumber(subkey + "\\InstallInfo", "IconsVisible", 1);
|
||||
@ -424,7 +424,7 @@ function registerMainKeys(winreg)
|
||||
data = "\"" + fProgram + "RetroZilla.exe\" -silent -nosplash -setDefaultBrowser ";
|
||||
winreg.setValueString(subkey + "\\InstallInfo", "ReinstallCommand", data);
|
||||
|
||||
data = "\"" + fProgram + "uninstall\\retrozillaUninstall.exe\" /ua \"1.0 (en)\" /ss browser";
|
||||
data = "\"" + fProgram + "uninstall\\retrozillaUninstall.exe\" /ua \"1.1 (en)\" /ss browser";
|
||||
winreg.setValueString(subkey + "\\InstallInfo", "ShowIconsCommand", data);
|
||||
}
|
||||
}
|
||||
@ -725,7 +725,7 @@ if(args == "-greLocal")
|
||||
gGreLocal = true;
|
||||
|
||||
srDest = 1;
|
||||
err = initInstall("RetroZilla", "Browser", "1.0.0.0000000000");
|
||||
err = initInstall("RetroZilla", "Browser", "1.1.0.0000000000");
|
||||
logComment("initInstall: " + err);
|
||||
|
||||
fProgram = getFolder("Program");
|
||||
@ -738,7 +738,7 @@ if(verifyDiskSpace(fProgram, srDest))
|
||||
|
||||
upgradeCleanup();
|
||||
err = addDirectory("",
|
||||
"1.0.0.0000000000",
|
||||
"1.1.0.0000000000",
|
||||
"bin", // dir name in jar to extract
|
||||
fProgram, // Where to put this file (Returned from GetFolder)
|
||||
"", // subdir name to create relative to fProgram
|
||||
@ -830,7 +830,7 @@ if(verifyDiskSpace(fProgram, srDest))
|
||||
if (! ('buildID' in Install))
|
||||
{
|
||||
logComment("Running Pre-Mozilla 0.9.1");
|
||||
initInstall("Post-install Cleanup Utility", "Browser/xpicleanup", "1.0.0.0000000000");
|
||||
initInstall("Post-install Cleanup Utility", "Browser/xpicleanup", "1.1.0.0000000000");
|
||||
cleanupUtility = getFolder(fProgram, "xpicleanup.exe");
|
||||
err = File.execute(cleanupUtility);
|
||||
logComment("execute() returned: " + err);
|
||||
|
@ -95,7 +95,7 @@ function getPlatform()
|
||||
return platformNode;
|
||||
}
|
||||
|
||||
var err = initInstall("Chatzilla v0.5", "Chatzilla", "1.0.0.0000000000");
|
||||
var err = initInstall("Chatzilla v0.5", "Chatzilla", "1.1.0.0000000000");
|
||||
logComment("initInstall: " + err);
|
||||
|
||||
addFile("Chatzilla service",
|
||||
|
@ -10,7 +10,7 @@ Run Mode=Normal
|
||||
Company Name=RetroZilla
|
||||
Product Name=RetroZilla
|
||||
Product NameInternal=RetroZilla
|
||||
User Agent=1.0 (en)
|
||||
User Agent=1.1 (en)
|
||||
|
||||
; Destination Path values:
|
||||
; PROGRAMFILESDIR
|
||||
@ -188,7 +188,7 @@ Show Dialog=TRUE
|
||||
;*** LOCALIZE ME BABY ***
|
||||
Title=RetroZilla Setup - Welcome
|
||||
;*** LOCALIZE ME BABY ***
|
||||
Message0=Welcome to %s Setup. You are about to install %s version 1.0.0.0000000000.
|
||||
Message0=Welcome to %s Setup. You are about to install %s version 1.1.0.0000000000.
|
||||
;*** LOCALIZE ME BABY ***
|
||||
Message1=It is strongly recommended that you exit all Windows programs before running this Setup program.
|
||||
;*** LOCALIZE ME BABY ***
|
||||
@ -618,7 +618,7 @@ Install Size System=1
|
||||
Install Size Archive=1
|
||||
Attributes=SELECTED|UNCOMPRESS|SUPERSEDE|LAUNCHAPP|INVISIBLE
|
||||
;*** LOCALIZE ME BABY ***
|
||||
Parameter=-mmi -ms -app "RetroZilla 1.0 (en)" -app_path "[SETUP PATH]\RetroZilla.exe"
|
||||
Parameter=-mmi -ms -app "RetroZilla 1.1 (en)" -app_path "[SETUP PATH]\RetroZilla.exe"
|
||||
SupersedeType=GRE
|
||||
SupersedeWinReg0=HKEY_LOCAL_MACHINE\Software\mozilla.org\GRE
|
||||
SupersedeVersion0=0.0.0.0
|
||||
@ -1025,7 +1025,7 @@ Timing=pre smartupdate
|
||||
[Windows Registry2]
|
||||
Root Key=HKEY_LOCAL_MACHINE
|
||||
;*** LOCALIZE ME BABY ***
|
||||
Key=Software\RetroZilla\RetroZilla\1.0 (en)
|
||||
Key=Software\RetroZilla\RetroZilla\1.1 (en)
|
||||
Name=
|
||||
Name Value=
|
||||
Type=REG_SZ
|
||||
@ -1039,7 +1039,7 @@ Timing=pre smartupdate
|
||||
[Windows Registry3]
|
||||
Root Key=HKEY_LOCAL_MACHINE
|
||||
;*** LOCALIZE ME BABY ***
|
||||
Key=Software\RetroZilla\RetroZilla\1.0 (en)\Main
|
||||
Key=Software\RetroZilla\RetroZilla\1.1 (en)\Main
|
||||
Name=Program Folder Path
|
||||
Name Value=[Default Folder]
|
||||
Type=REG_SZ
|
||||
@ -1053,9 +1053,9 @@ Timing=pre smartupdate
|
||||
[Windows Registry4]
|
||||
Root Key=HKEY_LOCAL_MACHINE
|
||||
;*** LOCALIZE ME BABY ***
|
||||
Key=Software\RetroZilla\RetroZilla\1.0 (en)\Uninstall
|
||||
Key=Software\RetroZilla\RetroZilla\1.1 (en)\Uninstall
|
||||
Name=Description
|
||||
Name Value=RetroZilla (1.0)
|
||||
Name Value=RetroZilla (1.1)
|
||||
Type=REG_SZ
|
||||
Decrypt Key=FALSE
|
||||
Decrypt Name=FALSE
|
||||
@ -1067,7 +1067,7 @@ Timing=pre smartupdate
|
||||
[Windows Registry5]
|
||||
Root Key=HKEY_LOCAL_MACHINE
|
||||
;*** LOCALIZE ME BABY ***
|
||||
Key=Software\RetroZilla\RetroZilla\1.0 (en)\Uninstall
|
||||
Key=Software\RetroZilla\RetroZilla\1.1 (en)\Uninstall
|
||||
Name=Uninstall Log Folder
|
||||
Name Value=[SETUP PATH]\uninstall
|
||||
Type=REG_SZ
|
||||
@ -1109,7 +1109,7 @@ Timing=pre smartupdate
|
||||
[Windows Registry8]
|
||||
Root Key=HKEY_CURRENT_USER
|
||||
;*** LOCALIZE ME BABY ***
|
||||
Key=Software\RetroZilla\RetroZilla\1.0 (en)
|
||||
Key=Software\RetroZilla\RetroZilla\1.1 (en)
|
||||
Name=
|
||||
Name Value=
|
||||
Type=REG_SZ
|
||||
@ -1123,7 +1123,7 @@ Timing=pre smartupdate
|
||||
[Windows Registry9]
|
||||
Root Key=HKEY_CURRENT_USER
|
||||
;*** LOCALIZE ME BABY ***
|
||||
Key=Software\RetroZilla\RetroZilla\1.0 (en)\Main
|
||||
Key=Software\RetroZilla\RetroZilla\1.1 (en)\Main
|
||||
Name=Program Folder Path
|
||||
Name Value=[Default Folder]
|
||||
Type=REG_SZ
|
||||
@ -1137,9 +1137,9 @@ Timing=pre smartupdate
|
||||
[Windows Registry10]
|
||||
Root Key=HKEY_CURRENT_USER
|
||||
;*** LOCALIZE ME BABY ***
|
||||
Key=Software\RetroZilla\RetroZilla\1.0 (en)\Uninstall
|
||||
Key=Software\RetroZilla\RetroZilla\1.1 (en)\Uninstall
|
||||
Name=Description
|
||||
Name Value=RetroZilla (1.0)
|
||||
Name Value=RetroZilla (1.1)
|
||||
Type=REG_SZ
|
||||
Decrypt Key=FALSE
|
||||
Decrypt Name=FALSE
|
||||
@ -1151,7 +1151,7 @@ Timing=pre smartupdate
|
||||
[Windows Registry11]
|
||||
Root Key=HKEY_CURRENT_USER
|
||||
;*** LOCALIZE ME BABY ***
|
||||
Key=Software\RetroZilla\RetroZilla\1.0 (en)\Uninstall
|
||||
Key=Software\RetroZilla\RetroZilla\1.1 (en)\Uninstall
|
||||
Name=Uninstall Log Folder
|
||||
Name Value=[SETUP PATH]\uninstall
|
||||
Type=REG_SZ
|
||||
@ -1164,9 +1164,9 @@ Timing=pre smartupdate
|
||||
|
||||
[Windows Registry12]
|
||||
Root Key=HKEY_LOCAL_MACHINE
|
||||
Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\RetroZilla (1.0)
|
||||
Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\RetroZilla (1.1)
|
||||
Name=DisplayName
|
||||
Name Value=RetroZilla (1.0)
|
||||
Name Value=RetroZilla (1.1)
|
||||
Type=REG_SZ
|
||||
Decrypt Key=FALSE
|
||||
Decrypt Name=FALSE
|
||||
@ -1177,10 +1177,10 @@ Timing=post smartupdate
|
||||
|
||||
[Windows Registry13]
|
||||
Root Key=HKEY_LOCAL_MACHINE
|
||||
Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\RetroZilla (1.0)
|
||||
Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\RetroZilla (1.1)
|
||||
Name=UninstallString
|
||||
;*** LOCALIZE ME BABY ***
|
||||
Name Value=[WINDIR]\retrozillaUninstall.exe /ua "1.0 (en)"
|
||||
Name Value=[WINDIR]\retrozillaUninstall.exe /ua "1.1 (en)"
|
||||
Type=REG_SZ
|
||||
Decrypt Key=FALSE
|
||||
Decrypt Name=FALSE
|
||||
@ -1208,12 +1208,12 @@ Timing=pre smartupdate
|
||||
Reg Key Root0=HKEY_LOCAL_MACHINE
|
||||
Product Name0=RetroZilla
|
||||
Product Reg Key0=Software\RetroZilla\RetroZilla
|
||||
Current Version0=1.0 (en)
|
||||
Current Version0=1.1 (en)
|
||||
|
||||
Reg Key Root1=HKEY_CURRENT_USER
|
||||
Product Name1=RetroZilla
|
||||
Product Reg Key1=Software\RetroZilla\RetroZilla
|
||||
Current Version1=1.0 (en)
|
||||
Current Version1=1.1 (en)
|
||||
|
||||
|
||||
|
||||
@ -1249,7 +1249,7 @@ Program Folder=[Default Folder]
|
||||
|
||||
[Program Folder0-Shortcut0]
|
||||
File=[SETUP PATH]\uninstall\retrozillaUninstall.exe
|
||||
Arguments=/ua "1.0 (en)"
|
||||
Arguments=/ua "1.1 (en)"
|
||||
Working Dir=[SETUP PATH]
|
||||
Description=Uninstall RetroZilla
|
||||
Icon Path=[SETUP PATH]\uninstall\retrozillaUninstall.exe
|
||||
|
@ -106,7 +106,7 @@ var regName = "defaults/mozilla/en-US";
|
||||
// --- END CHANGABLE STUFF ---
|
||||
|
||||
srDest = 1;
|
||||
err = initInstall(prettyName, regName, "1.0.0.0000000000");
|
||||
err = initInstall(prettyName, regName, "1.1.0.0000000000");
|
||||
logComment("initInstall: " + err);
|
||||
|
||||
fProgram = getFolder("Program");
|
||||
@ -117,7 +117,7 @@ if(verifyDiskSpace(fProgram, srDest))
|
||||
setPackageFolder(fProgram);
|
||||
|
||||
err = addDirectory("",
|
||||
"1.0.0.0000000000",
|
||||
"1.1.0.0000000000",
|
||||
"bin", // dir name in jar to extract
|
||||
fProgram, // Where to put this file (Returned from GetFolder)
|
||||
"", // subdir name to create relative to fProgram
|
||||
|
@ -95,13 +95,13 @@ function getPlatform()
|
||||
return platformNode;
|
||||
}
|
||||
|
||||
var err = initInstall("DOM Inspector", "Inspector", "1.0.0.0000000000");
|
||||
var err = initInstall("DOM Inspector", "Inspector", "1.1.0.0000000000");
|
||||
logComment("initInstall: " + err);
|
||||
|
||||
var fProgram = getFolder("Program");
|
||||
logComment("fProgram: " + fProgram);
|
||||
|
||||
err = addDirectory("", "1.0.0.0000000000", "bin", fProgram, "", true);
|
||||
err = addDirectory("", "1.1.0.0000000000", "bin", fProgram, "", true);
|
||||
logComment("addDirectory: " + err);
|
||||
|
||||
addFile("Inspector Command Line Handler",
|
||||
|
@ -117,7 +117,7 @@ var platformName = langcode + "-" + platformNode + ".jar";
|
||||
var localeName = "locale/" + chromeNode + "/";
|
||||
|
||||
srDest = 1;
|
||||
err = initInstall(prettyName, regName, "1.0.0.0000000000");
|
||||
err = initInstall(prettyName, regName, "1.1.0.0000000000");
|
||||
logComment("initInstall: " + err);
|
||||
|
||||
fProgram = getFolder("Program");
|
||||
|
@ -128,12 +128,12 @@ function registerProgramFolderKey(winreg, fFolderPath)
|
||||
|
||||
subkey = "SOFTWARE\\RetroZilla\\RetroZilla";
|
||||
winreg.createKey(subkey,"");
|
||||
err = winreg.setValueString(subkey, "CurrentVersion", "1.0 (en)");
|
||||
err = winreg.setValueString(subkey, "CurrentVersion", "1.1 (en)");
|
||||
|
||||
subkey = "SOFTWARE\\RetroZilla\\RetroZilla\\1.0 (en)";
|
||||
subkey = "SOFTWARE\\RetroZilla\\RetroZilla\\1.1 (en)";
|
||||
winreg.createKey(subkey,"");
|
||||
|
||||
subkey = "SOFTWARE\\RetroZilla\\RetroZilla\\1.0 (en)\\Main";
|
||||
subkey = "SOFTWARE\\RetroZilla\\RetroZilla\\1.1 (en)\\Main";
|
||||
winreg.createKey(subkey,"");
|
||||
err = winreg.setValueString(subkey, "Program Folder Path", fFolderPath);
|
||||
}
|
||||
@ -256,7 +256,7 @@ function createShortcuts()
|
||||
}
|
||||
logComment("folderQuickLaunchExists: " + folderQuickLaunchExists);
|
||||
|
||||
subkey = "SOFTWARE\\RetroZilla\\RetroZilla\\1.0 (en)\\Main";
|
||||
subkey = "SOFTWARE\\RetroZilla\\RetroZilla\\1.1 (en)\\Main";
|
||||
fFolderPathStr = winreg.getValueString(subkey, "Program Folder Path");
|
||||
if((fFolderPathStr == "") || (fFolderPathStr == null))
|
||||
{
|
||||
@ -351,7 +351,7 @@ function createShortcuts()
|
||||
data = "\"" + fProgram + "RetroZilla.exe\" -mail";
|
||||
winreg.setValueString(subkey + "\\shell\\open\\command", "", data);
|
||||
|
||||
data = "\"" + fProgram + "uninstall\\retrozillaUninstall.exe\" /ua \"1.0 (en)\" /hs mail";
|
||||
data = "\"" + fProgram + "uninstall\\retrozillaUninstall.exe\" /ua \"1.1 (en)\" /hs mail";
|
||||
winreg.setValueString(subkey + "\\InstallInfo", "HideIconsCommand", data);
|
||||
|
||||
// set this value to 0 because we're not creating the mail shortcuts yet.
|
||||
@ -360,7 +360,7 @@ function createShortcuts()
|
||||
data = "\"" + fProgram + "RetroZilla.exe\" -silent -nosplash -setDefaultMail";
|
||||
winreg.setValueString(subkey + "\\InstallInfo", "ReinstallCommand", data);
|
||||
|
||||
data = "\"" + fProgram + "uninstall\\retrozillaUninstall.exe\" /ua \"1.0 (en)\" /ss mail";
|
||||
data = "\"" + fProgram + "uninstall\\retrozillaUninstall.exe\" /ua \"1.1 (en)\" /ss mail";
|
||||
winreg.setValueString(subkey + "\\InstallInfo", "ShowIconsCommand", data);
|
||||
}
|
||||
}
|
||||
@ -407,7 +407,7 @@ function updateMapi()
|
||||
// uninstaller already has a special way to deal with restoring the
|
||||
// appropriate previous Mapi32.dll.
|
||||
addFile("",
|
||||
"1.0.0.0000000000",
|
||||
"1.1.0.0000000000",
|
||||
"bin/mozMapi32.dll", // file name in jar to extract
|
||||
getFolder("Win System"), // Where to put this file (Returned from getFolder)
|
||||
"Mapi32.dll", // new name when installed
|
||||
@ -473,7 +473,7 @@ var err;
|
||||
var fProgram;
|
||||
|
||||
srDest = 1;
|
||||
err = initInstall("RetroZilla Mail", "Mail", "1.0.0.0000000000");
|
||||
err = initInstall("RetroZilla Mail", "Mail", "1.1.0.0000000000");
|
||||
logComment("initInstall: " + err);
|
||||
|
||||
fProgram = getFolder("Program");
|
||||
@ -485,7 +485,7 @@ if(verifyDiskSpace(fProgram, srDest))
|
||||
|
||||
upgradeCleanup();
|
||||
err = addDirectory("",
|
||||
"1.0.0.0000000000",
|
||||
"1.1.0.0000000000",
|
||||
"bin", // dir name in jar to extract
|
||||
fProgram, // Where to put this file (Returned from GetFolder)
|
||||
"", // subdir name to create relative to fProgram
|
||||
|
@ -112,7 +112,7 @@ var chromeName = chromeNode + ".jar";
|
||||
var localeName = "locale/" + chromeNode + "/";
|
||||
|
||||
srDest = 1;
|
||||
err = initInstall(prettyName, regName, "1.0.0.0000000000");
|
||||
err = initInstall(prettyName, regName, "1.1.0.0000000000");
|
||||
logComment("initInstall: " + err);
|
||||
|
||||
if (platformNode == 'mac')
|
||||
|
@ -95,7 +95,7 @@ function getPlatform()
|
||||
return platformNode;
|
||||
}
|
||||
|
||||
var err = initInstall("Website Reporter", "Reporter", "1.0.0.0000000000");
|
||||
var err = initInstall("Website Reporter", "Reporter", "1.1.0.0000000000");
|
||||
logComment("initInstall: " + err);
|
||||
|
||||
var fProgram = getFolder("Program");
|
||||
@ -104,7 +104,7 @@ var srDest = 1;
|
||||
|
||||
if (verifyDiskSpace(fProgram, srDest))
|
||||
{
|
||||
err = addDirectory("", "1.0.0.0000000000", "bin", fProgram, "", true);
|
||||
err = addDirectory("", "1.1.0.0000000000", "bin", fProgram, "", true);
|
||||
logComment("addDirectory: " + err);
|
||||
|
||||
var jarFolder = getFolder("Chrome", "reporter.jar");
|
||||
|
@ -97,7 +97,7 @@ function getPlatform()
|
||||
|
||||
var srDest = 1;
|
||||
|
||||
var err = initInstall("RetroZilla Myspell Spellchecker", "Spellchecker", "1.0.0.0000000000");
|
||||
var err = initInstall("RetroZilla Myspell Spellchecker", "Spellchecker", "1.1.0.0000000000");
|
||||
logComment("initInstall: " + err);
|
||||
|
||||
fProgram = getFolder("Program");
|
||||
@ -108,7 +108,7 @@ if (verifyDiskSpace(fProgram, srDest))
|
||||
setPackageFolder(fProgram);
|
||||
|
||||
addDirectory("Spellchecker",
|
||||
"1.0.0.0000000000",
|
||||
"1.1.0.0000000000",
|
||||
"bin",
|
||||
fProgram,
|
||||
"");
|
||||
|
@ -95,13 +95,13 @@ function getPlatform()
|
||||
return platformNode;
|
||||
}
|
||||
|
||||
var err = initInstall("SRoaming v0.1", "Roaming", "1.0.0.0000000000");
|
||||
var err = initInstall("SRoaming v0.1", "Roaming", "1.1.0.0000000000");
|
||||
logComment("initInstall: " + err);
|
||||
|
||||
var fProgram = getFolder("Program");
|
||||
logComment("fProgram: " + fProgram);
|
||||
|
||||
err = addDirectory("", "1.0.0.0000000000", "bin", fProgram, "", true);
|
||||
err = addDirectory("", "1.1.0.0000000000", "bin", fProgram, "", true);
|
||||
logComment("addDirectory: " + err);
|
||||
|
||||
addFile("SRoaming Chrome",
|
||||
|
@ -108,7 +108,7 @@ var err;
|
||||
var communicatorFolder;
|
||||
|
||||
srDest = 1;
|
||||
err = initInstall("Quality Feedback Utility", "Quality Feedback Utility", "1.0.0.0000000000");
|
||||
err = initInstall("Quality Feedback Utility", "Quality Feedback Utility", "1.1.0.0000000000");
|
||||
logComment("initInstall: " + err);
|
||||
|
||||
communicatorFolder = getFolder("Communicator");
|
||||
@ -120,7 +120,7 @@ if(verifyDiskSpace(communicatorFolder, srDest))
|
||||
|
||||
upgradeCleanup();
|
||||
err = addDirectory("",
|
||||
"1.0.0.0000000000",
|
||||
"1.1.0.0000000000",
|
||||
"bin", // dir name in jar to extract
|
||||
communicatorFolder, // Where to put this file (Returned from getFolder)
|
||||
"", // subdir name to create relative to communicatorFolder
|
||||
|
@ -95,7 +95,7 @@ function getPlatform()
|
||||
return platformNode;
|
||||
}
|
||||
|
||||
var err = initInstall("JavaScript Debugger", "Venkman", "1.0.0.0000000000");
|
||||
var err = initInstall("JavaScript Debugger", "Venkman", "1.1.0.0000000000");
|
||||
logComment("initInstall: " + err);
|
||||
|
||||
addFile("Venkman Service",
|
||||
|
@ -116,7 +116,7 @@ var fileMsvcrt;
|
||||
var fileMsvcirt;
|
||||
|
||||
srDest = 1;
|
||||
err = initInstall("Mozilla XPCOM", "XPCOM", "1.0.0.0000000000");
|
||||
err = initInstall("Mozilla XPCOM", "XPCOM", "1.1.0.0000000000");
|
||||
logComment("initInstall: " + err);
|
||||
|
||||
fProgram = getFolder("Program");
|
||||
@ -137,7 +137,7 @@ if(verifyDiskSpace(fProgram, srDest))
|
||||
|
||||
upgradeCleanup();
|
||||
err = addDirectory("",
|
||||
"1.0.0.0000000000",
|
||||
"1.1.0.0000000000",
|
||||
"bin", // dir name in jar to extract
|
||||
fProgram, // Where to put this file (Returned from GetFolder)
|
||||
"", // subdir name to create relative to fProgram
|
||||
@ -156,7 +156,7 @@ if(verifyDiskSpace(fProgram, srDest))
|
||||
{
|
||||
logComment("File not found: " + fileMsvcrt);
|
||||
addFile("/Microsoft/Shared/msvcrt.dll",
|
||||
"1.0.0.0000000000",
|
||||
"1.1.0.0000000000",
|
||||
"msvcrt.dll", // dir name in jar to extract
|
||||
fWindowsSystem, // Where to put this file (Returned from getFolder)
|
||||
"", // subdir name to create relative to fProgram
|
||||
@ -178,7 +178,7 @@ if(verifyDiskSpace(fProgram, srDest))
|
||||
{
|
||||
logComment("File not found: " + fileMsvcirt);
|
||||
addFile("/Microsoft/Shared/msvcirt.dll",
|
||||
"1.0.0.0000000000",
|
||||
"1.1.0.0000000000",
|
||||
"msvcirt.dll", // dir name in jar to extract
|
||||
fWindowsSystem, // Where to put this file (Returned from getFolder)
|
||||
"", // subdir name to create relative to fProgram
|
||||
|
Loading…
Reference in New Issue
Block a user