Commit graph

2039 commits

Author SHA1 Message Date
rektrex
8f0b2a5ab8 add exmcmds to load RC file from url 2019-09-19 22:14:51 +05:30
rektrex
bf1a07467f trim url for p and P commands 2019-09-18 13:14:50 +05:30
Chris
ba32beb3ce
Correctly detects Windows when applying colors
Partial solution to #1378
Previously, this expression would evaluate to null, producing a false negative on Windows systems, due to a syntax issue
2019-09-17 16:09:11 -04:00
pvs
1fb0aecf30 Get all the elements that match the given selector inside shadow DOM
- Blur shadow dom active element
2019-09-15 09:48:58 -07:00
pvs
04b1ea13a9 Fix insert mode if an input inside a shadow DOM is focused 2019-09-14 14:24:45 -07:00
Colin Caine
b30ef3097e newtab: clean up a weird link 2019-09-13 18:47:57 +01:00
Colin Caine
65b5367611 themes/dark: fix link colour on Tridactyl pages 2019-09-13 18:31:52 +01:00
Colin Caine
1ddd4fd2a5 excmds: doc: explain how :command works a bit more 2019-09-13 14:47:22 +01:00
Colin Caine
efea7e2041 excmds: documentation typo 2019-09-13 14:23:59 +01:00
Oliver Blanthorn
4a27915daf
Update grammar import for new nearley version 2019-09-09 11:40:29 +01:00
Oliver Blanthorn
d1f1794269
Fix #1041: ;p now preserves newlines
The `run_exstr` command is a legacy from when hinting involved a strange
dance through the background script. It is no longer required, so we can
call the `yank` function directly and preserve the newlines.
2019-08-30 21:51:21 +01:00
Oliver Blanthorn
47554e1fb8
Add ;g{f,F} default binds 2019-08-30 12:16:17 +01:00
Colin Caine
2ade2a9a50 Document that seturl and friends take a regex pattern 2019-08-28 13:54:09 +01:00
Oliver Blanthorn
3e3f51e2e3
Add link to unset from set help
'How do I undo this?' comes up often. This may help.
2019-08-20 13:56:27 +01:00
Oliver Blanthorn
077a135f26
release 1.16.3 2019-08-14 15:28:53 +01:00
Oliver Blanthorn
e41f69b30f
Mention AMO issue on new tab page 2019-08-14 15:27:46 +01:00
Oliver Blanthorn
132e385a76
Fix #1696: completions are now deselected if the string is shortened 2019-08-09 20:08:31 +01:00
Jakub Okoński
cb751369b1 Fix :bmarks -t -c <container> behavior 2019-08-02 14:00:00 +02:00
Oliver Blanthorn
fef58f508f
Close #1773: remove fixamo
The Firefox Security team believe fixamo violates the AMO policy as it reduces
the security of Firefox.

I respectfully disagree, but I don't think it is a hill worth dying on.
2019-08-02 12:22:20 +01:00
GiulioCentorame
fc6f24345b
Add shortcut for ignore mode
When I started using tridactyl, I didn't find any shortcut to the ignore mode that was viable for laptop keyboards (at least on mine, since I haven't got backticks and `Ins` must be activated with `Fn`). `Shift-Esc` is relatively harmless and pretty easy to remember, so I think it may be a good one for beginners.
2019-07-26 12:45:31 +01:00
Oliver Blanthorn
88f4fac3db
Mitigate #1728 - disable guiset navbar none 2019-07-18 11:10:45 +01:00
glacambre
d7693efa56
perf.ts: remove illegal string
According to
https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/observe
a PerformanceObserverInit object does not have a "buffered" attribute.
This made firefox throw errors in both the command line and the content
script. This might fix
https://github.com/tridactyl/tridactyl/issues/1670.
2019-07-18 09:25:28 +02:00
Oliver Blanthorn
7a4f266cef
Merge branch 'fix-214' 2019-07-15 10:30:19 +01:00
Oliver Blanthorn
cad52abee9
Make bookmark name configurable and change completion title 2019-07-15 10:29:36 +01:00
Oliver Blanthorn
95db0a89a9 release 1.16.2 2019-07-11 13:10:25 +02:00
Robert Boyd III
33991afd74
Add test for getUrlParent with slash stripping 2019-07-04 16:09:10 -04:00
Robert Boyd III
32f63ab116
Update test 2019-07-04 15:16:11 -04:00
Robert Boyd III
474b6f00c5
Implement #1565: Add option to strip trailing slash 2019-07-04 15:12:48 -04:00
Oliver Blanthorn
1f49f4ac23
Merge pull request #1705 from grpala/master
Add a reference to editor functions in :help bind
2019-07-02 19:42:30 +01:00
Colin Caine
df5c6f830b
release 1.16.1 2019-07-02 16:48:47 +01:00
Oliver Blanthorn
d129c47913
Switch to cmcaine's shell escape library 2019-07-02 16:48:47 +01:00
Colin Caine
a71398dc1e
nativeopen: fix shell escaping 2019-07-02 16:48:47 +01:00
Colin Caine
2e591272a5
hinting: make rapid mpv hint mode safe 2019-07-02 16:48:47 +01:00
Colin Caine
d2106c8b3e
release 1.16.0 2019-07-02 16:48:47 +01:00
Colin Caine
0faf4be41a
This allowed malicious web pages to send artificial key events to
the  parsers for  all modes  except the  command line  (which has
always been protected inside an iframe).

