Firefox works with the mozrepl plugin and WWW::Mechanize::Firefox up to version Firefox 56.x.
I'm in the process of looking at whether Waterfox is a good replacement but haven't even attempted to run the test suite with it. If it is just a fork of the original Firefox with the occasional security fix backported, then it should work without problems.
|