Commit graph

247 commits

Author SHA1 Message Date
Thomas Buckley-Houston f05a21a339 Exclude windows files when running unit tests 2018-07-16 23:08:24 +08:00
Thomas Buckley-Houston 1017e8d000 Possible fix for windows path and crash issues
Touches #111 #117 #130
2018-07-16 22:29:10 +08:00
Thomas Buckley-Houston 24fcd9f562 Fix JS test after char size hardcoding 2018-07-16 18:22:37 +08:00
Thomas Buckley-Houston 38cf92b486 Prettier formatting fix 2018-07-16 18:08:04 +08:00
Thomas Buckley-Houston acfb118008 Merge branch 'master' of github.com:browsh-org/browsh 2018-07-16 18:02:27 +08:00
Thomas Buckley-Houston 527df8bb16 Fix for non-ASCII chars generating extra chars
This was caused by misunderstanding of the finer details of strings,
runes and slices. I just changed the input_box struct to use runes and
then followed the trail of type errors until input_boxes only ever used
strings to send their text outside themselves.

Closes #93
2018-07-16 17:58:53 +08:00
Thomas Buckley-Houston 5a25149fdf Only log char dimensions if they differ 2018-07-16 17:58:29 +08:00
Thomas Buckley-Houston b2988bfa1f Fix for incorrectly calculated char dimensions
There was a bug where raw text pages would unusually truncated. It
seemed to coincide with the char dimensions being incorrectly
calculated. My only guess was that it was because of race condition on
lightweigh sites that didn't load Browsh's webextension code in time.

So for now it just seems better to hard code the char dimensions, which
should at least be more reliable than the bugs of dynamically
calculating them .
2018-07-16 13:56:24 +08:00
ovidr 22261fc835 Reverted one change
Switched "a feature parity" to "feature parity"
2018-07-15 20:44:46 +07:00
ovidr 22881214ae Update README.md
Changed "Why?" to "Why use Browsh?"
Removed avoidable phrases such as "that" and "and uses that"
Divided a run-on sentence by using a period
Switched "Firefox =>57" to "Firefox 57 (or higher)
Shortened the documentation sentence and link
2018-07-15 20:44:46 +07:00
Thomas Buckley-Houston 79bd148a60 Add OpenBSD build
Touches #126 /cc @vext01
2018-07-14 21:25:29 +08:00
Thomas Buckley-Houston 7312e4971f Merge branch 'master' of github.com:browsh-org/browsh 2018-07-13 17:28:54 +08:00
Thomas Buckley-Houston effa2acc77 Add caveats to Homebrew Tap about FF 57+ dep
Touches #65
2018-07-13 17:28:24 +08:00
Erik O'Leary 63d55b8515 Auto remove container after it exits 2018-07-12 11:14:34 +07:00
Thomas Buckley-Houston 6471b6f42c Remove Firefox as a dep in Brew Tap recipe
Touches #65
2018-07-12 04:44:27 +08:00
Thomas Buckley-Houston 43b738f3de Version 1.3.2 2018-07-11 18:07:58 +08:00
Thomas Buckley-Houston 1bfb10f022 Don't UPX compress linux_arm64 binary 2018-07-11 18:04:12 +08:00
Thomas Buckley-Houston 21bd850f50 Missing - in goreleaser :/
Bump to v1.3.1
2018-07-11 17:55:35 +08:00
Thomas Buckley-Houston 3cac9eb9a0 Remove webext from prettier check path 2018-07-11 17:46:16 +08:00
Thomas Buckley-Houston 1c605e2c0d Prepend prettier with node_modules/.bin path 2018-07-11 17:42:16 +08:00
Thomas Buckley-Houston a9e183f537 Move linters to end of block 2018-07-11 17:39:18 +08:00
Thomas Buckley-Houston a43a9bd197 Version 1.3.0 2018-07-11 17:34:26 +08:00
Thomas Buckley-Houston 5263897fb1 Add 386 and arm64 builds 2018-07-11 17:33:58 +08:00
Thomas Buckley-Houston d66d3e26a0 JS prettier formatting 2018-07-11 17:28:56 +08:00
Thomas Buckley-Houston c2fe5a1d46 Update NPM packages 2018-07-11 17:17:48 +08:00
Thomas Buckley-Houston 2fc0b5cde3 Formatted all Go code
Closes #97
2018-07-11 17:00:06 +08:00
Thomas Buckley-Houston 3c41974ce0 Increase sendRawText() wait hack to 400ms
I know this adds another 200ms to page load times, but it prevents pages
with a lot of text not rendering their text. Obviously better to just
fix the original bug.
2018-07-11 16:49:59 +08:00
Thomas Buckley-Houston be098c0673 Redirect HTML service requests for favicon.ico
... to a real favicon
2018-07-11 16:46:33 +08:00
Thomas Buckley-Houston 85affab04d Collapse recursive URLs to the HTML service
Eg; https://html.brow.sh/https://html.brow.sh/google.com
jsut becomes google.com
2018-07-11 16:39:35 +08:00
Thomas Buckley-Houston 3d0c224a6b Error if Firefox version is older than 57 2018-07-11 15:43:47 +08:00
Thomas Buckley-Houston 24c49213e2 Use firefox | firefox-esr as OR dep for .deb
Touches #103

