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
659c524908
fix #507 again
2021-03-08 10:22:13 +01:00
Lorenzo Pichilli
b41eb693a5
new stable version 5.0.5
2021-03-01 16:43:50 +01:00
Lorenzo Pichilli
74550d1186
Removed all the dependencies: uuid, device_info, intl, and mime
2021-03-01 03:21:07 +01:00
Lorenzo Pichilli
68f98754df
code format
2021-02-22 23:54:09 +01:00
Lorenzo Pichilli
0b0bce66aa
code refactoring, new features, replaced String url to Uri uri everywhere, added URLRequest
2021-02-22 12:16:23 +01:00
Lorenzo Pichilli
cf0c2029ff
Added addUserScript, addUserScripts, removeUserScript, removeUserScripts, removeAllUserScripts WebView methods, Added initialUserScripts WebView option, Added UserScript and UserScriptInjectionTime classes, updated README.md, fix some wrong iOS swift return value on method call handler, added InAppWebViewMethodHandler native class
2021-02-01 15:55:27 +01:00
Lorenzo Pichilli
a04f9eab10
updated ios Cookie Manager, Added IOSCookieManager class and CookieManager.instance().ios.getAllCookies iOS-specific method, updated README.md
2021-01-31 22:08:20 +01:00
Lorenzo Pichilli
77f09dd5b5
fixed iOS getCookies MyCookieManager, Added limited cookies support on iOS below 11.0 using JavaScript
2021-01-30 14:53:32 +01:00
Lorenzo Pichilli
26e63cedee
Added support for Dart null-safety feature, Updated integration tests, Fixed missing properties initialization when using InAppWebViewController.fromInAppBrowser, Removed debuggingEnabled WebView option and added AndroidInAppWebViewController.setWebContentsDebuggingEnabled static method
2021-01-28 17:10:15 +01:00
Lorenzo Pichilli
993c6f60f9
v3.4.0
2020-06-22 00:09:35 +02:00
Lorenzo Pichilli
b9d1482887
added getScrollX and getScrollY webview methods, added HttpOnly and SameSite set cookie options, added animated option to scrollTo and scrollBy webview methods, Added error and message to the ServerTrustChallenge class for iOS, added contentInsetAdjustmentBehavior webview iOS-specific option, added getCertificate android-specific webview method, added copy and copyWithValue methods for webview class options
2020-06-13 03:50:19 +02:00
Lorenzo Pichilli
1b2de86375
added new webview methods, added supporZoom webview option on iOS, bug fixes, prepare new version 3.4.0
2020-06-12 04:04:41 +02:00
Lorenzo Pichilli
ad56ca6621
Added 'toString()' method to various classes in order to have a better output instead of simply 'Instance of ...', updated getOptions() method
2020-05-29 19:56:03 +02:00
Lorenzo Pichilli
7d88cd80be
updated docs
2020-05-29 14:51:26 +02:00
Lorenzo Pichilli
02c3de9280
added HeadlessInAppWebView class, added close, addMenuItem and addMenuItems methods to ChromeSafariBrowser, added ChromeSafariBrowserMenuItem class, fixed InAppWebView.channel null exception on android, fix #305 , fix #245 , fix #299
2020-05-11 02:48:41 +02:00
Lorenzo Pichilli
6a7963e4fd
fixed android zoom, added new ios webview options, added
...
> onLongPressHitTestResult event, updated test cases, fixed Promise polyfill, fixed android options
2020-05-09 04:36:07 +02:00
Lorenzo Pichilli
ade4480c6d
Fixed error 'java.lang.ClassCastException: cannot be cast to android.view.WindowManagerImpl' on Android when using native alert dialogs, updated README.md with Xcode version required
2019-12-01 12:55:06 +01:00
Lorenzo Pichilli
8a356bdef4
renamed plugin to flutter_inappwebview
2019-11-29 16:59:18 +01:00
Lorenzo Pichilli
08b392e8b1
updated docs, updated README.md
2019-11-25 23:04:17 +01:00
Lorenzo Pichilli
ec47b1918d
fixed android content blocker, updated flutter driver tests
2019-11-25 01:42:27 +01:00
Lorenzo Pichilli
44c17d1efe
updated code docs
2019-11-10 14:11:30 +01:00
Lorenzo Pichilli
6518697e55
added onFindResultReceived event, added findAllAsync, findNext and clearMatches methods
2019-11-02 04:16:47 +01:00
Lorenzo Pichilli
68ff79c716
added HttpAuthCredentialDatabase class, clearCache method, onReceivedHttpAuthRequest event
2019-10-31 03:20:07 +01:00
Lorenzo Pichilli
49983cfdaf
added onDownloadStart event, onLoadResourceCustomScheme event and resourceCustomSchemes option, onTargetBlank event and useOnTargetBlank option, code refactoring
2019-10-26 04:42:50 +02:00