async function testPopupSpamMaximum() {
// Opening a popup from an event in the allowed event list doesn’t affect the
// popup spam count.
for (var count = 0, n = 0; n < popupSpamMaximum; n++) {
sendWithUserActivation(a, eventInAllowedList, checkOpened);
}
sendWithUserActivation(a, eventInAllowedList, checkOpened);
for (var count = 0, n = 0; n < popupSpamMaximum; n++) {
sendWithUserActivation(a, eventNotInAllowedList, checkOpened);
}
sendWithUserActivation(a, eventNotInAllowedList, checkBlocked);
// Close one spam popup.
await window.open.close(1);
sendWithUserActivation(a, eventNotInAllowedList, checkOpened);
sendWithUserActivation(a, eventNotInAllowedList, checkBlocked);
// Still allow opening a popup from an event in the allowed event list even if
// the popup spam count has reached its maximum.
sendWithUserActivation(a, eventInAllowedList, checkOpened);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.