Skip to content

Commit

Permalink
Browser: Use --disable-blink-features=AutomationControlled option
Browse files Browse the repository at this point in the history
This makes navigator.webdriver false.
  • Loading branch information
ato committed Aug 16, 2024
1 parent 89da5b0 commit 7ebae6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/src/pandas/browser/Browser.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public Browser() throws IOException {
cmd.add("--headless");
cmd.add("--remote-debugging-port=0");
cmd.add("--disable-crash-reporter"); // prevents ownership conflicts over /tmp/Crashpad
cmd.add("--disable-blink-features=AutomationControlled"); // makes navigator.webdriver == false
if (System.getenv("BROWSER_LOGGING") != null) cmd.addAll(List.of("--enable-logging=stderr", "--v=1"));
process = new ProcessBuilder(cmd)
.inheritIO()
Expand Down

0 comments on commit 7ebae6f

Please sign in to comment.