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

[CP] [web] Fix HashUrlStrategy.addPopStateListener #41459

Merged

Conversation

ditman
Copy link
Member

@ditman ditman commented Apr 24, 2023

This PR cherry-picks: 8d9f17e

Fixes flutter/flutter#125317


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.

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
@flutter-dashboard
Copy link

This pull request was opened from and to a release candidate branch. This should only be done as part of the official Flutter release process. If you are attempting to make a regular contribution to the Flutter project, please close this PR and follow the instructions at Tree Hygiene for detailed instructions on contributing to Flutter.

Reviewers: Use caution before merging pull requests to release branches. Ensure the proper procedure has been followed.

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

@CaseyHillers im assuming Mac mac_android_aot_engine is no longer a test that runs on release branches.

@CaseyHillers
Copy link
Contributor

@CaseyHillers im assuming Mac mac_android_aot_engine is no longer a test that runs on release branches.

Correct, I can confirm. We should CP in #41210

@itsjustkevin
Copy link
Contributor

Will cherry-pick in with the engine PR.

@itsjustkevin itsjustkevin merged commit 356ec48 into flutter:flutter-3.10-candidate.1 Apr 25, 2023
@ditman ditman deleted the flutter-3.10-candidate.1 branch April 25, 2023 17:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform-web Code specifically for the web engine
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants