зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
b6827022a6
Коммит
ffa8508e7d
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче