Closed Bug 1535358 Opened 7 years ago Closed 7 years ago

[wpt-sync] Sync PR 15757 - ServiceWorker: Add CSP tests for eval() on ServiceWorkerGlobalScope

Categories

(Testing :: web-platform-tests, enhancement, P4)

enhancement

Tracking

(firefox68 fixed)

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Hiroki Nakagawa <nhiroki@chromium.org> wrote:

ServiceWorker: Add CSP tests for eval() on ServiceWorkerGlobalScope

This CL adds WPTs to make sure eval() on ServiceWorkerGlobalScope is disallowed
when default-src and script-src CSP directives are specified without
unsafe-eval keyword.

These tests are failing when off-the-main-thread worker script fetch is enabled
because of https://crbug.com/940316

Bug: 937168, 940316
Change-Id: I7b02519a15aeb14c21e0b26dfad3d84014f572df

Reviewed-on: https://chromium-review.googlesource.com/1514285
WPT-Export-Revision: 3fe4744024e385f3a7ce2431171a43e566b0ca7b

Ran 3 tests and 15 subtests OK : 3 PASS : 15
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/mozilla-inbound/rev/3bbdae743638 [wpt PR 15757] - ServiceWorker: Add CSP tests for eval() on ServiceWorkerGlobalScope, a=testonly
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.