[Webkit-unassigned] [Bug 177478] New: WKWebView XHR cookies not remembered until app is backgrounded
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Sep 25 18:21:13 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=177478
Bug ID: 177478
Summary: WKWebView XHR cookies not remembered until app is
backgrounded
Product: WebKit
Version: Safari Technology Preview
Hardware: iPhone / iPad
OS: iOS 11
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit2
Assignee: webkit-unassigned at lists.webkit.org
Reporter: grant at comfyapp.com
This is related to Bug 140191 but while there seems to be basic cookie access now available in WKWebView, it doesn't work on initial app load.
Steps to Reproduce:
- Create a trivial WKWebView app (mine is a Cordova app using WKWebView)
- In javascript, execute an XHR that receives a session cookie
- Execute another XHR and notice that the session cookie is not sent
- Background, then foreground the app
- Now it will work as expected
I've worked around this by executing an XHR in native code before attempting further XHRs in javascript, but even then, I must wait ~2s before attempting the XHR in javascript. Otherwise the cookies seem to be forgotten again, indefinitely, until either the app is backgrounded or I wait long enough after the native-code XHR.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170926/dab4c577/attachment.html>
More information about the webkit-unassigned
mailing list