Merge pull request #18302 from Snuffleupagus/testingClose-findbar-close

Close `PDFFindBar` when closing the viewer during testing
This commit is contained in:
Tim van der Meij 2024-06-20 15:55:36 +02:00 committed by GitHub
commit 1cf19e907d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2112,6 +2112,7 @@ const PDFViewerApplication = {
*/ */
async testingClose() { async testingClose() {
this.l10n?.pause(); this.l10n?.pause();
this.findBar?.close();
this.unbindEvents(); this.unbindEvents();
this.unbindWindowEvents(); this.unbindWindowEvents();