Closed Bug 1644201 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 24039 - [Trusted Types] Change sample string for Function Constructor.

Categories

(Core :: DOM: Security, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream][domsecurity-backlog])

Sync web-platform-tests PR 24039 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/24039
Details from upstream follow.

Yifan Luo <lyf@google.com> wrote:

[Trusted Types] Change sample string for Function Constructor.

Changed the CSP violation report sample string for Trusted
Types from eval|(function anonymous(xxxx to Function|xxxx.

Bug: 1048604
Change-Id: I6484ef73f78ea245d39efe219e30f5a0ed5d4f74

Reviewed-on: https://chromium-review.googlesource.com/2235621
WPT-Export-Revision: 7a2d097ca5ed0471853120d5e4194c49900937bf

Component: web-platform-tests → DOM: Security
Product: Testing → Core
Severity: -- → S3
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]

CI Results

Ran 12 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 3 subtests

Status Summary

Firefox

OK : 1
FAIL: 3

Chrome

OK : 1
PASS: 2
FAIL: 1

Safari

OK : 1
FAIL: 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/content-security-policy/reporting/report-clips-sample.https.html
Unsafe eval violation sample is clipped to 40 characters.: FAIL (Chrome: PASS, Safari: FAIL)
Trusted Types violation sample is clipped to 40 characters excluded the sink name.: FAIL (Chrome: PASS, Safari: FAIL)
Function constructor - the other kind of eval - is clipped.: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/413de5545e2f [wpt PR 24039] - [Trusted Types] Change sample string for Function Constructor., a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
You need to log in before you can comment on or make changes to this bug.