Fixing incorrect time unit assumption in my fix for bug 252326. Thanks to ostgote@gmx.net for spotting the problem.

This commit is contained in:
jst%mozilla.jstenback.com 2004-09-07 17:55:57 +00:00
Родитель b6827022a6
Коммит ffa8508e7d
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -4752,12 +4752,12 @@ GlobalWindowImpl::SetTimeoutOrInterval(PRBool aIsInterval, PRInt32 *aReturn)
// This timeout is *not* set from another timeout and it's set
// while popups are enabled. Propagate the state to the timeout if
// its delay (interval) is equal to or less than what
// "dom.disable_open_click_delay" is set to.
// "dom.disable_open_click_delay" is set to (in ms).
PRInt32 delay =
nsContentUtils::GetIntPref("dom.disable_open_click_delay");
if (interval <= (delay * PR_MSEC_PER_SEC)) {
if (interval <= delay) {
timeout->mPopupState = gPopupControlState;
}
}

Просмотреть файл

@ -413,7 +413,7 @@ pref("dom.allow_scripts_to_close_windows", false);
pref("dom.disable_open_during_load", false);
pref("dom.popup_maximum", 20);
pref("dom.popup_allowed_events", "change click dblclick mouseup reset submit");
pref("dom.disable_open_click_delay", 1);
pref("dom.disable_open_click_delay", 1000);
pref("dom.event.contextmenu.enabled", true);