summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2018-12-02 11:57:05 +0100
committerLars-Dominik Braun <lars@6xq.net>2018-12-02 11:57:05 +0100
commitc676a707ecce8d1f0c7b7831db45133642620015 (patch)
tree10c9e7894b5db0436ccfccf3bbc9ce25818fc29e
parente39e4f9ecb1998d379330b1bc08a9818e9202323 (diff)
downloadcrocoite-c676a707ecce8d1f0c7b7831db45133642620015.tar.gz
crocoite-c676a707ecce8d1f0c7b7831db45133642620015.tar.bz2
crocoite-c676a707ecce8d1f0c7b7831db45133642620015.zip
behavior: Re-enable clearDeviceMetricsOverride
Seems to be working again. Chrome bug?
-rw-r--r--crocoite/behavior.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/crocoite/behavior.py b/crocoite/behavior.py
index f11af6b..36f51fa 100644
--- a/crocoite/behavior.py
+++ b/crocoite/behavior.py
@@ -177,8 +177,6 @@ class EmulateScreenMetrics (Behavior):
{'width': 320, 'height': 480, 'deviceScaleFactor': 163/cssPpi, 'mobile': True},
# 6th gen iPhone (portrait mode)
{'width': 750, 'height': 1334, 'deviceScaleFactor': 326/cssPpi, 'mobile': True},
- # and reset
- {'width': 1920, 'height': 1080, 'deviceScaleFactor': 1, 'mobile': False},
]
l = self.loader
tab = l.tab
@@ -187,8 +185,7 @@ class EmulateScreenMetrics (Behavior):
# give the browser time to re-eval page and start requests
# XXX: should wait until loader is not busy any more
await asyncio.sleep (1)
- # XXX: this seems to be broken, it does not clear the override
- #tab.Emulation.clearDeviceMetricsOverride ()
+ await tab.Emulation.clearDeviceMetricsOverride ()
return
yield