mattsse / chromiumoxide

Chrome Devtools Protocol rust API
Apache License 2.0
755 stars 78 forks source link

Use new headless mode. #183

Closed makindotcc closed 5 months ago

makindotcc commented 11 months ago

Currently library passes --headless switch instead of --headless=new https://github.com/mattsse/chromiumoxide/blob/88470cabec15ffc2a91dc5579ec142e921d59eab/src/browser.rs#L823 Old headless, according to the chrome's blog, is separate browser implementation which leads to being detected by antibots like cloudflare waf. https://developer.chrome.com/articles/new-headless/

I think we could just explicitly use --headless=new.

Sytten commented 9 months ago

We will need to update the chromium version used first and we will want to give the choice to the user.