You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems when the host is null, the cookie manager crashes the application while trying to unwrap the value. I noticed this due to wanting to grab cookies, but the code executed while the page was still on 'about:blank'
I'm not that versed in swift, but have applied these changed to MyCookieManager.swift:
publicstaticfunc getCookies(url:String, result:@escapingFlutterResult){varcookieList:[[String:Any]]=[]lethost=URL(string: url)!.host;
if host !=nil{MyCookieManager.httpCookieStore!.getAllCookies{(cookies)in
for cookie in cookies {
if cookie.domain.contains(host!){
cookieList.append(["name": cookie.name,"value": cookie.value
])}}result(cookieList)}}}
If this code looks fine I can make a PR.
The text was updated successfully, but these errors were encountered:
This issue is stale and has been automatically closed because it has been open for more than 365 days with no activity. Please reopen a new issue if you still have it.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.
It seems when the host is null, the cookie manager crashes the application while trying to unwrap the value. I noticed this due to wanting to grab cookies, but the code executed while the page was still on 'about:blank'
It happens on this line
I'm not that versed in swift, but have applied these changed to MyCookieManager.swift:
If this code looks fine I can make a PR.
The text was updated successfully, but these errors were encountered: