[Webkit-unassigned] [Bug 229284] Safari webextension cannot pick up cookies from Safari started by safaridriver

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 21 10:05:19 PDT 2021


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

Lu Xu <thusimon at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thusimon at gmail.com

--- Comment #5 from Lu Xu <thusimon at gmail.com> ---
(In reply to BJ Burg from comment #4)
> Hello Max,
> 
> When being driven by safaridriver, Safari uses what is essentially a private
> browsing session. So cookies that were set before the test session are not
> accessible, and any cookies set in the test session will not be visible
> afterwards. This is pretty fundamental to the design of safaridriver and
> isn't likely to change.
> 
> However, we would consider new API to better support the testing situation
> for Web Extensions in the context of WebDriver. If you have some
> functionality in mind---for example to enable/disable extensions via
> WebDriver API---please file a separate bug with that information.

Hi BJ,
I think this issue is not related with private browsing session. The issue is when using safaridriver, the WebExtension can't obtain all the cookies using this API https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/cookies/getAll.

These cookies are not set before or after the test, these cookies are set from the server after opening the web page.

-- 
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/20210921/048fada2/attachment.htm>


More information about the webkit-unassigned mailing list