This repository has been archived by the owner on Jun 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[components] For mozilla-mobile/android-components#11358 - Show crash…
… notification for BACKGROUND_CHILD process crashes. This adds a processType field to NativeCodeCrash which is read from the GeckoView crash intent. This can have one of the following values: * MAIN: indicating a fatal crash in the main process. * FOREGROUND_CHILD: indicating a crash in a foreground child process (such as a Gecko content process). The application may be able to recover from this. * BACKGROUND_CHILD: indicating a crash in a background child process (such as Gecko's GPU process). The engine will automatically recover from this, and the crash will have barely been noticeable to the user, if at all. The existing isFatal property is now calculated from the processType. It is true for MAIN, and false for others. We treat MAIN crashes as we did fatal crashes before: we do not send the intent to the application, but do show the prompt or notification to the user, if required. We treat FOREGROUND_CHILD crashes as we did non-fatal crashes before: sending the intent to the application if requested. For BACKGROUND_CHILD crashes, we do _not_ send the intent to the application. As the engine automatically recovers there is no need for the application to handle the crash. Additionally, we choose to display the crash notification rather than prompt, as we do not wish to interrupt the user's flow.
- Loading branch information
1 parent
9569578
commit 53d8bcb
Showing
17 changed files
with
331 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.