try SPN2 downloadThroughput limit

This commit is contained in:
Barbara Miller 2020-06-25 17:18:56 -07:00
parent 03594413f9
commit 8481dfac9c

View File

@ -362,6 +362,11 @@ class Browser:
self.send_to_chrome(method='ServiceWorker.enable')
self.send_to_chrome(method='ServiceWorker.setForceUpdateOnPageLoad')
# traffic shaping used by SPN2 to aid warcprox resilience
# 4294967296 bytes/second = 4GB/second
self.send_to_chrome(method='Network.emulateNetworkConditions',
params={'downloadThroughput': 4294967296})
# disable google analytics and amp analytics
self.send_to_chrome(
method='Network.setBlockedURLs',