Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[web] Fix HashUrlStrategy.addPopStateListener #41384

Merged
merged 1 commit into from
Apr 21, 2023

Conversation

ditman
Copy link
Member

@ditman ditman commented Apr 21, 2023

During a JS-interop refactor, we introduced a small bug in the addPopStateListener method of the HashUrlStrategy object (web).

This wasn't caught before because the existing tests were mocking the refactored code.

Issues

Fixes: flutter/flutter#125228

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 Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard flutter-dashboard bot added the platform-web Code specifically for the web engine label Apr 21, 2023
Copy link
Contributor

@mdebbar mdebbar left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this @ditman!

@johnpryan
Copy link

Thank you @ditman!

@ditman ditman added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 21, 2023
@auto-submit auto-submit bot merged commit 8d9f17e into flutter:main Apr 21, 2023
@ditman ditman deleted the replace-state-fix branch April 21, 2023 17:26
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 21, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 21, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Apr 21, 2023
…125324)

flutter/engine@dd67063...462e9bb

2023-04-21 [email protected] [impeller] fixed flake where blit wasn't tracking its texture (flutter/engine#41347)
2023-04-21 [email protected] removing the check_gn_format.py file from ci/  (flutter/engine#41397)
2023-04-21 [email protected] [web] Fix HashUrlStrategy.addPopStateListener (flutter/engine#41384)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
ditman pushed a commit to ditman/flutter-flutter that referenced this pull request Apr 24, 2023
…lutter#125324)

flutter/engine@dd67063...462e9bb

2023-04-21 [email protected] [impeller] fixed flake where blit wasn't tracking its texture (flutter/engine#41347)
2023-04-21 [email protected] removing the check_gn_format.py file from ci/  (flutter/engine#41397)
2023-04-21 [email protected] [web] Fix HashUrlStrategy.addPopStateListener (flutter/engine#41384)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
ditman added a commit to ditman/flutter-engine that referenced this pull request Apr 24, 2023
During a JS-interop refactor, we introduced a small bug in the `addPopStateListener` method of the `HashUrlStrategy` object (web).

This wasn't caught before because the existing tests were mocking the refactored code.

## Issues

Fixes: flutter/flutter#125228

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autosubmit Merge PR when tree becomes green via auto submit App platform-web Code specifically for the web engine
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[beta] GoRouter package failure: DOMException due to replaceState on History
4 participants