Commit Graph

246 Commits

Author SHA1 Message Date
Lorenzo Pichilli 083d1ffffd CookieManager.deleteCookie and CookieManager.deleteCookies now have the domain argument optional and without a default value 2022-10-14 00:47:54 +02:00
Lorenzo Pichilli b6db461c70 added default localhost server path with _directoryIndex if it is empty 2022-10-13 20:35:34 +02:00
Lorenzo Pichilli ecd126c5bd
Merge pull request #1319 from fa0311/master
Add directoryIndex and documentRoot to InAppLocalhostServer option
2022-10-13 20:14:16 +02:00
Lorenzo Pichilli 741eb3964a
Merge pull request #1302 from Doflatango/fix/get_favicons_exception
Catch and ignore utf8 format exception in getFavicons()
2022-10-13 19:53:55 +02:00
Lorenzo Pichilli ebd887846f updated cookie manager setCookie docs 2022-10-13 19:52:11 +02:00
Lorenzo Pichilli 069594a8cf
Merge pull request #1295 from bagedevimo/allow-no-domain
Allow a cookie without a domain to be set on Android
2022-10-13 19:39:58 +02:00
Lorenzo Pichilli e46523aef3 Fixed iOS 14.0 crash when calling callAsyncJavaScript method 2022-10-13 14:21:26 +02:00
ふぁ 99c083a02b add documentRoot option 2022-09-16 03:57:15 +09:00
ふぁ 022657d53a add directoryIndex option 2022-09-16 03:55:52 +09:00
Doflatango 3b735a7965 Catch and ignore utf8 format exception in getFavicons() 2022-09-02 19:48:35 +08:00
Ben Anderson a5be2c59be Allow a cookie without a domain to be set on Android
The other CookieManager implementations in Flutter allow for no domain,
as the Android CookieManager implementation. By providing a default
domain, applications cannot opt-out of the default
CookieManager.setCookie behaviour (which prepends a "period" to the
domain), which is treated as a different domain by Webkit on Android.
This leads to multiple cookies for the same URL if the server serves a
cookie without a domain, or with a domain that does not contain a
leading period.

