Ensure that we cancel any pending textLayer rendering operations when the viewer is closed (issue 7274)

This commit is contained in:
Jonas Jenwald 2016-07-29 20:51:37 +02:00
parent a824c6c4f6
commit 3904be8889
3 changed files with 24 additions and 14 deletions

View file

@ -1641,7 +1641,7 @@ function webViewerTextLayerRendered(e) {
}
//#endif
//#if (FIREFOX || MOZCENTRAL)
if (pageView.textLayer && pageView.textLayer.textDivs &&
if (pageView && pageView.textLayer && pageView.textLayer.textDivs &&
pageView.textLayer.textDivs.length > 0 &&
!PDFViewerApplication.supportsDocumentColors) {
console.error(mozL10n.get('document_colors_not_allowed', null,