Bug 1705101 - remove now-unnecessary workarounds for bug 1699844, r=mtigley

Differential Revision: https://phabricator.services.mozilla.com/D119506
This commit is contained in:
Gijs Kruitbosch 2021-07-09 18:46:16 +00:00
parent 0990d59463
commit 37441d5977
2 changed files with 0 additions and 18 deletions

View File

@ -117,15 +117,6 @@ async function checkDialog(
);
}
// Work around https://bugzilla.mozilla.org/show_bug.cgi?id=1699844 by
// waiting before closing this prompt:
await (async function() {
let rAFCount = 3;
while (rAFCount--) {
await new Promise(requestAnimationFrame);
}
})();
// Close the prompt again.
await PromptTestUtils.handlePrompt(dialog);
// The alert in the content process was sync, we need to make sure it gets

View File

@ -159,15 +159,6 @@ function promiseAlertDialogObserved() {
Services.obs.removeObserver(observer, "common-dialog-loaded");
Services.obs.removeObserver(observer, "tabmodal-dialog-loaded");
// Work around https://bugzilla.mozilla.org/show_bug.cgi?id=1699844 by
// waiting before closing this prompt:
await (async function() {
let rAFCount = 3;
while (rAFCount--) {
await new Promise(requestAnimationFrame);
}
})();
if (subject.Dialog) {
subject.Dialog.ui.button0.click();
} else {