[cookies] Make browser names case insensitive

This commit is contained in:
pukkandan
2021-09-11 17:49:03 +05:30
parent 67ad7759af
commit ca46b94134
3 changed files with 3 additions and 2 deletions

View File

@@ -748,6 +748,7 @@ def _is_path(value):
def _parse_browser_specification(browser_name, profile=None):
browser_name = browser_name.lower()
if browser_name not in SUPPORTED_BROWSERS:
raise ValueError(f'unsupported browser: "{browser_name}"')
if profile is not None and _is_path(profile):