servo/tests/wpt/meta/content-security-policy/securitypolicyviolation
Tim van der Lippe f2d0be1b9a
script: Fix check for document root when targeting CSP events (#37474)
The check was incorrect, where it was never matching and always
discarding the element. Instead, we should check the owner document,
which is the shadow-including root of the node.

Part of #4577

---------

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
2025-06-15 14:54:41 +00:00
..
blockeduri-inline.html.ini Correct event_target for CSP violations (#36887) 2025-05-08 10:46:31 +00:00
blockeduri-ws-wss-scheme.html.ini Correct event_target for CSP violations (#36887) 2025-05-08 10:46:31 +00:00
idlharness.window.js.ini Run subset of CSP tests by default. (#36402) 2025-04-08 14:46:25 +00:00
img-src-redirect-upgrade-reporting.https.html.ini Run subset of CSP tests by default. (#36402) 2025-04-08 14:46:25 +00:00
inside-dedicated-worker.html.ini Set correct policy-container for worker construction (#36603) 2025-04-21 12:47:06 +00:00
inside-service-worker.https.html.ini Run subset of CSP tests by default. (#36402) 2025-04-08 14:46:25 +00:00
inside-shared-worker.html.ini Run subset of CSP tests by default. (#36402) 2025-04-08 14:46:25 +00:00
linenumber.tentative.html.ini Correct event_target for CSP violations (#36887) 2025-05-08 10:46:31 +00:00
script-sample.html.ini script: Fix check for document root when targeting CSP events (#37474) 2025-06-15 14:54:41 +00:00
securitypolicyviolation-block-cross-origin-image-from-script.sub.html.ini Update FetchTaskTarget to propagate CSP violations. (#36409) 2025-04-13 20:54:59 +00:00
securitypolicyviolation-block-cross-origin-image.sub.html.ini Update FetchTaskTarget to propagate CSP violations. (#36409) 2025-04-13 20:54:59 +00:00
securitypolicyviolation-block-image-from-script.sub.html.ini Update FetchTaskTarget to propagate CSP violations. (#36409) 2025-04-13 20:54:59 +00:00
securitypolicyviolation-block-image.sub.html.ini Update FetchTaskTarget to propagate CSP violations. (#36409) 2025-04-13 20:54:59 +00:00
source-file-blob-scheme.html.ini Correct event_target for CSP violations (#36887) 2025-05-08 10:46:31 +00:00
source-file-data-scheme.html.ini Correct event_target for CSP violations (#36887) 2025-05-08 10:46:31 +00:00
source-file.html.ini Run subset of CSP tests by default. (#36402) 2025-04-08 14:46:25 +00:00
targeting.html.ini script: Fix check for document root when targeting CSP events (#37474) 2025-06-15 14:54:41 +00:00
upgrade-insecure-requests-reporting.https.html.ini Support CSP report-only header (#36623) 2025-04-25 19:59:44 +00:00