User tests: Successful: Unsuccessful:
default.php
of mod_custom
.Current Firefox. Should be no difference with other browsers(?).
After installation of Joomla 4.1.3 you'll see a banner image in frontend. See image 1 below.
mod_custom
that uses layout Cassiopeia:banner.php
.Activate plugin System - HTTP Headers
and configure it.
Content-Security-Policy (CSP)
Nonce
. Nothing else.style-src
Policy Directive: {nonce} 'self' 'unsafe-inline'
Go to frontend. Banner image is gone. See image 2 below.
Apply patch.
Image comes back. See image 1 below.
Image 1
Image 2
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Templates (site) |
@ReLater although your approach seems to solve to problem, reality is that this approach is not gonna scale. Eg try editing the module in the backend and in the tinyMCE try to set the text alignment to right for the paragraph (it will be again broken). The solution obviously cannot be adding inline css declaration all around the layouts, this is a hack!
@dgrammatiko in general you are correct. However in this specific case you are not. The css here is not user created but hardcoded into the template layout
However in this specific case you are not.
Actually the current implementation is outdated. It can be done using an actual image tag instead of css background-image, ie: https://nystudio107.com/blog/the-css-background-image-property-as-an-anti-pattern
It was absolutely clear for me that there will not come a comment on the nonce issues over days, but when a pr is provided and I've wasted my time.
@dgrammatiko Can you tell me why you've tested the same solution successfully here? #32980
Kiss my ass! @dgrammatiko and Joomla! I think you don't need people like me. Keep the Joomla bugs and block security settings until one of your godfathers provides complicated solutions that nobody can follow and are complete bullshit behind the scene.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-05-24 10:37:35 |
Closed_By | ⇒ | ReLater | |
Labels |
Added:
?
|
Status | Closed | ⇒ | New |
Closed_Date | 2022-05-24 10:37:35 | ⇒ | |
Closed_By | ReLater | ⇒ |
Status | New | ⇒ | Pending |
I'm reopen this pull request, because I would accept it because it solves the problem in the first place. Improvements are always welcome.
@ReLater please be less rude in the future, you know we are all volunteers. Also you should know that maintainers are in charge for decline or approving pull requests. So it doesn't make sense to blame dimitries or brian for something they are not in the position to do. I hope we get this merged into 4.1 branch soon and get released with 4.1.5 (for 4.1.4 it's too late this will be released in a couple of hours).
hey- what did I do? I said dmitris was wrong
hey- what did I do? I said dmitris was wrong
sorry it wasn't directly related on your comment it was only because you also joined the discussion.
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
I'm aware, that the IDs are not correct in modules (not only mod_custom but also in the chromes), but because of B/C issues, I will merge this and it can then improved in minor/mayor releases.
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-06-05 22:42:26 |
Closed_By | ⇒ | bembelimen | |
Labels |
Added:
?
|
Thx
I have tested this item✅ successfully on 35d16b7
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37872.