Skip to content

Commit 46cd2c7

Browse files
authored
Configure Chrome for testing extensions (#50993)
1 parent bfb5423 commit 46cd2c7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: tools/wptrunner/wptrunner/browsers/chrome.py

+6
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,12 @@ def executor_kwargs(logger, test_type, test_environment, run_info_data, subsuite
140140
"MediaStreamTrackWebSpeech",
141141
"WebSpeechRecognitionContext",
142142
]))
143+
# For testing WebExtensions using WebDriver.
144+
chrome_options["args"].append("--enable-unsafe-extension-debugging")
145+
# Connection between ChromeDriver and Chrome will be over pipes.
146+
# This is needed to test extensions, PWA, compilation caches that
147+
# require local CDP access.
148+
chrome_options["args"].append("--remote-debugging-pipe")
143149

144150
# Classify `http-private`, `http-public` and https variants in the
145151
# appropriate IP address spaces.

0 commit comments

Comments
 (0)