Commit efcd3a01 authored by Mike Perry's avatar Mike Perry
Browse files

Bug 5729: Remove resize calls during JS hook update

Resizing on new window creation is good enough.
parent 39c6fc27
......@@ -1520,6 +1520,7 @@ function torbutton_do_new_identity() {
obsSvc.notifyObservers(this, "net:prune-all-connections", null);
// XXX: This may not clear zoom site-specific
// browser.content.full-zoom
var cps = Cc["@mozilla.org/content-pref/service;1"].
createInstance(Ci.nsIContentPrefService);
cps.removeGroupedPrefs();
......@@ -4382,7 +4383,6 @@ function torbutton_update_tags(win, new_loc) {
// NoScript
torbutton_log(3, "Javascript changed from "+browser.docShell.allowJavascript+" to: "+js_enabled);
browser.docShell.allowJavascript = js_enabled;
torbutton_set_window_size(browser.contentWindow);
// Tag this specially, so that the next onLocationChange
// doesn't redo these hooks.
......@@ -4391,10 +4391,6 @@ function torbutton_update_tags(win, new_loc) {
// JS was not fully enabled for some page elements.
// Need to reload
browser.reload();
} else {
// We need to do the resize here as well in case the window
// was minimized during toggle...
torbutton_set_window_size(browser.contentWindow);
}
}
......
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