Uplift for B2G bug 1009780 - Improve open mechanism for downloads.

This commit is contained in:
Yury Delendik 2014-06-16 19:06:36 -05:00
parent 22cfcbcf8a
commit 6f79aef03a

View File

@ -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');