Uplift for B2G bug 1009780 - Improve open mechanism for downloads.
This commit is contained in:
parent
22cfcbcf8a
commit
6f79aef03a
@ -2459,9 +2459,12 @@ window.addEventListener('afterprint', function afterPrint(evt) {
|
|||||||
|
|
||||||
//#if B2G
|
//#if B2G
|
||||||
//window.navigator.mozSetMessageHandler('activity', function(activity) {
|
//window.navigator.mozSetMessageHandler('activity', function(activity) {
|
||||||
// var url = activity.source.data.url;
|
// var blob = activity.source.data.blob;
|
||||||
// PDFJS.maxImageSize = 1024 * 1024;
|
// PDFJS.maxImageSize = 1024 * 1024;
|
||||||
|
//
|
||||||
|
// var url = URL.createObjectURL(blob);
|
||||||
// PDFView.open(url);
|
// PDFView.open(url);
|
||||||
|
//
|
||||||
// var cancelButton = document.getElementById('activityClose');
|
// var cancelButton = document.getElementById('activityClose');
|
||||||
// cancelButton.addEventListener('click', function() {
|
// cancelButton.addEventListener('click', function() {
|
||||||
// activity.postResult('close');
|
// activity.postResult('close');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user