Skip to content

add tidbits relevant to lavamoat#9

Open
naugtur wants to merge 1 commit intomainfrom
naugtur/tidbits
Open

add tidbits relevant to lavamoat#9
naugtur wants to merge 1 commit intomainfrom
naugtur/tidbits

Conversation

@naugtur
Copy link
Copy Markdown
Member

@naugtur naugtur commented Jul 25, 2025

Not sure if it makes sense to have these for the meeting, but they exist.

@kriskowal Part of the writeup about inline modules under CSP may be incorrect. I need to improve my understanding of the relationship between ModuleSource and import and CSP

@github-actions
Copy link
Copy Markdown

The rendered spec for this PR is available at https://endojs.github.io/proposal-new-global/pr/9.

Comment thread slides/slides.md
Comment on lines +345 to +346
To apply isolation in bundles resulting from running a build process, while under CSP with no `unsafe-eval` we may need to rely on [Module Declarations](https://github.com/tc39/proposal-module-declarations) producing an instance or a `ModuleSource` whose import via an importHook by the new global would not be considered an evaluation but a same-origin import.
---
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not need to wait for module declarations for CSP blessed module sources to come to bear. We already have that with import source and import.source, which if implemented by the host, may bless the module instance with origin information that would permit them to be executed under no-unsafe-eval. We also have to option of extending the ModuleSource constructor to accept a Trusted Type for the same effect.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delayed to after plenary, I don't know what I want this to say.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants