mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #16551 from Snuffleupagus/page-destroyed-complete
Ensure that `cleanup` during rendering is actually ignored, to prevent a blank canvas
This commit is contained in:
commit
877884029d
2 changed files with 8 additions and 2 deletions
|
@ -1524,7 +1524,7 @@ class PDFPageProxy {
|
|||
optionalContentConfigPromise,
|
||||
])
|
||||
.then(([transparency, optionalContentConfig]) => {
|
||||
if (this.#pendingCleanup) {
|
||||
if (this.destroyed) {
|
||||
complete();
|
||||
return;
|
||||
}
|
||||
|
@ -1727,7 +1727,7 @@ class PDFPageProxy {
|
|||
#tryCleanup(delayed = false) {
|
||||
this.#abortDelayedCleanup();
|
||||
|
||||
if (!this.#pendingCleanup) {
|
||||
if (!this.#pendingCleanup || this.destroyed) {
|
||||
return false;
|
||||
}
|
||||
if (delayed) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue