? ? Pending

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
3 Apr 2021

Summary of Changes

this changes how background added to the Custom module, to avoid conflict with CSP rules.

Testing Instructions

Apply patch.
Click "Enable" in CSP component.
Create a custom module with background, and some content.
Check the module rendering.

Actual result BEFORE applying this Pull Request

Background not visible,
in browser console CSP related error.

Expected result AFTER applying this Pull Request

Background visible,
in browser console no CSP related error.

Documentation Changes Required

none

avatar Fedik Fedik - open - 3 Apr 2021
avatar Fedik Fedik - change - 3 Apr 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 3 Apr 2021
Category Modules Front End
avatar Fedik Fedik - change - 3 Apr 2021
The description was changed
avatar Fedik Fedik - edited - 3 Apr 2021
avatar Fedik Fedik - change - 3 Apr 2021
Labels Added: ?
avatar dgrammatiko dgrammatiko - test_item - 3 Apr 2021 - Tested successfully
avatar dgrammatiko
dgrammatiko - comment - 3 Apr 2021

I have tested this item successfully on 4a14fe1


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32980.

avatar sandewt
sandewt - comment - 3 Apr 2021

Apply path.

What exactly do you mean by this? Patch Tester?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32980.
avatar Fedik Fedik - change - 3 Apr 2021
The description was changed
avatar Fedik Fedik - edited - 3 Apr 2021
avatar Fedik
Fedik - comment - 3 Apr 2021

What exactly do you mean by this? Patch Tester?

Sorry that was typo ;)
Yes, I meant Patch not Path . Just apply the changes.

avatar sandewt
sandewt - comment - 3 Apr 2021

Actual result BEFORE applying this Pull Request
Background not visible,
in browser console CSP related error.

The background is really visible. NOK
I can confirm that there is in the browser console a CSP related error. OK

avatar Quy
Quy - comment - 4 Apr 2021

Is it ok that it does not have the query string?

Before PR:
background-image: url(/joomla-cms-4.0-dev/images/banners/banner.jpg?joomla_image_width=1140&joomla_image_height=600)

After PR:
background-image: url("/joomla-cms-4.0-dev/images/banners/banner.jpg")

avatar Fedik
Fedik - comment - 4 Apr 2021

yes, the query does not do anything, it something that comes from mediamanager,

avatar chmst
chmst - comment - 4 Apr 2021

The image has repeat-x, repeat-y. Is this intended?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32980.

avatar Fedik
Fedik - comment - 4 Apr 2021

The image has repeat-x, repeat-y. Is this intended?

yeap, this is default behavior of this module, since this feature exists

if you do test without CSP you will see that "before and after" looks the same

avatar Quy Quy - test_item - 4 Apr 2021 - Tested successfully
avatar Quy
Quy - comment - 4 Apr 2021

I have tested this item successfully on 4a14fe1


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32980.

avatar Quy Quy - change - 4 Apr 2021
Status Pending Ready to Commit
avatar Quy
Quy - comment - 4 Apr 2021

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32980.

avatar chmst chmst - close - 4 Apr 2021
avatar chmst chmst - merge - 4 Apr 2021
avatar chmst chmst - change - 4 Apr 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-04-04 16:35:52
Closed_By chmst
Labels Added: ?
avatar chmst
chmst - comment - 4 Apr 2021

Thanks!

avatar sandewt
sandewt - comment - 4 Apr 2021

Did I miss something? Before and after this PR I get to see the following message in the browser in the frontend site.

issue

avatar Fedik
Fedik - comment - 4 Apr 2021

Did I miss something?

yeap, CSP will not work on localhost, need extra configuration or just use a virtual domain ?

avatar sandewt
sandewt - comment - 4 Apr 2021

@Fedik

Thanks. ?

Add a Comment

Login with GitHub to post a comment