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

[tor-commits] [torbutton/master] Misc: Open a new browser window the official way.



commit 58dc8f145b906b4496b51208948893ab85765f6f
Author: Mike Perry <mikeperry-git@xxxxxxxxxx>
Date:   Wed May 23 18:19:37 2012 -0700

    Misc: Open a new browser window the official way.
    
    There was an issue with the 5729 fix with windows closing out from under us if
    the page load was stopped.
---
 src/chrome/content/torbutton.js |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/chrome/content/torbutton.js b/src/chrome/content/torbutton.js
index 559a754..55b2379 100644
--- a/src/chrome/content/torbutton.js
+++ b/src/chrome/content/torbutton.js
@@ -1613,9 +1613,7 @@ function torbutton_do_new_identity() {
   }
 
   // Open a new window with the TBB check homepage
-  var homepage = m_tb_prefs.getComplexValue("browser.startup.homepage",
-                       Components.interfaces.nsIPrefLocalizedString).data;
-  window.open(homepage);
+  OpenBrowserWindow();
 
   torbutton_log(3, "New identity successful");
 

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