Bug 1509835 Raptor test raptor-tp6-amazon-chrome is not rendering a completely loaded amazon site r=tarek

Differential Revision: https://phabricator.services.mozilla.com/D25597

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Florin Strugariu 2019-04-09 09:49:03 +00:00
parent 528fad068d
commit 4348f3974a
2 changed files with 6 additions and 2 deletions

View File

@ -9,6 +9,7 @@ import hashlib
import urllib
import typing
from urllib import parse
from mitmproxy import command
from mitmproxy import ctx, http
from mitmproxy import exceptions
@ -73,7 +74,9 @@ class AlternateServerPlayback:
"""
r = flow.request
_, _, path, _, query, _ = urllib.parse.urlparse(r.url)
# unquote url
# See Bug 1509835
_, _, path, _, query, _ = urllib.parse.urlparse(parse.unquote(r.url))
queriesArray = urllib.parse.parse_qsl(query, keep_blank_values=True)
key = [str(r.port), str(r.scheme), str(r.method), str(path)]

View File

@ -7,7 +7,8 @@
[DEFAULT]
type = pageload
playback = mitmproxy
playback_binary_manifest = mitmproxy-rel-bin-{platform}.manifest
playback_version = 4.0.4
playback_binary_manifest = mitmproxy-rel-bin-4.0.4-{platform}.manifest
playback_pageset_manifest = mitmproxy-recordings-raptor-tp6-1.manifest
page_cycles = 25
unit = ms