Project

General

Profile

Actions

Bug #13600

closed
SK RM

CSP violation with WMenuItem

Bug #13600: CSP violation with WMenuItem

Added by Steven Köhler over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
03/03/2025
Due date:
% Done:

100%

Estimated time:

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

csp-err.PNG (34.5 KB) csp-err.PNG Steven Köhler, 03/03/2025 09:54 AM

MV Updated by Matthias Van Ceulebroeck over 1 year ago Actions #1

  • 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

RM Updated by Romain Mardulyn over 1 year ago Actions #2

  • Status changed from New to InProgress
  • Assignee set to Romain Mardulyn

RM Updated by Romain Mardulyn over 1 year ago Actions #3

  • Status changed from InProgress to Review
  • Assignee deleted (Romain Mardulyn)

MV Updated by Matthias Van Ceulebroeck over 1 year ago Actions #4

  • Assignee set to Matthias Van Ceulebroeck

MV Updated by Matthias Van Ceulebroeck over 1 year ago Actions #5

  • Status changed from Review to Implemented @Emweb
  • Assignee changed from Matthias Van Ceulebroeck to Romain Mardulyn
  • % Done changed from 0 to 100

MV Updated by Matthias Van Ceulebroeck over 1 year ago Actions #6

  • Status changed from Implemented @Emweb to Implemented @Test

MV Updated by Matthias Van Ceulebroeck over 1 year ago Actions #7

  • Status changed from Implemented @Test to Closed
Actions

Also available in: PDF Atom