Closed Bug 1623117 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 22302 - [Trusted Types] Worker constructor URLs are TrustedScriptURLs

Categories

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

task

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

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

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

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

Daniel Vogelheim <vogelheim@chromium.org> wrote:

[Trusted Types] Worker constructor URLs are TrustedScriptURLs

Make URLs used to construct workers TrustedScriptURLs.

Minor rework of how to get the execution context in the generated bindings,
because the old method assumed presence of an "impl" object, whichfor is
only created at the end in case of constructors. So insetead, implement a
method with which we can always obtain the execution context from the
v8::FunctionCallbackInfo.

Bug: 1059684
Change-Id: I00e3e52cad5c3736105289a9fda1eeca15fd6f62
Reviewed-on: https://chromium-review.googlesource.com/2105339
WPT-Export-Revision: 96b206f4cd97ddacb9520d9d431a49383c478aa7

Component: web-platform-tests → DOM: Security
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ab2e49a498f4
[wpt PR 22302] - [Trusted Types] Worker constructor URLs are TrustedScriptURLs, a=testonly
https://hg.mozilla.org/integration/autoland/rev/f4e67f6d7400
[wpt PR 22302] - Update wpt metadata, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
You need to log in before you can comment on or make changes to this bug.