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

Null Exception Handling | Input Validation - RCTAlertController - RCTDevLoadingView #35689

Closed
wants to merge 3 commits into from

Conversation

admirsaheta
Copy link
Contributor

@admirsaheta admirsaheta commented Dec 20, 2022

Summary

Enhancing native iOS modules and preventing crashes inside the RCTAlertController

Changelog

[iOS][Fixed] - Handle properly a nil keyWindows in the AlertController

Test Plan

@facebook-github-bot
Copy link
Contributor

Hi @admirsaheta!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@admirsaheta admirsaheta changed the title enchancement(handler): handle nil on alerts Handle Nil exceptions on iOS Alerts Dec 20, 2022
@analysis-bot
Copy link

analysis-bot commented Dec 20, 2022

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,466,919 +197
android hermes armeabi-v7a 7,786,248 +275
android hermes x86 8,941,163 +500
android hermes x86_64 8,799,075 +451
android jsc arm64-v8a 9,652,809 +0
android jsc armeabi-v7a 8,386,008 +0
android jsc x86 9,716,196 +0
android jsc x86_64 10,193,922 +0

Base commit: 9f78517
Branch: main

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: 9f78517
Branch: main

@pull-bot
Copy link

PR build artifact for 79f32b4 is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@pull-bot
Copy link

PR build artifact for 79f32b4 is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 20, 2022
@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot
Copy link
Contributor

@ryancat has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@admirsaheta admirsaheta changed the title Handle Nil exceptions on iOS Alerts Null Exception Handling | Input Validation - RCTAlertController - RCTDevLoadingView Dec 21, 2022
@admirsaheta
Copy link
Contributor Author

Input validators have been added to make sure nothing breaks

@pull-bot
Copy link

PR build artifact for be8c03e is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@pull-bot
Copy link

PR build artifact for be8c03e is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@pull-bot
Copy link

PR build artifact for a7ea796 is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@pull-bot
Copy link

PR build artifact for a7ea796 is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@cipolleschi
Copy link
Contributor

Hi @admirsaheta, thank you for taking care of this.
The PR looks good. Can I ask you to update the changelog in the summary, please? 🙏🏻

The proper format should be something like:

## Changelog:
[iOS][Fixed] - Handle properly a `nil` `keyWindows` in the AlertController

The problem, currently, is that your changelog is wrapped in <!-- --> and it is considered by GitHub as a comment, thus it is not visible.

Thank you so much!

@react-native-bot react-native-bot added Bug Platform: iOS iOS applications. labels Jan 2, 2023
@facebook-github-bot
Copy link
Contributor

@ryancat has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jan 3, 2023
@facebook-github-bot
Copy link
Contributor

@ryancat merged this pull request in 79e603c.

kelset pushed a commit that referenced this pull request Jan 19, 2023
…DevLoadingView (#35689)

Summary:
Enhancing native iOS modules and preventing crashes inside the RCTAlertController

## Changelog
[iOS][Fixed] - Handle properly a `nil` `keyWindows` in the AlertController

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[IOS] [SECURITY] - Message

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

Pull Request resolved: #35689

Reviewed By: cipolleschi

Differential Revision: D42179169

Pulled By: ryancat

fbshipit-source-id: 05a6788f610db1d222e3c10b3c774c75edaf55f5
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
…DevLoadingView (facebook#35689)

Summary:
Enhancing native iOS modules and preventing crashes inside the RCTAlertController

## Changelog
[iOS][Fixed] - Handle properly a `nil` `keyWindows` in the AlertController

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[IOS] [SECURITY] - Message

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

Pull Request resolved: facebook#35689

Reviewed By: cipolleschi

Differential Revision: D42179169

Pulled By: ryancat

fbshipit-source-id: 05a6788f610db1d222e3c10b3c774c75edaf55f5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Platform: iOS iOS applications.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants