Skip to content

[15.2.x] fix(service-worker): throw a critical error when handleFetch fail#51989

Closed
JeanMeche wants to merge 1 commit intoangular:15.2.xfrom
JeanMeche:fix/sw-15-2
Closed

[15.2.x] fix(service-worker): throw a critical error when handleFetch fail#51989
JeanMeche wants to merge 1 commit intoangular:15.2.xfrom
JeanMeche:fix/sw-15-2

Conversation

@JeanMeche
Copy link
Member

This commit is a backport to 15.2 of #51960 and #50378

Throwing SwCriticalError allows the driver to fallback to safeFetch and ensure responseWith doesn't fail.

Fixes #50378

This commit is a backport to 15.2 of angular#51960 and angular#50378
Throwing `SwCriticalError` allows the driver to fallback to `safeFetch` and ensure responseWith doesn't fail.

Fixes angular#50378
@pullapprove pullapprove bot requested a review from alxhub October 2, 2023 23:08
@JeanMeche JeanMeche added the area: service-worker Issues related to the @angular/service-worker package label Oct 2, 2023
@ngbot ngbot bot added this to the Backlog milestone Oct 2, 2023
@AndrewKushnir AndrewKushnir added target: lts This PR is targeting a version currently in long-term support action: merge The PR is ready for merge by the caretaker merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note labels Oct 2, 2023
@AndrewKushnir
Copy link
Contributor

Caretaker note: this PR targets LTS branch, we'd need to cut an LTS release once it's merged.

@dylhunn dylhunn requested review from dylhunn and removed request for alxhub and dylhunn October 3, 2023 00:11
@pullapprove pullapprove bot requested a review from alxhub October 3, 2023 00:12
@AndrewKushnir AndrewKushnir changed the title fix(service-worker): throw a critical error when handleFetch fail [15.2.x] fix(service-worker): throw a critical error when handleFetch fail Oct 3, 2023
@alxhub
Copy link
Member

alxhub commented Oct 4, 2023

This PR was merged into the repository by commit 9fe0896.

@alxhub alxhub closed this Oct 4, 2023
alxhub pushed a commit that referenced this pull request Oct 4, 2023
…1989)

This commit is a backport to 15.2 of #51960 and #50378
Throwing `SwCriticalError` allows the driver to fallback to `safeFetch` and ensure responseWith doesn't fail.

Fixes #50378

PR Close #51989
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 4, 2023
@JeanMeche JeanMeche deleted the fix/sw-15-2 branch February 29, 2024 13:39
@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 4, 2023
@JeanMeche JeanMeche deleted the fix/sw-15-2 branch February 29, 2024 13:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: service-worker Issues related to the @angular/service-worker package merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note PullApprove: disable target: lts This PR is targeting a version currently in long-term support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants