mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 12:51:09 +02:00
The permission manager automatically only saves permissions for the session with private browsing principals: https://searchfox.org/mozilla-central/rev/da25888c4495585c532640f0e5efad07b1037621/extensions/permissions/PermissionManager.cpp#1586-1588 Differential Revision: https://phabricator.services.mozilla.com/D118887
13 lines
500 B
JavaScript
13 lines
500 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
"use strict";
|
|
|
|
async function waitForBlockedPopups(numberOfPopups, { doc }) {
|
|
let toolbarDoc = doc || document;
|
|
let menupopup = toolbarDoc.getElementById("blockedPopupOptions");
|
|
await BrowserTestUtils.waitForCondition(() => {
|
|
let popups = menupopup.querySelectorAll("[popupReportIndex]");
|
|
return popups.length == numberOfPopups;
|
|
}, `Waiting for ${numberOfPopups} popups`);
|
|
}
|