[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r16120: Catch another false positive crash recover case. (torbutton/trunk/src/chrome/content)



Author: mikeperry
Date: 2008-07-22 09:00:45 -0400 (Tue, 22 Jul 2008)
New Revision: 16120

Modified:
   torbutton/trunk/src/chrome/content/torbutton.js
Log:

Catch another false positive crash recover case.



Modified: torbutton/trunk/src/chrome/content/torbutton.js
===================================================================
--- torbutton/trunk/src/chrome/content/torbutton.js	2008-07-22 12:35:11 UTC (rev 16119)
+++ torbutton/trunk/src/chrome/content/torbutton.js	2008-07-22 13:00:45 UTC (rev 16120)
@@ -2110,6 +2110,10 @@
 function torbutton_do_fresh_install() 
 {
     if(m_tb_prefs.getBoolPref("extensions.torbutton.fresh_install")) {
+        // Set normal_exit, because the session store will soon run and
+        // cause us to think a crash happened
+        m_tb_prefs.setBoolPref("extensions.torbutton.normal_exit", true);
+
         if(!m_tb_prefs.getBoolPref("extensions.torbutton.tor_enabled")) {
             // Make our cookie prefs more closely match the user's 
             // so we don't change people's settings on install.