mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #18271 from calixteman/clean_before_closing
Clean up before closing the tab in integration tests
This commit is contained in:
commit
4c041586fb
2 changed files with 11 additions and 2 deletions
|
@ -2098,7 +2098,10 @@ const PDFViewerApplication = {
|
|||
unbindWindowEvents() {
|
||||
this._windowAbortController?.abort();
|
||||
this._windowAbortController = null;
|
||||
if (AppOptions.get("isInAutomation")) {
|
||||
if (
|
||||
(typeof PDFJSDev !== "undefined" && PDFJSDev.test("TESTING")) ||
|
||||
AppOptions.get("isInAutomation")
|
||||
) {
|
||||
this._globalAbortController?.abort();
|
||||
this._globalAbortController = null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue