Merge pull request #9182 from Snuffleupagus/viewer-ignore-other-file-errors
Don't display error messages, in the default viewer, for PDF files other than the current one
This commit is contained in:
		
						commit
						c236790fb4
					
				@ -759,6 +759,10 @@ let PDFViewerApplication = {
 | 
			
		||||
    return loadingTask.promise.then((pdfDocument) => {
 | 
			
		||||
      this.load(pdfDocument);
 | 
			
		||||
    }, (exception) => {
 | 
			
		||||
      if (loadingTask !== this.pdfLoadingTask) {
 | 
			
		||||
        return; // Ignore errors for previously opened PDF files.
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      let message = exception && exception.message;
 | 
			
		||||
      let loadingErrorMessage;
 | 
			
		||||
      if (exception instanceof InvalidPDFException) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user