mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 18:25:37 +02:00
Bug 1071709 - 5-30% TART / Session Restore regressions on Inbound (v.35) september 22 from rev d3a7f765152f
This commit is contained in:
parent
c8d729ff39
commit
fc3721ce2d
1 changed files with 6 additions and 3 deletions
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
/* jshint esnext:true */
|
/* jshint esnext:true */
|
||||||
/* globals Components, PdfjsContentUtils, PdfJs */
|
/* globals Components, PdfjsContentUtils, PdfJs, Services */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -24,11 +24,14 @@
|
||||||
* initializing our built-in version of pdfjs when running remote.
|
* initializing our built-in version of pdfjs when running remote.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
Components.utils.import('resource://gre/modules/Services.jsm');
|
||||||
Components.utils.import('resource://pdf.js/PdfJs.jsm');
|
Components.utils.import('resource://pdf.js/PdfJs.jsm');
|
||||||
Components.utils.import('resource://pdf.js/PdfjsContentUtils.jsm');
|
Components.utils.import('resource://pdf.js/PdfjsContentUtils.jsm');
|
||||||
|
|
||||||
// init content utils shim pdfjs will use to access privileged apis.
|
// init content utils shim pdfjs will use to access privileged apis.
|
||||||
PdfjsContentUtils.init();
|
PdfjsContentUtils.init();
|
||||||
|
|
||||||
|
if (Services.appinfo.processType === Services.appinfo.PROCESS_TYPE_CONTENT) {
|
||||||
// register various pdfjs factories that hook us into content loading.
|
// register various pdfjs factories that hook us into content loading.
|
||||||
PdfJs.updateRegistration();
|
PdfJs.updateRegistration();
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue