-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[4.4] Remove unused cassiopeia inline event handler #43586
[4.4] Remove unused cassiopeia inline event handler #43586
Conversation
Please provide more test instructions and what is expected to be seen in the generated source Maybe I am looking at this wrong but before this PR I see
With the PR applied I see
|
Also does the same change need to be made in |
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.
@SniperSister please remove all the 'media' => 'print'
Lesson learned: don't commit while listening to JDay presentations ;) Sorry guys, now all required changes (removal of inline handler, removal of unused media attribute) have been performed in all relevant files and locations. |
As stated before please provide more detailed test instructions. How can a tester replicate the error etc |
Done! |
I have tested this item ✅ successfully on f3bbd2d This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43586. |
@SniperSister Shouldn't it be fixed in 4.4-dev, too (or only there and later be merged up to 5.1-dev)? If it's a bug fix we should to it also in 4.4-dev, and if it's a new feature (what I don't think) it should to into 5.2-dev. |
I have tested this item ✅ successfully on f3bbd2d This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43586. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43586. |
f3bbd2d
to
82c15b5
Compare
@richard67 fair comment. I have rebased the PR as suggested! |
Thank you! |
Summary of Changes
The current Cassiopeia version has an inline onload event handler for the fontscheme.current css file. The inline event handler produces a warning in strict CSP mode and is redundant, as the lazy-loading functionality (that was the purpose of the handler) is handled in the template.js and trigger by the rel="lazy-stylesheet" attribute.
Testing Instructions
Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
Link to documentations
Please select:
Documentation link for docs.joomla.org:
[x ] No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed