-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Implemented getter to expose current url strategy for web plugins #90708
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
Implemented getter to expose current url strategy for web plugins #90708
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart
Outdated
Show resolved
Hide resolved
|
In case there's no call of Well, that would harm the tree hygiene as it meant a call from The other way would be keeping in sync the default
|
|
I am unsure whether / how I can cover the affiliation with https://github.com/flutter/engine/blob/master/lib/web_ui/lib/src/engine/window.dart#L360 in a test. Do you have an idea of it? |
|
@mdebbar Does it look eligible now? |
mdebbar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
I'm not sure why some of the checks are stuck. You may need to rebase and push to get them to run again. |
|
It looks like the |
|
I think something went wrong with the rebase and we ended up with 140 commits. The PR in its current form is not going to work, it needs to be cleaned up. Do you remember how you rebased? It might help us get things back to normal. If you can get back to a state that only contains your commits, we can redo the rebase correctly. If you aren't too familiar with git, let me know and I'll help. |
mdebbar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR needs clean up before submitting.
c52d991 to
1f932a9
Compare
|
Should be squashed now. Could you check whether it's fine now, @mdebbar? |
|
Alright, squashing did it 😄 Let's wait and see what the tests have to say. |
mdebbar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything is green and ready to go!! 🎉

Implemented a getter exposing the currently present UrlStrategy for the web platform as part of
flutter_web_plugins.This is e.g. required to fix the below-stated issue in the
url_launcherwhich is not able to properly encode an in-app URL inside an HTMLanchorelement'shref.List which issues are fixed by this PR. You must list at least one issue.
If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.