X Tutup
The Wayback Machine - https://web.archive.org/web/20220315124958/https://github.com/flutter/plugins/pull/4539
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

[webview_flutter] Speculative getTitle fix #4539

Merged
merged 3 commits into from Nov 23, 2021

Conversation

stuartmorgan
Copy link
Contributor

@stuartmorgan stuartmorgan commented Nov 23, 2021

Attempts to fix the getTitle flake by running JS before accessing the
title, to force the page to be fully processed by the native code.

No CHANGELOG change: Description would be the same as something that is
already in the NEXT section.

Speculative fix for flutter/flutter#94117

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

Attempts to fix the getTitle flake by running JS before accessing the
title, to force the page to be fully processed by the native code.

No CHANGELOG change: Description would be the same as something that is
already in the NEXT section.

Speculative fix for flutter/flutter#94117
@stuartmorgan
Copy link
Contributor Author

@stuartmorgan stuartmorgan commented Nov 23, 2021

I'll retry the tests a few times before landing.

@stuartmorgan
Copy link
Contributor Author

@stuartmorgan stuartmorgan commented Nov 23, 2021

Passed once; trying again...

@stuartmorgan
Copy link
Contributor Author

@stuartmorgan stuartmorgan commented Nov 23, 2021

Twice...

@stuartmorgan
Copy link
Contributor Author

@stuartmorgan stuartmorgan commented Nov 23, 2021

Three times (and that's each of the four runs—{master,stable}x{app-facing,impl}—each time). We may have a winner here.

@stuartmorgan stuartmorgan requested a review from ditman Nov 23, 2021
Copy link
Member

@jmagman jmagman left a comment

LGTM. Could also revert the other speculative fix if it didn't work. Up to you though.

@ditman
Copy link
Member

@ditman ditman commented Nov 23, 2021

Could also revert the other speculative fix if it didn't work. Up to you though.

I'm going to give a shot at reverting the other fix in this branch (that'll give us yet another run of the test)

ditman
ditman approved these changes Nov 23, 2021
Copy link
Member

@ditman ditman left a comment

This'll land on red to fix the tree. After tests finish, the flaky test would have passed 4x in a row.

@ditman ditman mentioned this pull request Nov 23, 2021
11 tasks
@ditman ditman merged commit a157a0a into flutter:master Nov 23, 2021
55 of 56 checks passed
@ditman
Copy link
Member

@ditman ditman commented Nov 23, 2021

Merged on red to heal the tree.

engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this issue Nov 23, 2021
amantoux added a commit to amantoux/plugins that referenced this issue Dec 11, 2021
* [webview_flutter] getTitle flake test fix

Attempts to fix the getTitle flake by running JS before accessing the
title, to force the page to be fully processed by the native code.

No CHANGELOG change: Description would be the same as something that is
already in the NEXT section.
KyleFin pushed a commit to KyleFin/plugins that referenced this issue Dec 21, 2021
* [webview_flutter] getTitle flake test fix

Attempts to fix the getTitle flake by running JS before accessing the
title, to force the page to be fully processed by the native code.

No CHANGELOG change: Description would be the same as something that is
already in the NEXT section.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
X Tutup