Commit Graph

204 Commits

Author SHA1 Message Date
Lorenzo Pichilli 0da11b34ff updated pubspec.yaml version 2022-10-13 22:31:26 +02:00
Lorenzo Pichilli 5a65dd4fef
Merge pull request #1344 from perffecto/fix-ios-created-callback
fix(ios): invoke onBrowserCreated when viewDidLoad is called with win…
2022-10-13 21:08:05 +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 568079359d iOS - Load client certificate from local storage 2022-10-13 17:43:38 +02:00
Lorenzo Pichilli fbc8e5decd updated js code arrayBufferToString 2022-10-13 15:59:50 +02:00
Lorenzo Pichilli cb2f02da04
Merge pull request #1208 from liasica/master
Fix RangeError: Maximum call stack size exceeded
2022-10-13 15:52:35 +02:00
Lorenzo Pichilli 4d41b1b4df
Update JavaScriptBridgeJS.swift
replaced js arrayBufferToString uint8Array.reduce arrow function with normal function
2022-10-13 15:49:09 +02:00
Lorenzo Pichilli e46523aef3 Fixed iOS 14.0 crash when calling callAsyncJavaScript method 2022-10-13 14:21:26 +02:00
liasica f82a8d413a
Merge branch 'pichillilorenzo:master' into master 2022-10-13 11:02:01 +08:00
Lorenzo Pichilli 4e3c17842d Fixed missing PullToRefreshController.isRefreshing iOS implementation, Fixed Android PullToRefreshController.setEnabled at runtime, Fixed iOS findNext 2022-10-12 21:25:49 +02:00
Serjke Sorochinskiy 2f48b81403 fix(ios): invoke onBrowserCreated when viewDidLoad is called with windowId 2022-09-30 15:42:37 +04: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
CodeEagle 252d836d52
change: make contentWorldWrapper private 2022-08-24 18:46:17 +08:00
CodeEagle 06f87e81c4 change: fixed Xcode 14 build error 2022-06-29 14:51:45 +08:00
liasica 4fa28b0798 Fix RangeError: Maximum call stack size exceeded 2022-06-05 00:41:27 +08:00
Lorenzo Pichilli a6cb4105b1 fix #1173 2022-05-05 21:46:14 +02:00
Lorenzo Pichilli ad04812a6e fix #1159 2022-04-28 13:39:59 +02:00
Lorenzo Pichilli 2d31a2f58b Managed iOS native detachFromEngine flutter plugin event and updated dispose methods, Updated Android native HeadlessInAppWebViewManager.dispose and HeadlessInAppWebView.dispose methods 2022-04-23 04:02:37 +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 50793429d7
Merge pull request #1123 from kryptogo/master
Fix takeScreenshot Crash on iOS
2022-04-18 01:08:39 +02:00
Lorenzo Pichilli 23edf4054f
Update InAppWebViewMethodHandler.swift 2022-04-17 17:17:11 +02:00
Lorenzo Pichilli 8c8c4f4675
Merge branch 'develop' into manuito-zoomBy 2022-04-17 17:13:57 +02:00
Lorenzo Pichilli 65e06984cb fix #1092 2022-04-17 16:43:16 +02:00
Lorenzo Pichilli bee61b35f2 Merge branch 'Feature/Fix-persistance' of https://github.com/EA-YOUHOU/flutter_inappwebview into EA-YOUHOU-Feature/Fix-persistance 2022-04-17 16:37:46 +02:00
Lorenzo Pichilli 22649342e8 added onDownloadStartRequest event 2022-04-17 16:19:31 +02:00
Lorenzo Pichilli c55e468c7e updated some .gitignore files, deleted gradle wrapper android plugin directory 2022-04-16 12:17:50 +02:00
Lorenzo Pichilli f06097114d
Merge pull request #1017 from hoanglm4/master
fix. Crash happens when HeadlessInAppWebView's dispose function is called in iOS
2022-04-16 00:24:49 +02:00
Lorenzo Pichilli 6635a7e8df
Update HeadlessInAppWebView.swift 2022-04-16 00:24:16 +02:00
Lorenzo Pichilli d2520ca80b
Merge pull request #991 from Miiha/bugfix/url-request-mapping
Adds missing body to URLRequest mapping.
2022-04-16 00:00:01 +02:00
Lorenzo Pichilli 27c3e71faf
Merge branch 'develop' into patch-1 2022-04-15 23:46:12 +02:00
Lorenzo Pichilli 65e00b8d97
Merge pull request #1095 from sunalwaysknows/master
fix: ApplicationNameForUserAgent is not working in iOS
2022-04-15 20:35:50 +02:00
Lorenzo Pichilli af460d6746
Update InAppWebView.swift
removed setting `applicationNameForUserAgent` property from `prepare` method.
2022-04-15 20:35:23 +02:00
Lorenzo Pichilli d1aa8b0281
Merge pull request #828 from ItsCalebJones/bugfix/parsing_error
Fix parsing crash on null value.
2022-04-15 20:16:41 +02:00
Lorenzo Pichilli 099223a24e
Update Options.swift 2022-04-15 20:16:10 +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
Po-Jui Chen 47ef668273
fix takeScreenshot crash 2022-03-16 11:15:33 +08:00
Manuito83 d2730d75bc Fixes zoomBy with floats 2022-03-06 14:59:14 +01:00
sunalwaysknows d8d84053bc Update: Append optional applicationNameForUserAgent to configrational applicationNameForUserAgent 2022-02-26 11:06:25 +08:00
gitlab.scripts 93187105f4 fix persistance 2022-02-24 13:38:13 +01:00
Le Minh Hoang 42743f23eb
fix. Crash happens when HeadlessInAppWebView's dispose function is called in iOS 2021-10-24 23:11:21 +07:00
Michael Kao 4e47efe111 Adds missing body to URLRequest mapping. 2021-09-28 12:02:24 +02:00
cloudygeek 3c60c15a81
Update Options.swift
checking if object is null before checking if nil. causes to crash if null.
2021-06-18 09:27:27 +01:00
Caleb Jones 19ffe781e6 Fix parsing crash on null value. 2021-05-03 10:31:54 -04: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 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
Lorenzo Pichilli 14d06fad48 Fixed iOS 'Unexpectedly found nil while unwrapping an Optional value: file flutter_inappwebview/WKUserContentController.swift, line 36' error when applePayAPIEnabled iOS-specific WebView option is enabled 2021-03-25 12:01:05 +01:00