ferrum icon indicating copy to clipboard operation
ferrum copied to clipboard

host option no longer works for Chrome

Open ngan opened this issue 2 months ago • 0 comments

Describe the bug The host option for Chrome no longer works since Google has dropped support for --remote-debugging-address: https://issues.chromium.org/issues/41487252

What I'd like to do is initiate an instance of Ferrum::Browser with the following options:

browser = Ferrum::Browser.new(host: "ferrum.localhost")

This allows me to see all requests made to Chrome (from Ruby) going through ferrum.localhost so that I can allow-list the URL. With this recent change, Ferrum always hits http://127.0.0.1:XXXXX/json/version and it's tripping up VCR / HTTP stubbing. I don't want to blindly allow all localhost connections so I have to look for 127.0.0.1 and /json/version path.

Ideally, I would love to be able to instruct Ferrum to connect to a specific host (like ferrum.localhost) while still have it boot its Chrome itself.

ngan avatar Oct 16 '25 01:10 ngan