Skip to content

Commit 0ffc0aa

Browse files
authored
Disable password manager leak detection in Chrome (#2057)
1 parent 21472bb commit 0ffc0aa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/java/org/jenkinsci/test/acceptance/FallbackConfig.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public class FallbackConfig extends AbstractModule {
8686
public static final String DOM_MAX_SCRIPT_RUN_TIME = "dom.max_script_run_time";
8787
public static final String DOM_MAX_CHROME_SCRIPT_RUN_TIME = "dom.max_chrome_script_run_time";
8888
public static final String DEVTOOLS_JSONVIEW_ENABLED = "devtools.jsonview.enabled";
89+
public static final String PASSWORD_MANAGER_LEAK_DETECTION = "profile.password_manager_leak_detection";
8990
public static final int PAGE_LOAD_TIMEOUT = 30;
9091
public static final int IMPLICIT_WAIT_TIMEOUT = 1;
9192

@@ -189,7 +190,8 @@ private FirefoxOptions buildFirefoxOptions(TestName testName) throws IOException
189190

190191
private ChromeOptions buildChromeOptions(TestName testName) throws IOException {
191192
ChromeOptions chromeOptions = new ChromeOptions();
192-
chromeOptions.setExperimentalOption("prefs", Map.of(LANGUAGE_SELECTOR, "en"));
193+
chromeOptions.setExperimentalOption(
194+
"prefs", Map.of(LANGUAGE_SELECTOR, "en", PASSWORD_MANAGER_LEAK_DETECTION, false));
193195
chromeOptions.enableBiDi();
194196
if (HarRecorder.isCaptureHarEnabled()) {
195197
chromeOptions.setProxy(createSeleniumProxy(testName.get()));

0 commit comments

Comments
 (0)