Bug 1344563 - Update pdf.js to version 1.7.348. r=bdahl
authorRyan VanderMeulen <ryanvm@gmail.com>
Sun, 05 Mar 2017 14:06:02 -0500
changeset 375060 3f78543493a2b14aaa43db417fa2085d457c94df
parent 375059 71f7cd1d842f054d2d8b6ebc4dc06b7c4ba0bc54
child 375061 8cf1aa220fc1246b7e0d1e06f8bb00afd18c46e0
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbdahl
bugs1344563
milestone54.0a1
Bug 1344563 - Update pdf.js to version 1.7.348. r=bdahl
browser/extensions/pdfjs/README.mozilla
browser/extensions/pdfjs/content/build/pdf.js
browser/extensions/pdfjs/content/build/pdf.worker.js
--- a/browser/extensions/pdfjs/README.mozilla
+++ b/browser/extensions/pdfjs/README.mozilla
@@ -1,3 +1,3 @@
 This is the pdf.js project output, https://github.com/mozilla/pdf.js
 
-Current extension version is: 1.7.337
+Current extension version is: 1.7.348
--- a/browser/extensions/pdfjs/content/build/pdf.js
+++ b/browser/extensions/pdfjs/content/build/pdf.js
@@ -3662,18 +3662,18 @@ var _UnsupportedManager = function Unsup
   },
   notify: function (featureId) {
    for (var i = 0, ii = listeners.length; i < ii; i++) {
     listeners[i](featureId);
    }
   }
  };
 }();
-exports.version = '1.7.337';
-exports.build = '9163a6fb';
+exports.version = '1.7.348';
+exports.build = '754c4bd0';
 exports.getDocument = getDocument;
 exports.PDFDataRangeTransport = PDFDataRangeTransport;
 exports.PDFWorker = PDFWorker;
 exports.PDFDocumentProxy = PDFDocumentProxy;
 exports.PDFPageProxy = PDFPageProxy;
 exports._UnsupportedManager = _UnsupportedManager;
 
 /***/ }),
@@ -4680,18 +4680,18 @@ var deprecated = sharedUtil.deprecated;
 var warn = sharedUtil.warn;
 var LinkTarget = displayDOMUtils.LinkTarget;
 var DEFAULT_LINK_REL = displayDOMUtils.DEFAULT_LINK_REL;
 var isWorker = typeof window === 'undefined';
 if (!globalScope.PDFJS) {
  globalScope.PDFJS = {};
 }
 var PDFJS = globalScope.PDFJS;
-PDFJS.version = '1.7.337';
-PDFJS.build = '9163a6fb';
+PDFJS.version = '1.7.348';
+PDFJS.build = '754c4bd0';
 PDFJS.pdfBug = false;
 if (PDFJS.verbosity !== undefined) {
  sharedUtil.setVerbosityLevel(PDFJS.verbosity);
 }
 delete PDFJS.verbosity;
 Object.defineProperty(PDFJS, 'verbosity', {
  get: function () {
   return sharedUtil.getVerbosityLevel();
@@ -7181,18 +7181,18 @@ exports.TilingPattern = TilingPattern;
 
 
 /***/ }),
 /* 14 */
 /***/ (function(module, exports, __w_pdfjs_require__) {
 
 "use strict";
 
-var pdfjsVersion = '1.7.337';
-var pdfjsBuild = '9163a6fb';
+var pdfjsVersion = '1.7.348';
+var pdfjsBuild = '754c4bd0';
 var pdfjsSharedUtil = __w_pdfjs_require__(0);
 var pdfjsDisplayGlobal = __w_pdfjs_require__(8);
 var pdfjsDisplayAPI = __w_pdfjs_require__(3);
 var pdfjsDisplayTextLayer = __w_pdfjs_require__(5);
 var pdfjsDisplayAnnotationLayer = __w_pdfjs_require__(2);
 var pdfjsDisplayDOMUtils = __w_pdfjs_require__(1);
 var pdfjsDisplaySVG = __w_pdfjs_require__(4);
 exports.PDFJS = pdfjsDisplayGlobal.PDFJS;
--- a/browser/extensions/pdfjs/content/build/pdf.worker.js
+++ b/browser/extensions/pdfjs/content/build/pdf.worker.js
@@ -37479,41 +37479,41 @@ var Page = function PageClosure() {
    return this.pageDict.get(key);
   },
   getInheritedPageProp: function Page_getInheritedPageProp(key, getArray) {
    var dict = this.pageDict, valueArray = null, loopCount = 0;
    var MAX_LOOP_COUNT = 100;
    getArray = getArray || false;
    while (dict) {
     var value = getArray ? dict.getArray(key) : dict.get(key);
-    if (value) {
+    if (value !== undefined) {
      if (!valueArray) {
       valueArray = [];
      }
      valueArray.push(value);
     }
     if (++loopCount > MAX_LOOP_COUNT) {
-     warn('Page_getInheritedPageProp: maximum loop count exceeded.');
-     break;
+     warn('getInheritedPageProp: maximum loop count exceeded for ' + key);
+     return valueArray ? valueArray[0] : undefined;
     }
     dict = dict.get('Parent');
    }
    if (!valueArray) {
-    return Dict.empty;
-   }
-   if (valueArray.length === 1 || !isDict(valueArray[0]) || loopCount > MAX_LOOP_COUNT) {
+    return undefined;
+   }
+   if (valueArray.length === 1 || !isDict(valueArray[0])) {
     return valueArray[0];
    }
    return Dict.merge(this.xref, valueArray);
   },
   get content() {
    return this.getPageProp('Contents');
   },
   get resources() {
-   return shadow(this, 'resources', this.getInheritedPageProp('Resources'));
+   return shadow(this, 'resources', this.getInheritedPageProp('Resources') || Dict.empty);
   },
   get mediaBox() {
    var mediaBox = this.getInheritedPageProp('MediaBox', true);
    if (!isArray(mediaBox) || mediaBox.length !== 4) {
     return shadow(this, 'mediaBox', LETTER_SIZE_MEDIABOX);
    }
    return shadow(this, 'mediaBox', mediaBox);
   },
@@ -41652,20 +41652,24 @@ var CFFFont = function CFFFontClosure() 
   SEAC_ANALYSIS_ENABLED = true;
  }
 }());
 (function checkChromeWindows() {
  if (typeof navigator !== 'undefined' && /Windows.*Chrome/.test(navigator.userAgent)) {
   SKIP_PRIVATE_USE_RANGE_F000_TO_F01F = true;
  }
 }());
+exports.SEAC_ANALYSIS_ENABLED = SEAC_ANALYSIS_ENABLED;
+exports.PRIVATE_USE_OFFSET_START = PRIVATE_USE_OFFSET_START;
+exports.PRIVATE_USE_OFFSET_END = PRIVATE_USE_OFFSET_END;
 exports.ErrorFont = ErrorFont;
 exports.Font = Font;
 exports.FontFlags = FontFlags;
 exports.IdentityToUnicodeMap = IdentityToUnicodeMap;
+exports.ProblematicCharRanges = ProblematicCharRanges;
 exports.ToUnicodeMap = ToUnicodeMap;
 exports.getFontType = getFontType;
 
 /***/ }),
 /* 26 */
 /***/ (function(module, exports, __w_pdfjs_require__) {
 
 "use strict";
@@ -49120,17 +49124,17 @@ exports.Type1Parser = Type1Parser;
 
 
 /***/ }),
 /* 36 */
 /***/ (function(module, exports, __w_pdfjs_require__) {
 
 "use strict";
 
-var pdfjsVersion = '1.7.337';
-var pdfjsBuild = '9163a6fb';
+var pdfjsVersion = '1.7.348';
+var pdfjsBuild = '754c4bd0';
 var pdfjsCoreWorker = __w_pdfjs_require__(17);
 ;
 exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;
 
 /***/ })
 /******/ ]);
 });
\ No newline at end of file