From f7b97cbe125d34372565d4777e2a81bbd24ce538 Mon Sep 17 00:00:00 2001 From: Puja Jagani Date: Wed, 28 Sep 2022 13:49:40 +0530 Subject: [PATCH] [java] Allow origin of [::1] for geckodriver for IPv6 only systems --- java/src/org/openqa/selenium/firefox/GeckoDriverService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/java/src/org/openqa/selenium/firefox/GeckoDriverService.java b/java/src/org/openqa/selenium/firefox/GeckoDriverService.java index d23e8e81e0d9b..7919639a5800c 100644 --- a/java/src/org/openqa/selenium/firefox/GeckoDriverService.java +++ b/java/src/org/openqa/selenium/firefox/GeckoDriverService.java @@ -193,6 +193,7 @@ protected List createArgs() { args.add("--allow-origins"); args.add(String.format("http://127.0.0.1:%d", wsPort)); args.add(String.format("http://localhost:%d", wsPort)); + args.add(String.format("http://[::1]:%d", wsPort)); if (firefoxBinary != null) { args.add("-b"); args.add(firefoxBinary.getPath());