summaryrefslogtreecommitdiffstats
path: root/application/xulrunner/app/xulrunner.js
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2018-04-20 20:11:26 -0400
committerMatt A. Tobin <email@mattatobin.com>2018-04-20 20:11:26 -0400
commit754ad610489603f80ea38bbd2cf18b28f0d8bf1d (patch)
tree9a8b4ed066d335f0817ccb60fdfa5e082322ae3f /application/xulrunner/app/xulrunner.js
parenta26cb28c9780c015694151771d649b7cec4086db (diff)
downloadUXP-754ad610489603f80ea38bbd2cf18b28f0d8bf1d.tar
UXP-754ad610489603f80ea38bbd2cf18b28f0d8bf1d.tar.gz
UXP-754ad610489603f80ea38bbd2cf18b28f0d8bf1d.tar.lz
UXP-754ad610489603f80ea38bbd2cf18b28f0d8bf1d.tar.xz
UXP-754ad610489603f80ea38bbd2cf18b28f0d8bf1d.zip
Import XULRunner and make it produce the generic stub
Diffstat (limited to 'application/xulrunner/app/xulrunner.js')
-rw-r--r--application/xulrunner/app/xulrunner.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/application/xulrunner/app/xulrunner.js b/application/xulrunner/app/xulrunner.js
new file mode 100644
index 000000000..509bb48a5
--- /dev/null
+++ b/application/xulrunner/app/xulrunner.js
@@ -0,0 +1,26 @@
+/* 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/. */
+
+#filter substitution
+
+// We need to override the default values of these preferences since all.js
+// assumes these are in the navigator package, which for us is nonexistent.
+// XXX(darin): perhaps all.js should not be seamonkey specific
+pref("general.useragent.locale", "@AB_CD@");
+pref("xpinstall.dialog.confirm", "chrome://mozapps/content/xpinstall/xpinstallConfirm.xul");
+pref("xpinstall.dialog.progress.chrome", "chrome://mozapps/content/extensions/extensions.xul");
+pref("xpinstall.dialog.progress.skin", "chrome://mozapps/content/extensions/extensions.xul");
+pref("xpinstall.dialog.progress.type.chrome", "Extension:Manager");
+pref("xpinstall.dialog.progress.type.skin", "Extension:Manager");
+pref("xpinstall.enabled", true);
+#ifdef XP_WIN
+pref("browser.preferences.instantApply", false);
+#else
+pref("browser.preferences.instantApply", true);
+#endif
+#ifdef XP_MACOSX
+pref("browser.preferences.animateFadeIn", true);
+#else
+pref("browser.preferences.animateFadeIn", false);
+#endif