-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[webview_flutter] Calling destroy on webview when flutter part is getting disposed #1886
Conversation
| ## 0.3.10+3 | ||
| ## 0.3.10+4 | ||
|
|
||
| * Don't log an unknown setting key error for 'debuggingEnabled' on iOS. |
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.
the wrong logs
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.
thanks for noticing, I missed that after rebasing with master.
amirh
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.
Thanks!
Overall looks good, we need to add an e2e test that verifies this fix in https://github.com/flutter/plugins/blob/master/packages/webview_flutter/example/test_driver/webview.dart before we can land this.
|
|
||
| ## 0.3.10+3 | ||
|
|
||
| * Don't log an unknown setting key error for 'debuggingEnabled' on iOS. |
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.
please revert
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.
Sorry about confusion with changelog. I added * to that.
|
@amirh I just noticed that you wanted to put some e2e test here. Not sure how I could test that. Any tips/ideas? |
|
as far as I know there's no way of checking if sound still plays in webview. |
You're right, I don't see an obvious way to test this, especially as we've lost the reference to the Android WebView after the platform view has been disposed. Sorry about that. |
amirh
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.
LGTM
Just need to merge/rebase before landing.
|
Got it, thanks! let me rebase and let's merge. |
|
Why not the same logic in ios? I notice there are many of |
…es a deprecated API (flutter#1886) * ignore .flutter-plugins-dependencies * Core, Analytics, Crashlytics fix uses or overrides a deprecated API * update pubspec.yaml and CHANGELOG.md
Description
Webview wasn't properly disposed on android
Related Issues
fixes: flutter/flutter#33299
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]). This will ensure a smooth and quick review process.///).flutter analyze) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?