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:
parent
94cbe9ec23
commit
02c03154b3
1 changed files with 1 additions and 0 deletions
|
@ -2112,6 +2112,7 @@ const PDFViewerApplication = {
|
|||
*/
|
||||
async testingClose() {
|
||||
this.l10n?.pause();
|
||||
this.findBar?.close();
|
||||
|
||||
this.unbindEvents();
|
||||
this.unbindWindowEvents();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue