diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2018-11-17 11:47:45 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2018-11-17 11:47:45 +0100 |
commit | bdea8e0d78ec46e7eecdab8b934bd41fc4af7450 (patch) | |
tree | ed10dd6470ad0d6995487387fdbe9bf037dcdb6d /crocoite | |
parent | 16f12498a18119fcee6d3278aea9d7a7cfdbd7c9 (diff) | |
download | crocoite-bdea8e0d78ec46e7eecdab8b934bd41fc4af7450.tar.gz crocoite-bdea8e0d78ec46e7eecdab8b934bd41fc4af7450.tar.bz2 crocoite-bdea8e0d78ec46e7eecdab8b934bd41fc4af7450.zip |
browser: clearBrowserCookies is supported unconditionally
canClearBrowserCookies apparently has been removed from protocol 1.3.
Diffstat (limited to 'crocoite')
-rw-r--r-- | crocoite/browser.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crocoite/browser.py b/crocoite/browser.py index 1b6debf..91f0a0a 100644 --- a/crocoite/browser.py +++ b/crocoite/browser.py @@ -182,11 +182,8 @@ class SiteLoader: tab.Page.enable (), tab.Inspector.enable (), tab.Network.clearBrowserCache (), + tab.Network.clearBrowserCookies (), ]) - resp = await tab.Network.canClearBrowserCookies () - if resp['result']: - await tab.Network.clearBrowserCookies () - return self async def __aexit__ (self, exc_type, exc_value, traceback): |