[tor-commits] [torbutton/master] Misc: Open a new browser window the official way.
mikeperry at torproject.org
mikeperry at torproject.org
Thu May 24 01:36:26 UTC 2012
commit 58dc8f145b906b4496b51208948893ab85765f6f
Author: Mike Perry <mikeperry-git at fscked.org>
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");
More information about the tor-commits
mailing list