Skip to content

Include the string to be compiled in the call to HostEnsureCanCompileStrings #938

Open
@mikewest

Description

@mikewest

To improve the quality of CSP reports, it would be helpful for HostEnsureCanCompileStrings() to include the string to be compiled as an argument. HostEnsureCanCompileStrings(callerRealm, calleeRealm, source) seems ideal. :)

The goal is to ensure that we can include a sample of the script which violates the policy when generating a CSP violation report. We're doing this for inline <script>...</script> blocks today, and layering eval() and the like on as well would be helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalThis is related to a specific proposal, and will be closed/merged when the proposal reaches stage 4.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions