-
Notifications
You must be signed in to change notification settings - Fork 113
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 Chrome death, by creating both cross-frame ports in the background #259
Conversation
View Playwright Report (note: open the "playwright-report" artifact) |
on Chrome (currently 117), the port created in the content script with runtime.connect does not properly receive an onDisconnect event when the service worker sleeps. the port created in the background with tabs.connect does receive the event, so create both ports with tabs.connect. fixes yomidevs#241.
0bf7c69
to
6769ff5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much, this looks like it will be the key PR for getting yomitan released. Left some minor comments, feel free to resolve them however you see fit.
it was only used in the cross-frame api. additionally, this comment on triggerExtensionUnloaded is incorrect.
not sure if API messages should be sent in prepare(), but we should probably wait for the ready signal before doing so
Head branch was pushed to by a user without write access
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
on Chrome (currently 117), the port created in the content script with runtime.connect does not properly receive an onDisconnect event when the service worker sleeps. the port created in the background with tabs.connect does receive the event, so create both ports with tabs.connect.
fixes #241.