Skip to content

v6.2.0-beta.1

Latest
Compare
Choose a tag to compare
@pichillilorenzo 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 to InAppWebViewSettings
  • Added JavaScriptHandlerFunctionData type
  • Deprecated JavaScriptHandlerCallback type in favor of JavaScriptHandlerFunction type
  • Deprecated InAppWebViewSettings.forceDark and InAppWebViewSettings.forceDarkStrategy Android-only properties in favor of InAppWebViewSettings.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 when InAppWebViewController.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 on preWKWebViewConfiguration to fix possible undefined 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 and hidden setting for InAppBrowser
  • 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 and UserScript.forMainFrameOnly parameters
  • Implemented onReceivedHttpAuthRequest, onReceivedClientCertRequest, onReceivedServerTrustAuthRequest, onRenderProcessGone, onRenderProcessUnresponsive, onWebContentProcessDidTerminate, onProcessFailed WebView events
  • Implemented clearSslPreferences WebView method
  • Fixed get_optional_fl_map_value implementation in utils/flutter.h
  • Fixed "Error in transparentBackground handling in Windows" #2391

Web Platform

  • Merged "[web] support iframe role and aria-hidden attributes" 2293 (thanks to p-mazhnik)
  • Fixed 'Type 'int' is not a subtype of type 'JSValue' in type cast' when compiling/running using WASM