Skip to content

[url_launcher] Remove nested third_party safari checker - #4330

Merged
auto-submit[bot] merged 11 commits into
flutter:mainfrom
victorsanni:safari_check
Jul 6, 2023
Merged

auto-submit[bot] merged 11 commits into
flutter:mainfrom
victorsanni:safari_check

Conversation

@victorsanni

@victorsanni victorsanni commented Jun 27, 2023 •

Copy link
Copy Markdown
Contributor

Remove nested third_party safari checker

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.
  • [x ] I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the package 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.

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

@victorsanni
victorsanni requested a review from ditman as a code owner June 27, 2023 20:01
@flutter-dashboard

Copy link
Copy Markdown

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 (don't just cc him here, he won't see it! He's on Discord!).

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.

@ditman ditman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for your contribution @victorsanni!

It needs a few fixes to land. Please check the failed "Checks" section for more info (I copied the most relevant bits under some of my comments). All checks need to pass before we can merge this!

Thanks!

Comment thread packages/url_launcher/url_launcher_web/lib/url_launcher_web.dart Outdated
Comment thread packages/url_launcher/url_launcher_web/lib/url_launcher_web.dart Outdated
Comment thread packages/url_launcher/url_launcher_web/lib/url_launcher_web.dart
@victorsanni
victorsanni requested a review from ditman June 29, 2023 15:14
@ditman

ditman commented Jun 29, 2023 •

Copy link
Copy Markdown
Member

The feature is tested, tests exist here:

@ditman ditman added autosubmit Merge PR when tree becomes green via auto submit App and removed needs tests labels Jun 29, 2023
@ditman

ditman commented Jun 29, 2023 •

Copy link
Copy Markdown
Member

Thanks @victorsanni! This'll auto-land soon!

@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jun 29, 2023
@auto-submit

auto-submit Bot commented Jun 29, 2023

Copy link
Copy Markdown
Contributor

auto label is removed for flutter/packages, pr: 4330, due to This PR has not met approval requirements for merging. You are not a member of flutter-hackers and need 1 more review(s) in order to merge this PR.

  • Merge guidelines: You need at least one approved review if you are already part of flutter-hackers or two member reviews if you are not a flutter-hacker before re-applying the autosubmit label. Reviewers: If you left a comment approving, please use the "approve" review action instead.

@stuartmorgan-g stuartmorgan-g left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM with nit.

Do were already have tests covering Safari detection?

Comment thread packages/url_launcher/url_launcher_web/CHANGELOG.md Outdated
Comment thread packages/url_launcher/url_launcher_web/lib/url_launcher_web.dart Outdated
@ditman

ditman commented Jun 30, 2023

Copy link
Copy Markdown
Member

Do we already have tests covering Safari detection?

The tests verify that stuff works as expected when a navigator identifies itself as Safari (and when it doesn't). We don't have tests running on Safari though, the difference is tested by mocking the navigator values.

Removed redundant check for 'Apple Computer, Inc.' vendor
Comment thread packages/url_launcher/url_launcher_web/lib/url_launcher_web.dart
Comment thread packages/url_launcher/url_launcher_web/CHANGELOG.md Outdated
@ditman

ditman commented Jul 6, 2023

Copy link
Copy Markdown
Member

I think this is ready to go! Thanks @victorsanni for the clean-up!

@ditman ditman added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 6, 2023
@auto-submit
auto-submit Bot merged commit 443e041 into flutter:main Jul 6, 2023
@victorsanni
victorsanni deleted the safari_check branch July 6, 2023 23:39
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 7, 2023
auto-submit Bot pushed a commit to flutter/flutter that referenced this pull request Jul 7, 2023
flutter/packages@771ec9b...9bcf4bf

2023-07-07 [email protected] [ci] Add LUCI web platform tests (flutter/packages#4391)
2023-07-07 [email protected] [webview_flutter] Enable unawaited_futures lint (flutter/packages#4271)
2023-07-07 [email protected] [ci] Add partial LUCI version of repo_checks (flutter/packages#4389)
2023-07-06 49699333+dependabot[bot]@users.noreply.github.com Bump ossf/scorecard-action from 2.1.3 to 2.2.0 (flutter/packages#4302)
2023-07-06 [email protected] [webview_flutter_android][webview_flutter_wkwebview] Fixes unawaited_futures violations (flutter/packages#4354)
2023-07-06 [email protected] [local_auth] Update Windows Pigeon version (flutter/packages#4388)
2023-07-06 [email protected] [url_launcher] Remove nested third_party safari checker (flutter/packages#4330)
2023-07-06 [email protected] [ci] Add partial LUCI Android platform tests (flutter/packages#4381)
2023-07-06 [email protected] [ci] Switch `master` Linux custom package tests to LUCI (flutter/packages#4386)
2023-07-06 [email protected] [go_router] Exposes package-level privates (flutter/packages#4380)
2023-07-06 [email protected] [file_selector] Update to 1.0 (flutter/packages#4362)
2023-07-06 [email protected] Roll Flutter from 35085c3 to bc49cd1 (14 revisions) (flutter/packages#4387)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [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
@reidbaker reidbaker mentioned this pull request Aug 4, 2023
10 of 11 tasks
auto-submit Bot pushed a commit that referenced this pull request May 5, 2026
The third-party code in `url_launcher_web` was removed in #4330, and `bsdiff` was removed in #502, but we never removed:
- The top-level LICENSE file entry for the code in `url_launcher_web`
- The repo tooling allowance for those copyright/license blocks

This removes those remaining pieces.

Part of flutter/flutter#129575

## Pre-Review Checklist

[^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.
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
Remove nested third_party safari checker

- Replace nested third party safari checker with clean room implementation. 
- Fixes flutter/flutter#129575

- [x ] I read and followed the [relevant style guides] and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages repo does use `dart format`.)
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
The third-party code in `url_launcher_web` was removed in flutter#4330, and `bsdiff` was removed in flutter#502, but we never removed:
- The top-level LICENSE file entry for the code in `url_launcher_web`
- The repo tooling allowance for those copyright/license blocks

This removes those remaining pieces.

Part of flutter/flutter#129575

## Pre-Review Checklist

[^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.
bisor0627 pushed a commit to bisor0627/packages that referenced this pull request Jun 19, 2026
Remove nested third_party safari checker

- Replace nested third party safari checker with clean room implementation. 
- Fixes flutter/flutter#129575

- [x ] I read and followed the [relevant style guides] and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages repo does use `dart format`.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App p: url_launcher platform-web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[url_launcher_web] Remove third_party code from package.

3 participants