summaryrefslogtreecommitdiff
path: root/crocoite
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2018-11-17 11:47:45 +0100
committerLars-Dominik Braun <lars@6xq.net>2018-11-17 11:47:45 +0100
commitbdea8e0d78ec46e7eecdab8b934bd41fc4af7450 (patch)
treeed10dd6470ad0d6995487387fdbe9bf037dcdb6d /crocoite
parent16f12498a18119fcee6d3278aea9d7a7cfdbd7c9 (diff)
downloadcrocoite-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.py5
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):