Skip to content
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

Remove callerRealm from HostEnsureCanCompileStrings #7653

Merged
merged 1 commit into from
Apr 22, 2022

Conversation

antosart
Copy link
Member

@antosart antosart commented Feb 23, 2022

This PR removes the parameter callerRealm from HostEnsureCanCompileStrings. The parameter was sent to EnsureCSPDoesNotBlockStringCompilation in CSP, which however does not use that parameter (the parameter is being removed there, too, see w3c/webappsec-csp#541).

This change is a no-op, so I believe the following does not apply.

  • At least two implementers are interested (and none opposed):
  • Tests are written and can be reviewed and commented upon at:
  • Implementation bugs are filed:
    • Chrome: …
    • Firefox: …
    • Safari: …
    • Deno (only for timers, structured clone, base64 utils, channel messaging, module resolution, web workers, and web storage): …
    • Node.js (only for timers, structured clone, base64 utils, channel messaging, and module resolution): …

(See WHATWG Working Mode: Changes for more details.)


/index.html ( diff )
/timers-and-user-prompts.html ( diff )
/webappapis.html ( diff )

@antosart
Copy link
Member Author

The companion PR on ECMAScript is tc39/ecma262#2670.

@domenic domenic added the do not merge yet Pull request must not be merged per rationale in comment label Feb 23, 2022
@domenic
Copy link
Member

domenic commented Feb 23, 2022

Tagging "do not merge yet" until the 262 PR is merged.

(Note, if they don't want to merge it in 262, then we can adapt this PR to just not pass the second realm to CSP.)

@antosart
Copy link
Member Author

tc39/ecma262#2670 is merged, so we should be good to go here.

In tc39/ecma262#2670 it was suggested to rename calleeRealm into something more neutral, like currentRealm. I have no strong preference here, but I am happy to change this.

@annevk
Copy link
Member

annevk commented Apr 22, 2022

Maybe we should call it realm?

The weird thing is that "callee" isn't referring to HostEnsureCanCompileStrings, but rather to the caller of HostEnsureCanCompileStrings.

@annevk annevk removed the do not merge yet Pull request must not be merged per rationale in comment label Apr 22, 2022
@antosart
Copy link
Member Author

Makes sense. I renamed it realm.

@annevk annevk merged commit fecc699 into whatwg:main Apr 22, 2022
@annevk
Copy link
Member

annevk commented Apr 22, 2022

Thanks @antosart for making the cleanup happen across all these repositories, this is a lot better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants