pichillilorenzo
released this
05 Nov 16:03
·
44 commits
to master
since this release
- Updated dependencies to the latest versions for all platform implementations:
flutter_inappwebview_platform_interface
:^1.3.0
->^1.4.0-beta.1
flutter_inappwebview_android
:^1.1.3
->^1.2.0-beta.1
flutter_inappwebview_ios
:^1.1.2
->^1.2.0-beta.1
flutter_inappwebview_macos
:^1.1.2
->^1.2.0-beta.1
flutter_inappwebview_web
:^1.1.2
->^1.2.0-beta.1
flutter_inappwebview_windows
:^0.6.0
->^0.7.0-beta.1
Implemented security features to better manage access to the native javascript bridge.
Platform Interface
- Updated static
fromMap
implementation for some classes - Updated
kJavaScriptHandlerForbiddenNames
list - Added
PlatformInAppLocalhostServer.onData
parameter to set a custom on data server callback - Added
javaScriptBridgeEnabled
,javaScriptBridgeOriginAllowList
,javaScriptBridgeForMainFrameOnly
,pluginScriptsOriginAllowList
,pluginScriptsForMainFrameOnly
,javaScriptHandlersOriginAllowList
,javaScriptHandlersForMainFrameOnly
,scrollMultiplier
InAppWebViewSettings parameters - Added
setJavaScriptBridgeName
,getJavaScriptBridgeName
static WebView controller methods - Added
requestFocus
WebView method - Added
onProcessFailed
WebView event - Added
regexToAllowSyncUrlLoading
Android-specific property toInAppWebViewSettings
- Added
JavaScriptHandlerFunctionData
type - Deprecated
JavaScriptHandlerCallback
type in favor ofJavaScriptHandlerFunction
type - Deprecated
InAppWebViewSettings.forceDark
andInAppWebViewSettings.forceDarkStrategy
Android-only properties in favor ofInAppWebViewSettings.algorithmicDarkeningAllowed
- Fixed X509Certificate PEM base64 decoding
- Fixed specific URLAuthenticationChallenge type for
onReceivedHttpAuthRequest
,onReceivedServerTrustAuthRequest
,onReceivedClientCertRequest
events
Android Platform
- Added
InAppWebViewController.enableSlowWholeDocumentDraw
static method - Added
CookieManager.flush
method - Added support for
UserScript.forMainFrameOnly
parameter - Implemented
requestFocus
WebView method - Updated UserScript at document end implementation
- Updated
InAppWebViewController.takeScreenshot
implementation to support screenshot out of visible viewport whenInAppWebViewController.enableSlowWholeDocumentDraw
is called - Fixed "After dispose a InAppWebViewKeepAlive using InAppWebViewController.disposeKeepAlive. NullPointerException is thrown when main activity enter destroyed state." #2025
- Fixed crash when trying to open InAppBrowser with R.menu.menu_main on release mode
- Fixed "android.webkit.WebSettingsWrapper cannot be cast to com.android.webview.chromium.ContentSettingsAdapter" #2397
- Merged "Prevent blank InAppBrowser Activity from being restored" #1984 (thanks to ShuheiSuzuki-07)
- Merged "Update Android Cookie Expiration date format to 24-hour format (HH)" #2389 (thanks to takuyaaaaaaahaaaaaa)
- Merged "[Android] allow sync navigation requests using a regular expression" #2008 (thanks to lyb5834)
macOS and iOS Platforms
- Implemented
requestFocus
WebView method - Updated ConsoleLogJS internal PluginScript to main-frame only as using it on non-main frames could cause issues such as #1738
- Moved
WKUserContentController
initialization onpreWKWebViewConfiguration
to fix possibleundefined is not an object (evaluating 'window.webkit.messageHandlers')
javascript error - Added support for
UserScript.allowedOriginRules
parameter - Merged "change priority of DispatchQueue" #2322 (thanks to nnnlog)
- ios: Fixed
show
,hide
methods andhidden
setting forInAppBrowser
- macOS: Implemented also
clearFocus
WebView method - macOS: Implemented workaround for "[macOS] Copy Shortcut does not work if TextField outside of WebView has focus" #2380
Windows Platform
- Updated
scrollMultiplier
default value from 6 to 1 - Added support for
UserScript.allowedOriginRules
andUserScript.forMainFrameOnly
parameters - Implemented
onReceivedHttpAuthRequest
,onReceivedClientCertRequest
,onReceivedServerTrustAuthRequest
,onRenderProcessGone
,onRenderProcessUnresponsive
,onWebContentProcessDidTerminate
,onProcessFailed
WebView events - Implemented
clearSslPreferences
WebView method - Fixed
get_optional_fl_map_value
implementation inutils/flutter.h
- Fixed "Error in transparentBackground handling in Windows" #2391