mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Remove the requestAnimationFrame
work-around in L10n.prototype.destroy
(PR 18313 follow-up)
With `@fluent/dom 0.10.0` just published this work-around is no longer necessary.
This commit is contained in:
parent
11cb3a8e11
commit
f676ce5760
4 changed files with 8 additions and 18 deletions
|
@ -87,13 +87,6 @@ class L10n {
|
|||
}
|
||||
this.#elements.clear();
|
||||
this.#l10n.pauseObserving();
|
||||
|
||||
// Since `disconnectRoot`/`pauseObserving` can still trigger asynchronous
|
||||
// operations, without any way to actually cancel them, attempt to
|
||||
// workaround timing issues when closing the integration-tests.
|
||||
await new Promise(resolve => {
|
||||
window.requestAnimationFrame(resolve);
|
||||
});
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue