WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
233182
CSP: security policy violation event is always using document as target
https://bugs.webkit.org/show_bug.cgi?id=233182
Summary
CSP: security policy violation event is always using document as target
Carlos Garcia Campos
Reported
2021-11-16 03:04:46 PST
We should use the violation element instead if not null. This is causing failures in imported/w3c/web-platform-tests/content-security-policy/securitypolicyviolation/targeting.html but also time outs in other tests connecting the event listener to the target element.
Attachments
WIP
(20.22 KB, patch)
2021-11-16 03:09 PST
,
Carlos Garcia Campos
no flags
Details
Formatted Diff
Diff
Patch
(32.04 KB, patch)
2021-11-22 02:54 PST
,
Carlos Garcia Campos
katherine_cheney
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2021-11-16 03:09:00 PST
Created
attachment 444366
[details]
WIP This is WIP for now because it won't apply, it applies on top of patch attached to
bug #233037
. Once that lands I'll include changelog and new test results.
Carlos Garcia Campos
Comment 2
2021-11-22 02:54:05 PST
Created
attachment 444954
[details]
Patch
Radar WebKit Bug Importer
Comment 3
2021-11-23 03:05:19 PST
<
rdar://problem/85697149
>
Kate Cheney
Comment 4
2021-11-23 08:11:55 PST
Comment on
attachment 444954
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=444954&action=review
> Source/WebCore/ChangeLog:15 > + (WebCore::Element::enqueueSecurityPolicyViolationEvent): Helper to queue ecuritypolicyviolationEvent for element.
nit: ecuritypolicyviolationEvent > securitypolicyviolationEvent
Carlos Garcia Campos
Comment 5
2021-11-23 08:24:39 PST
Committed
r286136
(
244523@main
): <
https://commits.webkit.org/244523@main
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug