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

Revert service worker usage of MessageChannel #140351

Merged
merged 2 commits into from
Jan 10, 2022
Merged

Conversation

mjbvz
Copy link
Collaborator

@mjbvz mjbvz commented Jan 9, 2022

Reverts 66b6adf

While I'm not 100% about this, I think 66b6adf causes resourses to occasionally not load inside of webviews. I believe this can happen if the webview's service worker is unitilized while the webview remains active. I can't reproduce this myself so it may be related to memory pressure or resource usage, however relying on the service worker having persisted state does seem like a bad idea https://stackoverflow.com/questions/34775105/what-causes-the-global-context-of-a-service-worker-to-be-reset

Will investigate if there's another way to achieve this since using MessagePort did clean up the code and slightly improve performance

Reverts 66b6adf

While I'm not 100% about this, I think 66b6adf causes resourses to occasionally not load. I believe this can happen if the service worker is unitilized while the webview remains active. I can't reproduce this myself so it may be related to memory pressure or resource usage, however relying on the service worker not being reinitilized does seem like a potentially bad idea https://stackoverflow.com/questions/34775105/what-causes-the-global-context-of-a-service-worker-to-be-reset

Will investigate if there's another way to achive this since using MessagePort did clean up the code and slightly improve performance
@mjbvz mjbvz added this to the January 2022 milestone Jan 9, 2022
@mjbvz mjbvz self-assigned this Jan 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant