From 040a216ea976e8d01e8b5ca5d284697d21c79125 Mon Sep 17 00:00:00 2001 From: Justin Lebar Date: Wed, 14 Mar 2012 18:49:17 -0400 Subject: [PATCH] Bug 735877 - Update syntax hints in pref files to reflect the fact that you can't use computed values (e.g. 50 * 1024). r=mossop --- browser/app/profile/firefox.js | 9 +++++++-- modules/libpref/src/init/all.js | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js index 4e3c00fe65a9..bc1f24a21259 100644 --- a/browser/app/profile/firefox.js +++ b/browser/app/profile/firefox.js @@ -39,8 +39,13 @@ #filter substitution -# SYNTAX HINTS: dashes are delimiters. Use underscores instead. -# The first character after a period must be alphabetic. +# +# SYNTAX HINTS: +# +# - Dashes are delimiters; use underscores instead. +# - The first character after a period must be alphabetic. +# - Computed values (e.g. 50 * 1024) don't work. +# #ifdef XP_UNIX #ifndef XP_MACOSX diff --git a/modules/libpref/src/init/all.js b/modules/libpref/src/init/all.js index 68b47bce24a2..40bf16bfce9d 100644 --- a/modules/libpref/src/init/all.js +++ b/modules/libpref/src/init/all.js @@ -44,8 +44,13 @@ * entries at the top. */ -// SYNTAX HINTS: dashes are delimiters. Use underscores instead. -// The first character after a period must be alphabetic. +/* + * SYNTAX HINTS: + * + * - Dashes are delimiters; use underscores instead. + * - The first character after a period must be alphabetic. + * - Computed values (e.g. 50 * 1024) don't work. + */ pref("keyword.URL", "http://www.google.com/search?ie=UTF-8&oe=utf-8&q="); pref("keyword.enabled", false);