[Webkit-unassigned] [Bug 198554] Unable to get cookies from WKWebView

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 6 08:48:37 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=198554

--- Comment #9 from Chris Dumez <cdumez at apple.com> ---
(In reply to Jeremy Schonfeld from comment #7)
> I have copied the key parts of the app I am working with relating to the
> login view into a simple xcode project to demonstrate. While doing this, I
> have narrowed down the problem. The main view of the app has a separate
> WKWebView that displays announcements. When the app launches to the initial
> view controller (this main view controller) and the app sees the user has
> not logged in, it presents the login view controller on top of the main view
> controller. Then after login, the login view controller is dismissed and the
> WKWebView on the main view controller loads content while logged in. If I
> set the login view controller to be the initial view controller (with no
> WKWebView in a view controller underneath), the delegate works just fine.
> However, if there is a WKWebView in a view controller underneath the
> presented login view controller (simply instantiated, not having loaded any
> content), the delegate does not function. Looking at this sample project, is
> this a bug, or if not could you explain why this behavior occurs and how I
> should avoid this issue? I've attached a zip file containing the project to
> this bug report.

Do you mean that the WKWebView is not visible during some period of time? If so, it is possible the WebView's child processes are getting suspended. On iOS, processes gets suspended aggressively and a view that is not visible is not allowed to keep "running" (i.e. its processes get suspended) shortly after load completes.

-- 
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/20190606/cc0d920a/attachment.html>


More information about the webkit-unassigned mailing list