Skip to content
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

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

Open
wants to merge 46 commits into
base: main
Choose a base branch
from

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.

Colman added 30 commits October 3, 2024 16:48
# 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?

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.

4 participants