Skip to content

Commit

Permalink
Update EnsureCSPDoesNotBlockStringCompilation to match updated HostEn…
Browse files Browse the repository at this point in the history
…sureCanCompileStrings definition.
  • Loading branch information
lukewarlow committed Mar 14, 2024
1 parent ce3752a commit 7613b69
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1442,10 +1442,11 @@ spec: WebRTC; urlPrefix: https://www.w3.org/TR/webrtc/
to determine whether such compilation ought to be blocked.

<h4 id="can-compile-strings" algorithm dfn export>
EnsureCSPDoesNotBlockStringCompilation(|realm|, |source|)
EnsureCSPDoesNotBlockStringCompilation(|realm|, |parameterStrings|, |bodyString|, |direct|, |source|)
</h4>

Given a <a>realm</a> |realm| and a string |source|, this algorithm
Given a <a>realm</a> |realm|, a list of strings |parameterStrings|, a string |bodyString|, a boolean |direct|,
and a string |source|, this algorithm
returns normally if string compilation is allowed, and throws an "`EvalError`"
if not:

Expand Down

0 comments on commit 7613b69

Please sign in to comment.