[Pkg-javascript-commits] [pdf.js] 108/119: Bug 1152841 - make pdf.js viewer app handle open requests from file viewers

David Prévot taffit at moszumanska.debian.org
Wed May 13 21:27:47 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit ae740768b0cab89a3e2033cb9a8a7f3ccde16082
Author: David Flanagan <dflanagan at mozilla.com>
Date:   Tue May 5 01:04:45 2015 +0200

    Bug 1152841 - make pdf.js viewer app handle open requests from file viewers
---
 web/viewer.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/web/viewer.js b/web/viewer.js
index 2dc8bf1..6a6389f 100644
--- a/web/viewer.js
+++ b/web/viewer.js
@@ -2242,7 +2242,9 @@ window.addEventListener('afterprint', function afterPrint(evt) {
 //window.navigator.mozSetMessageHandler('activity', function(activity) {
 //  var blob = activity.source.data.blob;
 //  PDFJS.maxImageSize = 1024 * 1024;
-//  var fileURL = activity.source.data.url;
+//  var fileURL = activity.source.data.url ||
+//    activity.source.data.filename ||
+//    " "; // if no url or filename, use a non-empty string
 //
 //  var url = URL.createObjectURL(blob);
 //  // We need to delay opening until all HTML is loaded.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list