mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
Bug 1705101 - remove now-unnecessary workarounds for bug 1699844, r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D119506
This commit is contained in:
parent
0990d59463
commit
37441d5977
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user