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

[tor-commits] [torbutton/maint-1.9.4] Bug 16725: Allow resizing with non-default homepage



commit 8efd31f48447b454de98708fa899ab7bc12f85ae
Author: Georg Koppen <gk@xxxxxxxxxxxxxx>
Date:   Fri Feb 19 09:51:18 2016 +0000

    Bug 16725: Allow resizing with non-default homepage
---
 src/chrome/content/torbutton.js | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/chrome/content/torbutton.js b/src/chrome/content/torbutton.js
index 25b61fb..bf45fea 100644
--- a/src/chrome/content/torbutton.js
+++ b/src/chrome/content/torbutton.js
@@ -1115,10 +1115,6 @@ function torbutton_on_abouttor_load(aDoc) {
     m_tb_prefs.
       setBoolPref("extensions.torbutton.show_slider_notification", false);
   }
-
-  // OS-specific window maximization on start-up should be done by now. Disable
-  // the respective preference to make sure the user is seeing our notification.
-  m_tb_prefs.setBoolPref(k_tb_tor_resize_warn_pref, false);
 }
 
 function torbutton_is_abouttor_doc(aDoc) {
@@ -3428,6 +3424,11 @@ var torbutton_resizelistener =
               setTimeout(function() {
                            resizeInnerWindowTo(width, height);
                            quantizeBrowserSize(window, 100, 100);
+                           // OS-specific window maximization on start-up should
+                           // be done by now. Disable the respective preference
+                           // to make sure the user is seeing our notification.
+                           m_tb_prefs.setBoolPref(k_tb_tor_resize_warn_pref,
+                             false);
                          }, 0);
               mut_observer.disconnect();
             }



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits