- 
                Notifications
    You must be signed in to change notification settings 
- Fork 53
Fix hide download and printing #459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
| /backport to stable22 | 
| /backport to stable21 | 
| /backport to stable20 | 
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2ae6fbe    to
    015b467      
    Compare
  
    | // The download has to be forced to use the URL of the file; by default | ||
| // "PDFViewerApplication.download" uses a blob, but this causes a CSP error | ||
| // (at least, in Firefox) when trying to download it. | ||
| PDFViewerApplication.download = function() { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Download was already disabled within the app (we have the big button on top)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
files_pdfviewer/templates/viewer.php
Line 144 in bbf6b54
| <button id="secondaryDownload" class="secondaryToolbarButton download visibleMediumView" title="Download" tabindex="54" data-l10n-id="download" hidden="true"> | 
| The backport to stable21 failed. Please do this backport manually. | 
| The backport to stable20 failed. Please do this backport manually. | 
Fix #311