-
Notifications
You must be signed in to change notification settings - Fork 26.2k
fix(service-worker): handle error with ErrorHandler #39990
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(service-worker): handle error with ErrorHandler #39990
Conversation
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.
Thx for working on this, @chrisguttandin 👍
I've left a couple of minor comments. Could you also add a test for the new behavior in service-worker/test/module_spec.ts?
Also, let's add a short description of the motivation for the change in the commit message body and also add Fixes #39913
at the bottom (per our commit message guidelines).
Hi @gkalpak, thanks for your feedback. I made the changes and updated the test. Please let me know if there is anything else I should change. |
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.
One super-minor nit. Otherwise lgtm (as long as CI is happy 😃)
Thx again, @chrisguttandin ✨
Errors thrown by calling serviceWorker.register() are now passed to the global ErrorHandler. Fixes #39913
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #39913
What is the new behavior?
Errors thrown when trying to register a Service Worker are now passed to the global ErrorHandler.
Does this PR introduce a breaking change?
Other information