1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

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
This commit is contained in:
Jonas Jenwald 2024-06-20 11:51:21 +02:00
parent 94cbe9ec23
commit 02c03154b3

View file

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