diff --git a/web/pdf_thumbnail_view.js b/web/pdf_thumbnail_view.js index a85e1b4c7841b6..451a227294ac9a 100644 --- a/web/pdf_thumbnail_view.js +++ b/web/pdf_thumbnail_view.js @@ -163,13 +163,6 @@ class PDFThumbnailView { this.image?.replaceWith(this._placeholderImg); this.#updateDims(); - if (this.canvas) { - // Zeroing the width and height causes Firefox to release graphics - // resources immediately, which can greatly reduce memory consumption. - this.canvas.width = 0; - this.canvas.height = 0; - delete this.canvas; - } if (this.image) { this.image.removeAttribute("src"); delete this.image;