Skip to content

Commit 4405f30

Browse files
committed
Update proxy extension for Manifest V3 compatibility
1 parent de9295b commit 4405f30

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

seleniumbase/core/proxy_helper.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,21 +94,23 @@ def create_proxy_ext(
9494
manifest_json = (
9595
"""{\n"""
9696
""""version": "1.0.0",\n"""
97-
""""manifest_version": 2,\n"""
97+
""""manifest_version": 3,\n"""
9898
""""name": "Chrome Proxy",\n"""
9999
""""permissions": [\n"""
100100
""" "proxy",\n"""
101101
""" "tabs",\n"""
102102
""" "unlimitedStorage",\n"""
103103
""" "storage",\n"""
104-
""" "<all_urls>",\n"""
105104
""" "webRequest",\n"""
106-
""" "webRequestBlocking"\n"""
105+
""" "webRequestAuthProvider"\n"""
106+
"""],\n"""
107+
""""host_permissions": [\n"""
108+
""" "<all_urls>"\n"""
107109
"""],\n"""
108110
""""background": {\n"""
109-
""" "scripts": ["background.js"]\n"""
111+
""" "service_worker": "background.js"\n"""
110112
"""},\n"""
111-
""""minimum_chrome_version":"22.0.0"\n"""
113+
""""minimum_chrome_version":"88.0.0"\n"""
112114
"""}"""
113115
)
114116
abs_path = os.path.abspath(".")

0 commit comments

Comments
 (0)