Though note that currently Debian Stretch's Firefox version is 52,
which is not new enough for Browsh.
2018-07-11 15:20:33 +08:00
Thomas Buckley-Houston b8d031e498 Goreleaser: format default zip, override to binary
This is the wrong way round, it should default to binary as that's what
most of the OS's are and just set the zip override for `darwin`.

Watch this issue for updates:
https://github.com/goreleaser/goreleaser/issues/720
2018-07-11 15:05:37 +08:00
Thomas Buckley-Houston 3cc5485c2f Merge branch 'master' of github.com:browsh-org/browsh 2018-07-11 11:55:58 +08:00
Thomas Buckley-Houston b4c9f2d4e6 Added Homebrew Tap recipe 2018-07-11 11:55:19 +08:00
Thomas Buckley-Houston 3ee9b16ea8 Prevent mouse interaction crashing app
Possibly helps everyone in #63, #73 and #94

Whether it solves the issue or not, this definitely fixes a bug.
`CurrentTab` doesn't refer to anything until the first frame is received
from the webextension, yet tthe `handleMouseEvent` function can be
triggered long before that.
2018-07-11 11:30:22 +08:00
traBpUkciP a3b8c05b60 Use Backticks to Wrap String With Slashes
Oops. Quick fix.
2018-07-11 06:22:49 +07:00
traBpUkciP 78b021f822 Add Support for 64 bit Firefox Installations (#87)
Should fix up #87 and all the other related issues. Haven't wrote any golang for a year but I think it was a pretty simple fix so I took it on; however ff someone wouldn't mind giving it a second set of eyes that would be awesome. I'm stoked to try the app out, it's looks so cool :P

Cheers
2018-07-11 06:22:49 +07:00
Emiel Wiedijk d79b8810dc Check for $GOPATH
The shell script in interfacer/contrib/setup_go.sh expands the $GOPATH
variable to download a script to $GOPATH/bin. However, if $GOPATH is not
set, that expands to /bin. If the script is run with root privileges
(accidentally), this will download a "strange" executable to /bin, which
is supposed to be for system executables. If it is run without root
privileges, it gives an (unclear) error about permissions. This commit checks
if $GOPATH exists. If it $GOPATH does not exist, it exits with error code 1.
2018-07-11 06:21:23 +07:00
Thomas Buckley-Houston 7e21f89ca9 Merge branch 'master' of github.com:browsh-org/browsh 2018-07-10 10:45:55 +08:00
Thomas Buckley-Houston bd08ae4ebd Version 1.2.3 2018-07-10 10:45:38 +08:00
Thomas Buckley-Houston 65936913cb Don't use curl's --fail in setting up Browsh
Seems to fail every time
2018-07-10 10:44:34 +08:00
Thomas Buckley-Houston c26b632b5d Remove gcloud_logger from Dockerfile
It's not needed now that Kubernetes integrates with GCE's Stackdriver
2018-07-10 10:43:48 +08:00
Thomas Buckley-Houston 74fd11ab7b Correct link on text.brow.sh home page 2018-07-10 09:11:06 +08:00
Baptiste Fontaine 19d97a8fe7 README: Fix a typo 2018-07-09 20:41:23 +07:00
Thomas Buckley-Houston c457210c72 Refactor disallowed domains in HTTP service 2018-07-09 19:22:51 +08:00
Thomas Buckley-Houston 90078ff6c0 Add --fail and set -e when setting up Browsh
As per @zutto's suggestion in #62

This will at least notify us when something goes wrong during a Docker
build.
2018-07-09 19:21:25 +08:00
Thomas Buckley-Houston 29132f3695 Better attempt to fix Google phishing warnings 2018-07-09 13:51:58 +08:00
Thomas Buckley-Houston 384688302e Quick fix to stop Chrome detecting phishing
Apparently Google isn't happy about
https://html.brow.sh/mail.google.com URLs.
2018-07-09 13:06:50 +08:00
Thomas Buckley-Houston 4b9ff90933 Change Docker image name in README to browsh's 2018-07-08 17:51:34 +08:00
Thomas Buckley-Houston ba373e9815 Change 'texttop' refs to 'browsh' 2018-07-08 17:07:10 +08:00