-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HostEnsureCanCompileStrings definition mismatch #10202
Comments
The CSP spec includes a link to tc39/ecma262#938 which explains the missing source in the hook. However, the current state only includes the parameter strings as a list with the body string, rather than the compiled source string which CSP currently requires. However, if tc39/ecma262#3294 is accepted then the ECMA definition will change again and pass through the compiled string (along with certain other parameters that will be needed). |
Not quite a duplicate that issue is linked to a change to ecmascript that never happened. (I would personally close that other one out as it's going to be outdated compared to the latest state of TT) |
#271 while relevant doesn't include the EnsureCSPDoesNotBlockStringCompilation changes specifically (unless I'm mistaken) |
I was planning on updating the HTML spec after my changes that got merged in ecma262, but I ended up waiting given that that host hook's signature might change soon again. |
Update the HostEnsureCanCompileStrings definition to match dynamic code brand checks stage 3 proposal. Also update the call to EnsureCSPDoesNotBlockStringCompilation to pass these new arguments through. Also update the timer initialization steps to call EnsureCSPDoesNotBlockStringCompilation directly, and include the new parameters. Also define HostGetCodeForEval implementation. See w3c/webappsec-csp#650 for corresponding CSP PR. Also see #10202 for context.
What is the issue with the HTML Standard?
The HTML definition of HostEnsureCanCompileString doesn't match the ECMAScript definition.
The call to EnsureCSPDoesNotBlockStringCompilation also doesn't match the CSP definition
The text was updated successfully, but these errors were encountered: