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