Bug #13600
openCSP violation with WMenuItem
0%
Description
While trying out the new nonce functionality, I noticed a Content Security Policy violation. Here is an attached screenshot of the error message.
It occured with a WPopupMenu
widget while clicking one of the items. I could also reproduce the issue with WNavigationBar
, WMenu
and WTabWidget
- basically everything that uses WMenuItem
, which is represented by an <a>
tag. The issue itself seems to be caused by the href="javascript:void(0);"
attribute. Since this is intended to do nothing, the functionality of the widget itself is not impared, but everytime an item is selected a CSP violation error is logged in the browser console.
Best regards,
Steven
Files
Updated by Matthias Van Ceulebroeck 8 days ago
- Target version set to 4.11.4
Hello Steven,
that does indeed seem like something missed in #13501. I believe those were added to make tabbing over those elements work correctly. We'll look into alternatives for it.
Best,
Matthias
Updated by Romain Mardulyn 8 days ago
- Status changed from New to InProgress
- Assignee set to Romain Mardulyn
Updated by Romain Mardulyn 8 days ago
- Status changed from InProgress to Review
- Assignee deleted (
Romain Mardulyn)