diff --git a/web/document_properties.js b/web/document_properties.js index 0010f10c9..25fbc8e61 100644 --- a/web/document_properties.js +++ b/web/document_properties.js @@ -74,6 +74,11 @@ var DocumentProperties = { }, getProperties: function documentPropertiesGetProperties() { + if (!this.visible) { + // If the dialog was closed before dataAvailablePromise was resolved, + // don't bother updating the properties. + return; + } // Get the file name. this.fileName = getPDFFileNameFromURL(PDFView.url);