Note, iOS's setCookie doesn't take a url parameter (at least in the way
it's called from flutter_inappwebview) and instead this is passed an
attribute on the HTTPCookie object itself (originURL). When constructing
a HTTPCookie you must supply either originURL OR domain. Both a
permitted, but at least one must be present. [1]

By making domain optional, without a default, on both platforms,
consumers can now set cookies that don't use the domain attribute but
still allows for setting a domain when required.

[1] https://developer.apple.com/documentation/foundation/httpcookie/1392975-init
2022-08-30 15:29:05 +12:00
Lorenzo Pichilli a6cb4105b1 fix #1173 2022-05-05 21:46:14 +02:00
Lorenzo Pichilli 8e06d1d1b4 fix deprecated reference in doc 2022-05-05 21:23:00 +02:00
Lorenzo Pichilli c947ad0e5f format 2022-04-28 21:17:44 +02:00
Lorenzo Pichilli 18c3e04fd2 fix #1164 2022-04-28 21:16:58 +02:00
Lorenzo Pichilli 9aa812e130 added Bitwise OR operator support for AndroidActionModeMenuItem class 2022-04-26 21:24:21 +02:00
Lorenzo Pichilli 9a09e93656 updated version 2022-04-25 17:43:22 +02:00
Lorenzo Pichilli e07ba2a675 fix #1152 2022-04-25 17:39:04 +02:00
Lorenzo Pichilli ce6e9066ba Fixed Android error in some cases when calling setServiceWorkerClient java method on ServiceWorkerManager initialization 2022-04-22 16:24:41 +02:00
Lorenzo Pichilli 304792c020 fixed AndroidChromeCustomTabsOptions.addDefaultShareMenuItem docs 2022-04-19 02:12:15 +02:00
Lorenzo Pichilli 7307d473fa dartfmt, fixed pubspec.yaml 2022-04-19 00:42:57 +02:00
Lorenzo Pichilli 1eaf70a046 merge 2022-04-18 01:26:39 +02:00
Lorenzo Pichilli 4cffd1da73 Merge branch 'possibility_disable_ios_inputAccessoryView' of https://github.com/ppldo/flutter_inappwebview into ppldo-possibility_disable_ios_inputAccessoryView 2022-04-18 01:16:59 +02:00
Lorenzo Pichilli 194106b802 updated docs for ChromeSafariBrowserMenuItem 2022-04-17 21:51:15 +02:00
Lorenzo Pichilli 5510fd342f Added support for Android TWA (Trusted Web Activity) 2022-04-17 21:47:35 +02:00
Lorenzo Pichilli c61019058c updated deprecated custom tabs builder method, added shareState android option for ChromeSafariBrowser 2022-04-17 19:05:16 +02:00
Lorenzo Pichilli 22649342e8 added onDownloadStartRequest event 2022-04-17 16:19:31 +02:00
Lorenzo Pichilli 1e287fd1d3 Merge branch 'ashank-patch' of https://github.com/ashank96/flutter_inappwebview into ashank96-ashank-patch 2022-04-16 12:38:52 +02:00
Lorenzo Pichilli a34ea8026b
Merge pull request #1064 from RodXander/master
Fixed the unexpected behavior of InAppWebView and HeadlessInAppWebVie…
2022-04-16 11:29:21 +02:00
Lorenzo Pichilli f52f832656 merge 2022-04-16 01:10:57 +02:00
Lorenzo Pichilli 85e45ca00a updated changelog, fixed implementation param when creating headless webview 2022-04-16 00:30:28 +02:00
Lorenzo Pichilli 604ca71f50
Merge pull request #879 from milkinteractive/master
fix: use in NavigationAction request toMap method
2022-04-15 23:40:45 +02:00
Lorenzo Pichilli ca42fe0c26 merge 2022-04-15 23:24:07 +02:00
Lorenzo Pichilli 710fc1e021 Added singleInstance option for Android ChromeSafariBrowser implementation, updated android compileSdkVersion to 31 2022-04-15 23:18:54 +02:00
Lorenzo Pichilli f074b7a011 created android InAppWebViewInterface to implement other android webview engines, getOriginalUrl method is cross-platform now, Fixed requestImageRef method always null on iOS 2022-04-15 19:20:35 +02:00
Sergey Salnikov 3a886f59f1 added boolean switch inputAccessoryView 2022-03-17 15:09:33 +03:00
ashank96 8f43faf832 expose contentdisposition and contentlength from android 2022-02-17 15:00:46 +05:30
RodXander 440ff81803 Fixed the unexpected behavior of InAppWebView and HeadlessInAppWebView when initialUrlRequest was set as null. 2021-12-22 16:51:38 -06:00
Adrien Jalabert 961065ef3a Remove charset of binary files 2021-12-14 21:58:55 +01:00
Adrien Jalabert 3a36aec87e Add wasm mime type 2021-12-13 17:56:34 +01:00
Christoph Eck bedceb0a14 fix: use in NavigationAction request toMap method 2021-06-14 16:56:26 +02:00
savy91 6e18699dd5 Make sure that when we want to open a new instance of a custom chrome tab, we are opening a new instance with the provided url and not an old instance. 2021-04-19 17:51:24 +02:00
Lorenzo Pichilli f06bcdf695 Added onLoad and onError callbacks in ScriptHtmlTagAttributes class used by InAppWebViewController.injectJavascriptFileFromUrl, InAppWebViewController.injectJavascriptFileFromAsset returns a Future<dynamic> type now 2021-04-07 18:34:35 +02:00
Lorenzo Pichilli 539ff0dedc Removed duplicate lib exports, Fixed some rare cases when iOS WKWebView scrollViewDidEndDragging event blocks the scroll gesture 2021-04-06 11:54:42 +02:00
Lorenzo Pichilli ffaa28a250 fix #776, fix #748, Added support of allowingReadAccessTo iOS-specific WebView option for the WebView initialData parameter, Added iosAllowingReadAccessTo iOS-specific parameter to the loadData WebView method 2021-04-02 15:18:28 +02:00
Lorenzo Pichilli babbfa16eb improved HeadlessInAppWebView setSize and getSize docs 2021-03-30 18:34:49 +02:00
Lorenzo Pichilli ac000804b9 Updated auto-comment.yml 2021-03-30 18:20:17 +02:00
Lorenzo Pichilli 7d6c88d622 fix #765, Fixed InAppWebViewController.getHitTestResult wrong type mapping, added auto-comment.yml 2021-03-30 18:15:50 +02:00
Lorenzo Pichilli 71a8fe23ea fix #732, fix #759, Fixed Android ChromeSafariBrowser menu item callback not called because of PendingIntents extra were cached 2021-03-28 04:17:09 +02:00
Lorenzo Pichilli 22ea0091cd Added initialSize property and setSize/getSize methods to the HeadlessInAppWebView class, androidOnScaleChanged event is deprecated - use onZoomScaleChanged event, getScale method is deprecated - use getZoomScale method, Removed final keyword for all HeadlessInAppWebView events, Fixed wrong usage of Android WebView scale property 2021-03-26 21:04:44 +01:00