diff --git a/bower.json b/bower.json index 27fd07061..2f70715bc 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.2.28", + "version": "1.2.30", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 5c6bfb46c..c8ce3f964 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.2.28'; -PDFJS.build = '5111422'; +PDFJS.version = '1.2.30'; +PDFJS.build = '4afd51a'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -2794,6 +2794,9 @@ var WorkerTransport = (function WorkerTransportClosure() { }, this); messageHandler.on('StartRenderPage', function transportRender(data) { + if (this.destroyed) { + return; // Ignore any pending requests if the worker was terminated. + } var page = this.pageCache[data.pageIndex]; page.stats.timeEnd('Page Request'); @@ -2801,6 +2804,9 @@ var WorkerTransport = (function WorkerTransportClosure() { }, this); messageHandler.on('RenderPageChunk', function transportRender(data) { + if (this.destroyed) { + return; // Ignore any pending requests if the worker was terminated. + } var page = this.pageCache[data.pageIndex]; page._renderPageChunk(data.operatorList, data.intent); diff --git a/build/pdf.js b/build/pdf.js index c55b1b426..4b08ba126 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.2.28'; -PDFJS.build = '5111422'; +PDFJS.version = '1.2.30'; +PDFJS.build = '4afd51a'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -2847,6 +2847,9 @@ var WorkerTransport = (function WorkerTransportClosure() { }, this); messageHandler.on('StartRenderPage', function transportRender(data) { + if (this.destroyed) { + return; // Ignore any pending requests if the worker was terminated. + } var page = this.pageCache[data.pageIndex]; page.stats.timeEnd('Page Request'); @@ -2854,6 +2857,9 @@ var WorkerTransport = (function WorkerTransportClosure() { }, this); messageHandler.on('RenderPageChunk', function transportRender(data) { + if (this.destroyed) { + return; // Ignore any pending requests if the worker was terminated. + } var page = this.pageCache[data.pageIndex]; page._renderPageChunk(data.operatorList, data.intent); diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 0124774a2..0c45783d0 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.2.28'; -PDFJS.build = '5111422'; +PDFJS.version = '1.2.30'; +PDFJS.build = '4afd51a'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/package.json b/package.json index 173721fc4..c24ce0239 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.2.28", + "version": "1.2.30", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",