X-Git-Url: https://git-public.kairo.at/?p=mandelbrot.git;a=blobdiff_plain;f=prefs.js;fp=prefs.js;h=2fbe1fe2349b7eb60edcc63e7d383ab5cc192965;hp=0000000000000000000000000000000000000000;hb=3fd66836e6c5fbd25dd8f90dd50914cabeb7a9a7;hpb=ad2faff87132f18ada1b47149ca76678c1289ad1 diff --git a/prefs.js b/prefs.js new file mode 100644 index 0000000..2fbe1fe --- /dev/null +++ b/prefs.js @@ -0,0 +1,53 @@ +/* ***** 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 KaiRo.at Mandelbrot, XULRunner version. + * + * The Initial Developer of the Original Code is + * Robert Kaiser . + * Portions created by the Initial Developer are Copyright (C) 2008 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Robert Kaiser + * + * Alternatively, the contents of this file may be used under the terms of + * either 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 ***** */ + +pref("toolkit.defaultChromeURI", "chrome://mandelbrot/content/mandelbrot.xul"); + +/* default prefs */ +// use TraceMonkey by default for getting fast calculations +pref("javascript.options.jit.chrome", true); +// instantly apply prefs to make sure the image settings dialog works +pref("browser.preferences.instantApply", true); +// sync image proportions in the dialog by default +pref("mandelbrot.syncProportions", true); + +/* debugging prefs */ +pref("browser.dom.window.dump.enabled", true); +pref("javascript.options.showInConsole", true); +pref("javascript.options.strict", true); +pref("nglayout.debug.disable_xul_cache", true); +pref("nglayout.debug.disable_xul_fastload", true);