If the native  messenger was not installed, the bug  could not be
exploited  for  any more  than  nuisance  attacks (closing  tabs,
quitting Firefox,  etc.). If the native  messenger was installed,
an attack using the mpv hint  mode (bound to `;v` by default) and
a specially crafted link would  allow an attacker to execute some
commands  in the  user's shell.  Due  to the  way hyperlinks  are
encoded,  it  would  require  more  cunning  than  the  Tridactyl
developers possess to usefully exploit as it is difficult to pass
arguments to commands.

This  did mean  that the  standard output  of mpv  (including the
attacker's URL) was  also available to an attacker  via pipes. We
are not  aware of any way  to abuse that with  commonly installed
utilities.

We are unaware of any pages exploiting this in the wild.

Nevertheless, this security regression  should not have happened.
A short incident report follows:

These  checks were  accidentally  removed when  key handling  was
rewritten in  September 2018. The PR  was reviewed, but it  was a
large PR and the regression was missed by the reviewers.

We became aware of the regression after a question in our support
chat prompted  @glacambre to check  on exactly how we  were using
`isTrusted` and they realised that we weren't using it any more.

We  will  shortly  introduce  automated testing  to  check  these
security properties that we rely on.

We will  consider adding a  check to continuous  integration that
flags any change  to files containing security  relevant code for
more detailed review.

Affected versions: - Tridactyl 1.14.0 - 1.14.10, 1.15.0.

Mitigation:

- Update to Tridactyl 1.16.0+ or 1.14.13+

- If  updating is  unfeasible, we  recommend removing  the native
messenger by running `:! pwd` in Tridactyl and then deleting that
directory from your filesystem.

-  If  you've  thought  of   a  clever  exploit,  please  contact
bovine3dom or cmcaine privately on Matrix or by email.
2019-07-02 16:45:31 +01:00
Guillermo R. Palavecino
ed5d1b0bd4 Add a reference to editor functions in :help bind 2019-06-24 17:31:39 -03:00
Oliver Blanthorn
0486595154
Make ;v safer 2019-06-20 23:09:21 +01:00
Oliver Blanthorn
be119b3d4e
Make ;v safer 2019-06-14 11:18:49 +01:00
Colin Caine
277de2314b Fix #214
Refactors bookmark and history searching to a new file as well
2019-06-06 13:23:30 +01:00
Colin Caine
fe42846859 completions/bmarks: dedupe completions
Firefox discourages having more than one bookmark to the same URL, but
it can happen anyway due to sync bugs or something (I have duplicate
bookmarks, anyway).

This patch deduplicates bookmarks.
2019-06-06 12:10:07 +01:00
Oliver Blanthorn
32ac11fe9d Ensure one history completion for real 2019-06-06 10:41:17 +01:00
Oliver Blanthorn
53e4a4ec4b
Add ftdetect to generated RCs 2019-06-05 17:02:04 +01:00
Oliver Blanthorn
973ae858b7
Explain workaround for semicolons in composite 2019-06-05 16:51:34 +01:00
Oliver Blanthorn
794802b7bd
Ensure we can't ever have two completions selected 2019-06-05 16:11:14 +01:00
Colin Caine
46b7482f03 Persist history completion selection if it is still valid on source update 2019-06-04 19:57:31 +01:00
Colin Caine
98c107a2d2 Fix #1656
Keyseq is adding a count to the end of response.exstr. Stop that everywhere in exmode.
2019-06-04 18:10:45 +01:00
Oliver Blanthorn
575bd5d745
Add argument for rot13 2019-06-04 17:29:25 +01:00
Oliver Blanthorn
8b112f2d0f
Merge pull request #1655 from tridactyl/fix-commandline-races
Don't send ex.* excmds around the houses
2019-06-04 11:57:35 +01:00
Colin Caine
bf74b14a78 Don't send ex.* excmds around the houses
Previously they went on a magical mystery tour with up to
four stops on the way.

Now they take one synchronous step and are done, hopefully
avoiding race conditions.
2019-06-04 10:29:12 +01:00
Anton Vilhelm Ásgeirsson
f36a2d0ee6 Fix typo in mkt parser, no full stop for bovine3dom 2019-06-03 21:13:24 +00:00