Skip to content
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

After updating from v1.6.7 to v1.6.8 cannot print image attachments from Firefox #9571

Closed
2 tasks done
ner00 opened this issue Aug 5, 2024 · 2 comments
Closed
2 tasks done

Comments

@ner00
Copy link

ner00 commented Aug 5, 2024

Prerequisites

  • I have searched for duplicate or closed issues
  • I can recreate the issue with all plugins disabled

Describe the issue

Instead of the image it shows a URL (in the printing preview and in the printed paper itself). There's also an error in the browser's console (see 'JavaScript errors' section). The image is also glued to the leftmost side of the window instead of centered as it used to be. A couple screenshots below to better demonstrate the overall appearance of the issue.

Behavior in v1.6.8 (within Firefox v128.0.3)
firefox_WYXLaRnGPQ

Behavior in v1.6.7 (within Firefox v128.0.3)
firefox_Mzb2wV78gK

What browser(s) are you seeing the problem on?

Firefox

What version of PHP are you using?

v8.1.10

What version of Roundcube are you using?

v1.6.8

JavaScript errors

jquery.min.js:36:49986 Content-Security-Policy: The page’s settings blocked an inline style (style-src-elem) from being applied because it violates the following directive: “default-src 'none'”

PHP errors

No response

@alecpl
Copy link
Member

alecpl commented Aug 5, 2024

Confirmed. Looks like we set the CSP on attachment preview page too strict.

@alecpl
Copy link
Member

alecpl commented Aug 8, 2024

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants