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

Reset a11y bridge state on hot restart #6857

Merged
merged 1 commit into from
Nov 14, 2018

Conversation

dnfield
Copy link
Contributor

@dnfield dnfield commented Nov 14, 2018

Fixes flutter/flutter#20388

Previous PRs fixed an issue where the native side wasn't flushing access down to Dart land. This PR makes sure that any internal state the engine has gotten from Dart gets flushed when a hot restart happens, to make sure we don't end up with stale a11y information across hot restarts (I ran into this while manually testing things for the progress indicator semantics work).

I also did a tiny bit of cleanup in the vicinity: moved some returns to newlines in Java, and removed an unused declaration in the C++ iOS header.

/cc @matthew-carroll - I'm touching FlutterNativeView.java here, I assume this will have some impact on your embedding refactor work but I hope it's minimal. We would definitely want to make sure that this call to reset doesn't get lost in that refactor though.

Copy link
Member

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dnfield dnfield merged commit 110a5f3 into flutter:master Nov 14, 2018
@dnfield dnfield deleted the a11y_bridge_state branch November 14, 2018 19:13
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Nov 15, 2018
flutter/engine@289de46...498bbd5

git log 289de46..498bbd5 --no-merges --oneline
498bbd5 Roll src/third_party/skia f152130ef910..44764000b49c (8 commits) (flutter/engine#6860)
f23862b Added delegate forwarding for didReceiveLocalNotification and willPresentNotification (flutter/engine#6858)
110a5f3 Reset a11y bridge state on hot restart (flutter/engine#6857)


The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accessibility features don't get updated on hot reload/restart
4 participants