Commit 7d130aaf authored by Mike Perry's avatar Mike Perry
Browse files

Bug 7255: Make maximize counter count down to 0.

parent aa74b99e
......@@ -3421,7 +3421,7 @@ var torbutton_resizelistener =
m_tb_resize_handler = function() {
if (window.windowState === 1) {
if (m_tb_prefs.
getIntPref("extensions.torbutton.maximize_warning_counter") < 3) {
getIntPref("extensions.torbutton.maximize_warnings_remaining") > 0) {
// Rate-limit showing our notification if needed.
if (m_tb_resize_date === null) {
......@@ -3452,8 +3452,8 @@ var torbutton_resizelistener =
popup: null,
callback:
function() {
m_tb_prefs.setIntPref("extensions.torbutton.maximize_warning_counter",
m_tb_prefs.getIntPref("extensions.torbutton.maximize_warning_counter") + 1);
m_tb_prefs.setIntPref("extensions.torbutton.maximize_warnings_remaining",
m_tb_prefs.getIntPref("extensions.torbutton.maximize_warnings_remaining") - 1);
}
}];
......
......@@ -118,7 +118,7 @@ pref("extensions.torbutton.prompted_language",false);
// TODO: This is just part of a stopgap until #14429 gets properly implemented.
// See #7255 for details. We display the warning three times to make sure the
// user did not click on it by accident.
pref("extensions.torbutton.maximize_warning_counter", 0);
pref("extensions.torbutton.maximize_warnings_remaining", 3);
pref("extensions.torbutton.startup_resize_period", true);
// Security prefs:
......
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