Uh oh!
There was an error while loading. Please reload this page.
[webview_flutter_wkwebview] Adds the isInspectable to WebKitWebViewController. - #3984
Conversation
…wController`. Starting from iOS version 16.4, it is now possible to change the value of the isInspectable property in WKWebView.
stuartmorgan-g
commented
May 15, 2023
Thanks for the contribution!
Could you file an issue providing more context on this, especially since the Apple docs don't explain it? That would be helpful for reviewers, and for future understanding of this PR in context. This will also need native unit tests that validate that it's actually calling the relevant API. |
Since iOS 16.4, the Web Inspector feature is disabled by default. Here is a blog post from WebKit that discusses this Apple Developer Forums thread (iOS 16.4 webview can not debug in safari web inspector) |
cyanglaz
commented
May 16, 2023
@GwonHyeok Thanks for the explanation! This makes sense. Please follow the instructions in #3984 (comment) before we can review and land this. I think your comment is clear enough so you can copy it over to the issue that you will create. |
GwonHyeok
commented
May 16, 2023
I have created an issue for this PR and assigned it. |
cyanglaz
commented
May 16, 2023
Awesome, thank you! Please also do this:
|
GwonHyeok
commented
May 16, 2023
I added native unit tests for this PR. 👍🏻 |
bparrishMines
left a comment
There was a problem hiding this comment.
Thanks for the contribution!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
GwonHyeok
commented
May 20, 2023
I have reviewed all the feedback you provided and have committed the changes. |
bparrishMines
left a comment
There was a problem hiding this comment.
LGTM
cc @stuartmorgan / @cyanglaz for secondary review
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…_kit/web_kit.dart Co-authored-by: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com>
…kit_webview_controller.dart Co-authored-by: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com>
# Conflicts: # packages/webview_flutter/webview_flutter_wkwebview/CHANGELOG.md # packages/webview_flutter/webview_flutter_wkwebview/pubspec.yaml
GwonHyeok
commented
May 26, 2023
resolved the issue caused by a conflict with the release of version 3.4.4. |
GwonHyeok
commented
May 31, 2023
@bparrishMines@cyanglaz@stuartmorgan Hello, |
stuartmorgan-g
commented
May 31, 2023
Because I was out of office for a significant portion of the time since I was added to the review list, and this review is only one of many things I have on my plate. |
Uh oh!
There was an error while loading. Please reload this page.
| - (void)setInspectableForWebViewWithIdentifier:(NSNumber *)identifier | ||
| inspectable:(NSNumber *)inspectable | ||
| error:(FlutterError *_Nullable *_Nonnull)error { | ||
| if (@available(macOS 13.3, iOS 16.4, tvOS 16.4, *)) { |
There was a problem hiding this comment.
This should also provide a FlutterError for unsupported versions. See https://github.com/flutter/packages/blob/main/packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFUserContentControllerHostApi.m#L55
There was a problem hiding this comment.
FWFUnsupportedVersionError has been added.
# Conflicts: # packages/webview_flutter/webview_flutter_wkwebview/CHANGELOG.md
tall-nuts
commented
Jun 27, 2023
ARC Semantic Issue (Xcode): No visible @interface for 'FWFWebView' declares the selector 'setInspectable:' |
stuartmorgan-g
commented
Jun 27, 2023
@PengfeiGao In the future, please use the issue tracker to report issues. That's flutter/flutter#129587 |
…itWebViewController`. (flutter/packages#3984)
flutter/packages@6b70804...f89ce02 2023-06-27 hansmuller@google.com Updated rfw/test/material_widgets_test.dart for M3 (flutter/packages#4316) 2023-06-27 tarrinneal@gmail.com [shared_preferences] Adds new `clearWithParameters` and `getAllWithParameters` methods to platform interface. (flutter/packages#4261) 2023-06-26 engine-flutter-autoroll@skia.org Roll Flutter from 042c036 to 96a2c05 (60 revisions) (flutter/packages#4313) 2023-06-26 10687576+bparrishMines@users.noreply.github.com [file_selector_android] Create initial Android implementation of the file_selector package (flutter/packages#3814) 2023-06-26 49699333+dependabot[bot]@users.noreply.github.com [in_app_pur]: Bump org.json:json from 20230227 to 20230618 in /packages/in_app_purchase/in_app_purchase/example/android/app (flutter/packages#4244) 2023-06-26 me@ghyeok.io [webview_flutter_wkwebview] Adds the `isInspectable` to `WebKitWebViewController`. (flutter/packages#3984) 2023-06-26 stuartmorgan@google.com [ci] Remove jcenter from legacy project (flutter/packages#4306) 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 flutter-ecosystem@google.com,rmistry@google.com 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
Fixes: flutter/flutter#126899
Starting from iOS version 16.4, it is now possible to change the value of the isInspectable property in WKWebView.
https://developer.apple.com/documentation/webkit/wkwebview/4111163-isinspectable
Since iOS 16.4, the Web Inspector feature is disabled by default.
Therefore, to use Web Inspector, need to change the value of isInspectable.
Here is a blog post from WebKit that discusses this
https://webkit.org/blog/13936/enabling-the-inspection-of-web-content-in-apps/
Apple Developer Forums thread (iOS 16.4 webview can not debug in safari web inspector)
https://developer.apple.com/forums/thread/727049
Pre-launch Checklist
dart format.)[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style.///).If you need help, consider asking for advice on the #hackers-new channel on Discord.