Skip to content

Conversation

@pedromassango
Copy link
Member

Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.

Continuation of #9815

Fixes flutter/flutter#157689

Pre-Review Checklist

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

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2 3

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request fixes an accessibility issue in url_launcher_web where the Link widget created duplicate semantic nodes. The change wraps the existing Semantics widget in _buildChild with a MergeSemantics widget to combine the semantic information of the link and its child. A new integration test has been added to verify that a MergeSemantics widget is present in the widget tree for a WebLinkDelegate. The package version has been bumped to 2.4.2 and the CHANGELOG.md has been updated to reflect this fix. My review includes a suggestion to align the new changelog entry with the repository's style guide.

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@pedromassango pedromassango marked this pull request as draft September 16, 2025 20:29
@pedromassango pedromassango marked this pull request as ready for review September 16, 2025 23:45
# Conflicts:
#	packages/url_launcher/url_launcher/example/pubspec.yaml
#	packages/url_launcher/url_launcher/pubspec.yaml
#	packages/url_launcher/url_launcher_ios/pubspec.yaml
#	packages/url_launcher/url_launcher_linux/pubspec.yaml
#	packages/url_launcher/url_launcher_platform_interface/pubspec.yaml
#	packages/url_launcher/url_launcher_web/CHANGELOG.md
#	packages/url_launcher/url_launcher_web/pubspec.yaml
#	packages/url_launcher/url_launcher_windows/pubspec.yaml
Copy link
Contributor

@chunhtai chunhtai left a comment

Choose a reason for hiding this comment

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

LGTM, just a unrelated question not blocking the merge.

matchesSemantics(
isLink: true,
identifier: 'test-link-12',
// linkUrl: 'https://foobar/example?q=1',
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not introduced in this pr, do you know why the semantics node didn't set the link Url? it feels like it should

Copy link
Member Author

@pedromassango pedromassango Jan 13, 2026

Choose a reason for hiding this comment

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

Hmm, I have no idea, it looks like the dev was missing the fix I am trying to land here in order for the test to pass with this line uncommented 🤔 I would need more time to trace it tho and have a proper answer

Copy link
Member Author

@pedromassango pedromassango Jan 13, 2026

Choose a reason for hiding this comment

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

or... it was missing the engine fix I landed last year (as part of this PR), see this comment: https://github.com/flutter/flutter/pull/174473/changes#r2307776968 or your reasoning behind that fix here

Copy link
Collaborator

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

The random formatting change in url_launcher_macos (maybe you ran format there for some reason, but didn't pub get first?) will also need to be reverted to pass CI.

@pedromassango
Copy link
Member Author

The random formatting change in url_launcher_macos (maybe you ran format there for some reason, but didn't pub get first?) will also need to be reverted to pass CI.

Soo confusing, the test was failing because that macos file wasn't formatter correct, so I formatted it according to the CI/Luci output and still failing

@stuartmorgan-g
Copy link
Collaborator

There's no reason for this PR to touch that file or package at all, so the solution is to revert the file, not to reformat it.

@chunhtai
Copy link
Contributor

This usually means you have an out of date pub, try to do flutter update-packages in flutter checkout and make sure it is the latest master branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[url_launcher] Link widget messes up TAB traversal on web

4 participants