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

Fix Crash Using accessibilityValue Outside of Web Debugging #5619

Merged
merged 2 commits into from
Aug 3, 2020

Conversation

NickGerleman
Copy link
Collaborator

@NickGerleman NickGerleman commented Aug 1, 2020

Using Chakra, in AccessibilityExample we see the dynamic for min represented as a double (0.00000) and crash with a folly TypeError since we enforce the folly::dynamic value is an integer.

We're converting to a double anyway, so we instead rely on built-in folly type conversion instead of trying to coerce the value to an int to convert into a double again. (i.e. asDouble will convert an int to a double as well).

Note that we still see issues with the AccessibilityExample page that need to be addressed.

Will cherry-pick this into 0.63-stable.

Microsoft Reviewers: Open in CodeFlow

Existing code will crash with a folly TypeError since we enforce the folly::dynamic value is an integer. Using Chakra, in AccessibilityExample we see the dynamic for min represented as a double (0.00000) and crash.

We're converting to a double anyway, so we instead rely on builtin folly type converstion instead of trying to coerce the value to an int to convert into a double again.

Note that we still see issues with the AccessibilityExample page.
@NickGerleman NickGerleman requested a review from a team as a code owner August 1, 2020 23:38
@NickGerleman NickGerleman merged commit 4f72501 into microsoft:master Aug 3, 2020
NickGerleman added a commit to NickGerleman/react-native-windows that referenced this pull request Aug 3, 2020
…t#5619)

* Fix Crash Using accessibilityValue Without Web Debugging

Existing code will crash with a folly TypeError since we enforce the folly::dynamic value is an integer. Using Chakra, in AccessibilityExample we see the dynamic for min represented as a double (0.00000) and crash.

We're converting to a double anyway, so we instead rely on builtin folly type converstion instead of trying to coerce the value to an int to convert into a double again.

Note that we still see issues with the AccessibilityExample page.

* Change files
ghost pushed a commit that referenced this pull request Aug 4, 2020
…5624)

* Fix Crash Using accessibilityValue Without Web Debugging

Existing code will crash with a folly TypeError since we enforce the folly::dynamic value is an integer. Using Chakra, in AccessibilityExample we see the dynamic for min represented as a double (0.00000) and crash.

We're converting to a double anyway, so we instead rely on builtin folly type converstion instead of trying to coerce the value to an int to convert into a double again.

Note that we still see issues with the AccessibilityExample page.

* Change files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants