[Pkg-javascript-commits] [pdf.js] 101/207: Uplift for B2G bug 1009780 - Improve open mechanism for downloads.

David Prévot taffit at moszumanska.debian.org
Mon Jul 28 15:36:36 UTC 2014


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

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

commit 6f79aef03a6c35586327d3346c8da30a09002af4
Author: Yury Delendik <ydelendik at mozilla.com>
Date:   Mon Jun 16 19:06:36 2014 -0500

    Uplift for B2G bug 1009780 - Improve open mechanism for downloads.
---
 web/viewer.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/web/viewer.js b/web/viewer.js
index 0414daa..553765f 100644
--- a/web/viewer.js
+++ b/web/viewer.js
@@ -2459,9 +2459,12 @@ window.addEventListener('afterprint', function afterPrint(evt) {
 
 //#if B2G
 //window.navigator.mozSetMessageHandler('activity', function(activity) {
-//  var url = activity.source.data.url;
+//  var blob = activity.source.data.blob;
 //  PDFJS.maxImageSize = 1024 * 1024;
+//
+//  var url = URL.createObjectURL(blob);
 //  PDFView.open(url);
+//
 //  var cancelButton = document.getElementById('activityClose');
 //  cancelButton.addEventListener('click', function() {
 //    activity.postResult('close');

-- 
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