Commit 98b533c0 authored by Mike Perry's avatar Mike Perry
Browse files

Bug #4660: Clear search and find boxes on New Identity.

parent 3009ee8b
......@@ -1432,6 +1432,16 @@ function torbutton_do_new_identity() {
torbutton_close_on_toggle(true, true);
var searchBar = window.document.getElementById("searchbar");
if (searchBar)
searchBar.textbox.reset();
if (gFindBarInitialized) {
var findbox = gFindBar.getElement("findbar-textbox");
findbox.reset();
gFindBar.close();
}
if(m_tb_prefs.getBoolPref('extensions.torbutton.clear_http_auth')) {
var auth = Components.classes["@mozilla.org/network/http-auth-manager;1"].
getService(Components.interfaces.nsIHttpAuthManager);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment