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

Fix worker tests using the wrong paths in importScripts #8050

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

mattsoulanille
Copy link
Member

Worker tests were getting the path for importScripts by referencing location.origin, but this is blob:// when accessed from the worker context.

Template location.origin from the main context into the worker source code instead of accessing the worker's version of location.origin.

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.

Worker tests were getting the path for `importScripts` by referencing
`location.origin`, but this is `blob://` when accessed from the worker
context.

Template `location.origin` from the main context into the worker source code
instead of accessing the worker's version of `location.origin`.
@mattsoulanille
Copy link
Member Author

Copy link
Collaborator

@Linchenn Linchenn left a comment

Choose a reason for hiding this comment

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

Thank you Matt for fixing this!

@mattsoulanille mattsoulanille enabled auto-merge (squash) November 2, 2023 20:58
@mattsoulanille mattsoulanille merged commit e003c32 into tensorflow:master Nov 2, 2023
2 checks passed
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.

3 participants