Skip to content

[webview_flutter] Add an option to bypass SSL checks #7893

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

Closed

Conversation

Colman
Copy link

@Colman Colman commented Oct 18, 2024

When the webview encounters an SSL error, there is no option to be able to bypass the error. This PR implements a callback that gets called with the SSL error and certificate details. A decision can be returned to either ignore the error and proceed, or cancel the request.

flutter/flutter#36925

Pre-launch Checklist

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

Sorry, something went wrong.

Colman added 30 commits October 3, 2024 16:48

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
# Conflicts:
#	packages/webview_flutter/webview_flutter/CHANGELOG.md
#	packages/webview_flutter/webview_flutter_android/CHANGELOG.md
#	packages/webview_flutter/webview_flutter_android/pubspec.yaml
#	packages/webview_flutter/webview_flutter_wkwebview/CHANGELOG.md
#	packages/webview_flutter/webview_flutter_wkwebview/lib/src/foundation/foundation.dart
@Colman
Copy link
Author

Colman commented Oct 18, 2024

I still have some tests to add, but I would like a first pass to check for bigger issues

@Colman Colman marked this pull request as ready for review October 18, 2024 22:57
Copy link
Member

@ditman ditman left a comment

Choose a reason for hiding this comment

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

Looks like webview_flutter_web (at least) doesn't have any significant changes and can be reverted?

@Colman
Copy link
Author

Colman commented Oct 22, 2024

Looks like webview_flutter_web (at least) doesn't have any significant changes and can be reverted?

Those changes are needed temporarily because this is a federated plugin. Please see: https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#changing-federated-plugins

@bparrishMines
Copy link
Contributor

This is blocked by the ProxyApi update for Android and iOS. #7794 updates Android, and a similar PR for iOS will follow shortly.

@stuartmorgan-g
Copy link
Contributor

from triage: iOS proxy updates are close to landing, at which point this will finally be unblocked.

@stuartmorgan-g
Copy link
Contributor

@bparrishMines Can you take a look at updating this to the new wrapper?

auto-submit bot pushed a commit that referenced this pull request Apr 14, 2025
…dates native wrapper for `SecTrust` and `SecCertificate` (#9016)

Adds support to the native wrapper to handle `SecTrust` and `SecCertificate`. 

This is a part of landing #7893 by splitting of the native wrapper implementation. 

Also fixes flutter/flutter#162938 and adds an integration test for `loadFlutterAsset`.

## 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.
auto-submit bot pushed a commit that referenced this pull request Apr 14, 2025
…ebViewClient`. (#8964)

This adds the SSL classes for #7893 and a few extra `WebViewClient` methods.

## 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.
@Piinks
Copy link
Contributor

Piinks commented Apr 18, 2025

Greetings from stale PR triage, @stuartmorgan-g is this one still blocked?

@stuartmorgan-g
Copy link
Contributor

No, it's unblocked now and needs to be updated to the new wrapper generator. @bparrishMines is planning on doing that, but has been on higher priority work. It should be pretty soon though.

nick-llewellyn pushed a commit to labrystechnology/flutter_packages that referenced this pull request Apr 23, 2025
…dates native wrapper for `SecTrust` and `SecCertificate` (flutter#9016)

Adds support to the native wrapper to handle `SecTrust` and `SecCertificate`. 

This is a part of landing flutter#7893 by splitting of the native wrapper implementation. 

Also fixes flutter/flutter#162938 and adds an integration test for `loadFlutterAsset`.

## 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.
nick-llewellyn pushed a commit to labrystechnology/flutter_packages that referenced this pull request Apr 23, 2025
…ebViewClient`. (flutter#8964)

This adds the SSL classes for flutter#7893 and a few extra `WebViewClient` methods.

## 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.
@bparrishMines
Copy link
Contributor

This PR doesn't allow me to edit so I took over this feature with: #9150. Closing.

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.

None yet

5 participants