tweak last checkin to allow a maximum popup pref of 0

This commit is contained in:
danm-moz%comcast.net 2004-02-03 17:17:38 +00:00
Родитель db0c085744
Коммит df33b45fc1
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -3062,8 +3062,8 @@ GlobalWindowImpl::CheckForAbusePoint()
// limit the number of simultaneously open popups
intPref = 0;
gPrefBranch->GetIntPref("dom.popup_maximum", &intPref);
if (intPref > 0 && gOpenPopupSpamCount >= intPref)
nsresult gotPref = gPrefBranch->GetIntPref("dom.popup_maximum", &intPref);
if (NS_SUCCEEDED(gotPref) && intPref >= 0 && gOpenPopupSpamCount >= intPref)
return openAbuseOverride;
// is a timer running?