Switched to Go1.21 to use the log/slog package for strutctured logging.
TODO: Log messages that are stringifying objects can now use strutctured
output.
TODO: Customise log levels for different messages.
Fix tests
I think this is the source of a long-standing issue in the HTTP Server
where it would just freeze after a certain period of time. Every
successful page load, wether it was explicitly requested as a raw-text
request or not, attempts to send a raw text payload on page load. So I
think the automatic default home page startup loading was confusing
things.
Fixes#207
* Improved CLI's flags
Allowed users to use just --v instead of --version as a CLI flag. Also added in the --name flag that simply prints out "Browsh." An alias for the --name flag is --n.
* Changed the help page inside the config.go to include the name flag
* interfacer: Move to Go modules.
* interfacer/contrib: remove dep usage.
No longer needed due to the move to Go modules.
* Move src/main.go to cmd/browsh/main.go.
Allows installation with `go install ./cmd/browsh`, no need to specify
output.
* interfacer/src/browsh/firefox: fix browsh.xpi path
* setup_linux_build_env: clean up and update.
- Remove references to dep and GOPATH
- Use code blocks for commands
- Update for new build instructions
Sorry for making new releases like this. It's that the live Browsh
services will only pull in officially released versions. But also that
this bug could affect a lot of people installing Browsh themselves.
Introduces a new option to disable the pixel comparison text visibility
detecting code. There are some situations in which it helps and some in
which it hinders. So for now it is disable by default and can be
enabled through the config file or my pressing F6 in the TTY client.
Also includes a couple of fixes to the HTTP server's text rendering.
This has been a long time coming, but it's still not perfect. Basically
I'm trying to reset the entire environment as much as possible so that
each spec runs in a clean room. Mostly in this commit Firefox is being
killed and restarted for every spec, which has made a lot of
improvements.
In Firefox 63 an old syntax for Marionette commands was deprecated.
Updating mostly just meant prepending `WebDriver` to existing commands.
This should fix most problems in #232