|Maurice Parrish <10687576+bparrishMines@users.noreply.github.com>
|Mon Jul 03 19:46:17 2023 -0400
|Mon Jul 03 23:46:17 2023 +0000
[webview_flutter_wkwebview] Fixes inspectable compile-time error and crash from equal `NSURL`s (#4340) Fixes https://github.com/flutter/flutter/issues/128422 by using pointer equality in the `NSMapTable`. From my understanding and testing it seems that the default mode for [NSMapTable](https://developer.apple.com/documentation/foundation/nsmaptable?language=objc) is to copy objects that implement `NSCopyable`. The only class we wrap that does seems to implement `NSCopyable` is `NSURL` so this class eventually led to a race condition where adding an `NSURL` that was equivalent to an already added one would replace the original. Note that we should probably now add an error when adding an already present instance. However, a clear method needs to be added to the `InstanceManager` first so that hot reload will continue working. This is the current solution on Android. Fixes https://github.com/flutter/flutter/issues/129587 by adding a compile-time check around the use of `WKWebView.inspectable`. Solution used from: https://stackoverflow.com/questions/76216183/how-to-debug-wkwebview-in-ios-16-4-1-using-xcode-14-2
This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., packages developed by the core Flutter team). Check the
packages directory to see all packages.
These packages are also available on pub.
If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages. You can store your package source code in any GitHub repository (the present repo is only intended for packages developed by the core Flutter team). Once your package is ready you can publish to the pub repository.
These are the packages hosted in this repository: