From 02c03154b354f58e07d9bad8cf279c14a8f99b29 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Thu, 20 Jun 2024 11:51:21 +0200 Subject: [PATCH] Close `PDFFindBar` when closing the viewer during testing By closing `PDFFindBar` we also disconnect the `ResizeObserver`, since we've seen at least one case where that's running during shutdown: http://54.193.163.58:8877/91c40554d1b07c0/output.txt --- web/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/app.js b/web/app.js index f8add160bf5c7..58e6e798e5776 100644 --- a/web/app.js +++ b/web/app.js @@ -2112,6 +2112,7 @@ const PDFViewerApplication = { */ async testingClose() { this.l10n?.pause(); + this.findBar?.close(); this.unbindEvents(); this.unbindWindowEvents();