Reverts 729b82, d5f65f and 724add

This commit is contained in:
Yury Delendik 2013-02-08 14:04:36 -06:00
parent 74c3508bcd
commit 6ce1cfe734
4 changed files with 0 additions and 42 deletions

View file

@ -1352,28 +1352,6 @@ var PDFView = {
// AcroForm/XFA was found
PDFView.fallback();
}
if (info.IsTextCopyDisabled) {
document.getElementById('viewerContainer').classList
.add('copy-protection');
} else {
document.getElementById('viewerContainer').classList
.remove('copy-protection');
}
if (info.IsPrintDisabled) {
if (PDFView.supportsPrinting) {
document.getElementById('print').classList.add('hidden');
}
document.getElementById('viewerContainer').classList
.add('print-protection');
} else {
if (PDFView.supportsPrinting) {
document.getElementById('print').classList.remove('hidden');
}
document.getElementById('viewerContainer').classList
.remove('print-protection');
}
});
},
@ -1640,9 +1618,6 @@ var PDFView = {
},
beforePrint: function pdfViewSetupBeforePrint() {
if (this.documentInfo.IsPrintDisabled) {
return;
}
if (!this.supportsPrinting) {
var printMessage = mozL10n.get('printing_not_supported', null,
'Warning: Printing is not fully supported by this browser.');