Commit Graph

206 Commits

Author SHA1 Message Date
Thomas Buckley-Houston cb3ddd533f build: release v1.8.3
* Bump fast-json-patch and web-ext in /webext by @dependabot in https://github.com/browsh-org/browsh/pull/461
* Bump loader-utils from 2.0.2 to 2.0.4 in /webext by @dependabot in https://github.com/browsh-org/browsh/pull/453
* remove unnecessary RUN command by @lpmi-13 in https://github.com/browsh-org/browsh/pull/466
* Bump http-cache-semantics from 4.1.0 to 4.1.1 in /webext by @dependabot in https://github.com/browsh-org/browsh/pull/467
* fix: Golang install: use "amd64" for "x86_64" by @tombh in https://github.com/browsh-org/browsh/pull/463
* feat: Use log/slog for logging to file or stdout by @ananthb in https://github.com/browsh-org/browsh/pull/493
* feat: Structured log messages by @ananthb in https://github.com/browsh-org/browsh/pull/494
* chore: Clean up SETUP guides by @ananthb in https://github.com/browsh-org/browsh/pull/495
* chore: Remove manual install steps by @ananthb in https://github.com/browsh-org/browsh/pull/496
* fix: If debug is false discard logs by @ananthb in https://github.com/browsh-org/browsh/pull/497
* [Fix] Firefox inspecting logic on Windows by @Dragon1573 in https://github.com/browsh-org/browsh/pull/502
* feat: Add json schema (#505) by @Freed-Wu in https://github.com/browsh-org/browsh/pull/510

* @lpmi-13 made their first contribution in https://github.com/browsh-org/browsh/pull/466
* @ananthb made their first contribution in https://github.com/browsh-org/browsh/pull/493
* @Dragon1573 made their first contribution in https://github.com/browsh-org/browsh/pull/502
* @Freed-Wu made their first contribution in https://github.com/browsh-org/browsh/pull/510
2024-01-29 15:57:44 -03:00
是蓝兔哟~ 8bca0f17ee
[Fix] Firefox inspecting logic on Windows (#502)
* Fix (firefox_windows.go): Release resources

It seems `defer` keyword is using to release and close some resources.
It should be added to `getFirefoxPath` function.

Signed-off-by: Dragon1573 <49941141+Dragon1573@users.noreply.github.com>

* Fix (firefox_windows.go): Registry path

For Mozilla Firefox Stable edition, it's incorrect in `getFirefoxPath` function.

Signed-off-by: Dragon1573 <49941141+Dragon1573@users.noreply.github.com>

* Fix (firefox_windows.go): Registry Value

Signed-off-by: Dragon1573 <49941141+Dragon1573@users.noreply.github.com>

* Update (firefox_windows.go): Reformat code

Advices from GitHub Workflows, try fix this using GitHub Web.

---------

Signed-off-by: Dragon1573 <49941141+Dragon1573@users.noreply.github.com>
2023-12-24 07:37:17 -05:00
Ananth Bhaskararaman d7fb6e1045 fix: If debug is false discard logs
The slog change logged to stderr if debug was false.
This screwed up the UI.
2023-12-12 07:50:40 -05:00
Ananth Bhaskararaman c191b34201 feat: Structured log messages
Log messages have been re-written with structured fields.

Also, important Go depenedencies like x/sys and errors packages have
been updated.

Github actions have also been updated.
2023-12-09 13:17:50 -05:00
Ananth Bhaskararaman f93a4d12cf feat: Use log/slog for logging to file or stdout
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
2023-12-08 19:09:08 -05:00
Thomas Buckley-Houston 010b8531f6
chore: Release v1.8.2 2023-01-30 21:08:02 -05:00
Thomas Buckley-Houston ffe3b6510e
chore: Bump version v1.8.1 2023-01-30 20:58:08 -05:00
Thomas Buckley-Houston 3bc427f416 devops: Update release process for Github 2022-07-20 15:22:12 -04:00
Thomas Buckley-Houston b4dae67660
chore: Upgrade all Golang deps 2022-07-16 18:52:07 -04:00
Thomas Buckley-Houston 6ccf2afd07 devops: Refactor CI to use ctl.sh
Also updates our goreleaser setup to work again
2022-07-16 17:18:39 -04:00
Thomas Buckley-Houston aaea254f0d fix: Don't load startup URL in HTTP Server mode
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
2022-07-16 17:18:39 -04:00
Thomas Buckley-Houston 4a84be12b0 chore: Golang formatting 2022-07-16 17:18:39 -04:00
Thomas Buckley-Houston f34ccc7344 devops: Move random scripts into central ctl.sh 2022-07-16 17:18:39 -04:00
Thomas Buckley-Houston 8810e481db tests: Migrate to Github Actions 2022-07-16 17:18:39 -04:00
Tormod Alf Try Tufteland 8d321c47a1 feat: github action for cross-compiling releases 2022-07-01 09:17:12 -03:00
Tormod Alf Try Tufteland 094d7b837f fix: conversion error 2022-06-29 12:59:27 -03:00
Tormod Alf Try Tufteland b4bfd1af6d fix: build, and go 1.18 2022-06-29 12:59:27 -03:00
Yash Singh 540882ec8c
Added in Ctrl+U option for view-source (#355)
* Added in Ctrl+U option for view-source

* Fix
2020-12-28 20:56:36 +01:00
Paulo Manrique 4a082a5efe
Implemented detection of the Firefox flavor on Windows and fixed registry detection (#350) 2020-10-31 16:55:27 +01:00
Yash Singh 13dfd9288a
Improved CLI's flags and changed help page (#341)
* 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
2020-08-21 10:44:26 +02:00
Érico Nogueira Rolim 84f5382eda
Move to Go modules (#338)
* 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
2020-07-27 09:13:55 +02:00
Thomas Buckley-Houston 08c5ee8770 CLI: Actual locally tested fix to race condition
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.
2019-06-19 16:54:32 +03:00
Thomas Buckley-Houston 4ca05b9236 Browsh CLI: fix for Marionette race condition 2019-06-19 14:47:51 +03:00
Thomas Buckley-Houston e85455880a HTTP server: timeout for page loading 2019-06-19 13:23:42 +03:00
Thomas Buckley-Houston d6b5951059 HTTP server: add experimental DOM-dump mode
Simply dumps the contents of the DOM
2019-06-19 09:03:20 +03:00
Thomas Buckley-Houston 81f41b7b4c Fix for Viper's lowercasing of config keys :/
See spf13/viper#635
2019-06-19 08:12:37 +03:00
Thomas Buckley-Houston fc92642a4c Version 1.6.0 2019-06-18 17:26:05 +03:00
Thomas Buckley-Houston 931cc1ca38 Allow Firefox prefs to be set in config.toml 2019-06-18 17:17:01 +03:00
Thomas Buckley-Houston 31def7cc30 Config to set custom global CSS 2019-06-18 12:54:29 +03:00
Thomas Buckley-Houston f8b0e5592b Text rendering: fixes and improvements
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.
2019-06-18 12:31:45 +03:00
Thomas Buckley-Houston d93c084dcd Update dependencies. Bump to v1.5.2 2019-06-11 13:21:56 +03:00
Thomas Buckley-Houston 27826b34e2 Various improvements to integration tests
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.
2019-06-11 12:21:39 +03:00
Thomas Buckley-Houston 8ab587d5a6 Update to Firefox 66.0.4 to fix addon cert 2019-05-06 09:38:30 +02:00
Thomas Buckley-Houston 883cd9cef9 Update JS and Go deps. Bump Browsh to v1.5.0 2018-11-06 21:14:49 +09:00
Thomas Buckley-Houston aedcdb388f Update FF Marionette commands
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
2018-11-06 21:14:42 +09:00
Thomas Buckley-Houston 8b4b4c5e67 Update Go `dep` to v0.5.0 2018-11-06 21:14:18 +09:00
stark 77211ed974 replaced cat with i/o redirection 2018-10-26 21:16:39 +09:00
Farhad Makiabady 8b7cda08dc accidentally commited.. removing it 2018-10-05 15:43:02 -06:00
Farhad Makiabady e1f7454791 cleaned up un-needed spacing 2018-10-05 15:31:54 -06:00
Farhad Makiabady c32aea0152 open new tabs with each validURL 2018-10-05 15:24:46 -06:00
Farhad Makiabady 5aecb1b015 Added validURL array to viper 2018-10-05 15:24:46 -06:00
Farhad Makiabady 820403cc37 implemented link verification before opening new tabs 2018-10-05 15:24:44 -06:00
Farhad Makiabady f072915ef0 Added NArg for non-flag arguments 2018-10-05 15:24:44 -06:00
CodyGramlich 5c09d70601 Removed color_mode 2018-09-29 12:14:53 -06:00
CodyGramlich e4761be367 Added monochrome CLI flag 2018-09-29 11:17:51 -06:00
Jared Rewerts 99d8468920 Used a cross-platform Bash shebang. 2018-09-22 21:31:04 +08:00
Jared Rewerts 3c0ddf0c80 Switched to using a more cross-platform build script. 2018-09-22 21:31:04 +08:00
Tobi 46f4ece33c
v1.4.13 2018-09-11 04:39:44 -04:00
Jared Rewerts 7b4170e46f Added a mouse scroll test. 2018-08-28 12:06:55 -06:00
Jared Rewerts 1ed1427855 Added a function for simulating mouse clicks. 2018-08-28 12:06:38 -06:00