Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Web Automation: cookie-related commands don't work correctly
https://bugs.webkit.org/show_bug.cgi?id=171713 <rdar://problem/29829930> Reviewed by Alexey Proskuryakov. Commands that use WebCookieManager directly should complete when the manager's completion handler is called. Otherwise, this will race with subsequent accesses to cookies via the web process (document.cookie). Also, these commands need to use the active browsing context's session ID. They currently use the process pool's storage session, which is wrong since we specially configure automation instances with an ephemeral store. * UIProcess/Automation/WebAutomationSession.cpp: (WebKit::WebAutomationSession::addSingleCookie): (WebKit::WebAutomationSession::deleteAllCookies): Canonical link: https://commits.webkit.org/188641@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@216261 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information