Bug 234466 - Toggling syntax highlighting in Thunderbird viewsource throws an error, since we have history disabled on the browser, and wouldn't work anyway since you're not viewing source of an HTML document, r=mkmelin
authorPhil Ringnalda <philringnalda@gmail.com>
Mon, 04 May 2009 17:40:45 -0700
changeset 2551 bf8d5258553b1f8c67f211318b1a1d92a0a07f50
parent 2550 7991bb9932ca527d4b2ea92bdf50b119b0f33341
child 2552 eef20451fde63317f78c82c7d1eb9d156ccc4a44
push id2080
push userphilringnalda@gmail.com
push dateTue, 05 May 2009 00:40:51 +0000
treeherdercomm-central@bf8d5258553b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin
bugs234466
Bug 234466 - Toggling syntax highlighting in Thunderbird viewsource throws an error, since we have history disabled on the browser, and wouldn't work anyway since you're not viewing source of an HTML document, r=mkmelin
mail/app/profile/all-thunderbird.js
mail/base/content/viewSourceOverlay.xul
--- a/mail/app/profile/all-thunderbird.js
+++ b/mail/app/profile/all-thunderbird.js
@@ -325,16 +325,18 @@ pref("general.config.obscure_value", 0);
 
 pref("xpinstall.dialog.confirm", "chrome://mozapps/content/xpinstall/xpinstallConfirm.xul");
 pref("xpinstall.dialog.progress.skin", "chrome://mozapps/content/extensions/extensions.xul");
 pref("xpinstall.dialog.progress.chrome", "chrome://mozapps/content/extensions/extensions.xul");
 pref("xpinstall.dialog.progress.type.skin", "Extension:Manager"); 
 pref("xpinstall.dialog.progress.type.chrome", "Extension:Manager");
 
 pref("browser.display.auto_quality_min_font_size", 0);
+
+pref("view_source.syntax_highlight", false);
 /////////////////////////////////////////////////////////////////
 // End seamonkey suite all.js pref overrides
 ///////////////////////////////////////////////////////////////// 
 
 /////////////////////////////////////////////////////////////////
 // Generic browser related prefs. 
 /////////////////////////////////////////////////////////////////
 pref("browser.cache.memory.capacity",       4096);
--- a/mail/base/content/viewSourceOverlay.xul
+++ b/mail/base/content/viewSourceOverlay.xul
@@ -43,16 +43,17 @@
          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
   <window id="viewSource">
     <commandset id="baseMenuCommandSet"/>
     <keyset id="baseMenuKeyset"/>
     <stringbundleset id="stringbundleset"/>
   </window>
 
+  <command id="cmd_highlightSyntax" disabled="true"/>
   <menubar id="viewSource-main-menubar">
 #ifdef XP_MACOSX
     <menu id="windowMenu"/>
     <menupopup id="taskPopup"/>
 #endif
     <menu id="helpMenu"/>
   </menubar>
   <browser id="content" disablehistory="true"/>