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

Use correct settings object for modules imported in workers #9541

Merged
merged 2 commits into from
Jul 24, 2023

Conversation

nicolo-ribaudo
Copy link
Contributor

Fixes #9535

Now modules are created with their referrer's settings object, and fetched with the fetchClient used when starting the graph loading process.

Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

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

In an attempt to provide better review than before, I traced everything through, and it all looks good. (Modulo the easily-fixed bug.) We'll see if I was on track!

(I event spent ~10 minutes being confused about whether settingsObject would be correct in HostLoadImportedModule, before I realized it gets fixed in step 6.2.)

source Show resolved Hide resolved
@nicolo-ribaudo
Copy link
Contributor Author

Thanks for the review! Maybe we should add a note in HostLoadImportedModule explaining fetchClient/settingsObject?

Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

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

Maybe we should add a note in HostLoadImportedModule explaining fetchClient/settingsObject?

I think it's OK for now... it was pretty obvious once I saw it. If it trips up someone else though we can take that as a sign.

@domenic domenic merged commit e01444f into whatwg:main Jul 24, 2023
@nicolo-ribaudo nicolo-ribaudo deleted the script-worker-settings-object branch July 24, 2023 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Environment settings objects used when fetching a module worker script graph are still wrong
2 participants