aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2017-08-25Merge pull request #2614 from mrmr1993/ff-optionsStephen Blott
Firefox: Use options_ui to declare the options page
2017-08-25FF: Use options_ui to declare the options pagemrmr1993
Firefox doesn't recognise the "options_page" manifest key, and so isn't showing a preferences button for Vimium-ff. By moving to "options_ui", we enable it, and still get the same functionality in Chrome.
2017-08-18Check whether events are trusted before executing listenersmrmr1993
2017-08-17For Firefox, prune more files and bump subversion number to 1.59.2.Stephen Blott
2017-08-17Exclude Coffeescript files for Firefox build.Stephen Blott
2017-08-15Bump version to 1.59.1.Stephen Blott
This is a bug-fix release affecting Firefox only. Accordingly, the Firefox Add-On has been updated, but the Chrome store version will not be updated.
2017-08-15Note search completion fix (Firefox only).Stephen Blott
2017-08-15Fix search completion (Firefox).Stephen Blott
The problem is that Firefox balks at function properties within the response sent via `postMessage` (whereas Chrome does not). A concise and safe way to sanitize the response is to convert it to JSON and back. Fixes #2576.
2017-08-08Merge pull request #2573 from alphaCTzo7G/patch-1Stephen Blott
Update README.md
2017-07-20Update README.mdalphaCTzo7G
2017-05-23Rename to vimium-ff.Stephen Blott
2017-05-20Note Firefox port.Stephen Blott
2017-05-17Consume keyboard events for marks.Stephen Blott
We were leaking both the `keypress` and the `keyup` events when marks are created and used.
2017-05-08Merge pull request #2507 from bingocaller/update-css-gradientStephen Blott
Update linear gradient syntax to avoid deprecation
2017-05-08Update linear gradient syntax to avoid deprecationJesper Nellemann Jakobsen
This updated syntax avoids the following deprecation warning in Chrome Canary v60.0.3090.0: ```[Deprecation] -webkit-gradient is deprecated. Please use linear-gradient or radial-gradient instead.``` This syntax is also supported in Firefox (and [all other modern browsers](https://caniuse.com/#feat=css-gradients)), which could help transitioning the Firefox version, which is in the works.
2017-05-01Merge pull request #2500 from mrmr1993/ff-fix-exclusionsStephen Blott
FF - Fix "Save Changes" from the exclusions popup
2017-05-01FF - Fix updates from the exclusions popupmrmr1993
This stops |Exclusions| from holding a reference to the |value| parameter passed to |Settings.set|. In Firefox, this object is garbage collected when the owning context (the exclusions popup) is closed. The fix for all such cases in the future is to switch to using |Settings.get|, which implicitly does |JSON.parse JSON.stringify value| and thus returns an object in the same context as |Settings|. We could fix this generally by doing this for the |Settings.performPostUpdateHook| call in |Settings.set| instead. However, I'm not convinced that it warrants the overhead of a |JSON.parse| for every |Settings.set| call.
2017-04-25Merge pull request #2496 from mrmr1993/modes-exitStephen Blott
Make Mode::exit idempotent
2017-04-24Make Mode::exit idempotentmrmr1993
2017-04-22Firefox: Add build target to Cakefile.Stephen Blott
2017-04-22Fix global marks.Stephen Blott
This is a follow up to the move to using keydown for all events, and fixes a bug I introduced. Specifically, we were reacting to the first keydown event, which could be just the `Shift` key.
2017-04-22Firefox: Polyfill for selection.type for visual mode.Stephen Blott
@mrmr1993... This puts the logic of how we choose the selection type in one place; so, if you have a better idea of how to determine the selection type, then we just change it here. Once.
2017-04-22Refactor getSelectionType() to DOM utils.Stephen Blott
This is a no-op. It is preparatory to implementing a suitable polyfill for `selection.type` for Firefox.
2017-04-22Revert "Firefox: Fix visual mode."Stephen Blott
This reverts commit 50b117733c4f0ecf9fd507c28d2f2967b5b1404b. Reverting this. In response to comments from @mrmr1993, this is not the best way of achieving what's required.
2017-04-21Firefox: Fix waitForEnterForFilteredHints.Stephen Blott
This is the filtered-hints feature whereby links aren't activiated until the user hits `Enter`. There was a race condition caused by forcing this setting to true for new users *before* the correct storage area was determined in `Settings.init()`. Mention @mrmr1993.
2017-04-21Firefox: Fix visual mode.Stephen Blott
The problem with visual mode is that `@selection.type` isn't implemented in Firefox/Gecko. Here, we simulate the same effect with `anchorNode` and the length of the selection. Mention @mrmr1993.
2017-04-21Firefox: Fix createTab.Stephen Blott
Firefox baulks at "about:newtab" in createTab (but seems happy with no URL specified). Chrome is also happy with no URL specified. (Does this mean that we don't need "about:newtab" ANYWHERE in the code base? Could Settings.defaults.newTabUrl just be ""?) Mention @mrmr1993.
2017-04-21Fix tab for link-hint selection.Stephen Blott
We were leaking the keydown event to the page when using TAB to select link hints (filtered hints).
2017-04-21Firefox: Fix format of popup buttons.Stephen Blott
@mrmr1993: This is trivial fix for Firefox, so it doesn't warrant a PR. I'll mention you just to keep you up to date on commits like this, though.
2017-04-21Merge pull request #2484 from mrmr1993/ff-focus-top-frameStephen Blott
Fix gF (mainFrame) command on Firefox
2017-04-20Blur the focused iframe when restoring window focusmrmr1993
This works around FF issue 554039, which prevents window.top.focus() from working.
2017-04-20Merge pull request #2482 from smblott-github/firefox-history-no-titleStephen Blott
Firefox: some history entries have no title.
2017-04-20Firefox: some history entries have no title.Stephen Blott
This causes `o`/`O` to crash (producing no suggestions). As a workaround, set any such title to "".
2017-04-19Simplify isPrintable(event) test.Stephen Blott
2017-04-18Note Firefox and key handling in README.md.Stephen Blott
2017-04-18Merge pull request #2470 from smblott-github/rework-key-handling-to-keydownStephen Blott
Rework key handling to keydown
2017-04-18Better check for handlerId.Stephen Blott
2017-04-18Set handlerId directly to a non-id.Stephen Blott
2017-04-18Fix <Shift> or <Ctrl> link-hint behaviour.Stephen Blott
Error was introduced by seemingly innocuous but nevertheless significant change in previous commit. Tests picked up the problem.
2017-04-18Make the consumeKeyup handler a singleton.Stephen Blott
That is, allow at most one handler to be installed at any one time. I have not observed this to be necessary. However, if there were any systematic way in which we weren't seeing the necessary keyup events, then these handlers would just be added and added. So this seems safer.
2017-04-18Fix filtered link hints.Stephen Blott
For filtered link hints, " " was broken; it was treated as "space".
2017-04-18Use event.code to detect/suppress keyup events.Stephen Blott
This avoids the possibility of leaking keyup events if the keys a released in a different order from that in which they were pressed. Also, replace suppressKeyupAfterEscape with this same mechanism. This fixes a bug (in master/1.59) whereby we leak the keyup event for `i` when entering insert mode. TODO: - `/`, `<Escape>` leaks a keyup event - `i` leaks a keyup event
2017-04-18Continue bubbling unmapped events.Stephen Blott
2017-04-18Do not reset key state for modifiers.Stephen Blott
2017-04-18Avoid repeating Backspace and Delete keys.Stephen Blott
2017-04-18Ignore keybiard repeats.Stephen Blott
Keyboard repeats were interfering with smooth scrolling. But we should be ignoreing them anyway.
2017-04-18Remove use of keyCodes entirely.Stephen Blott
event.keyCode` is depricated: - https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode
2017-04-18Rework tests for all key handling on keydown.Stephen Blott
2017-04-18Remove out-of-date comment.Stephen Blott
2017-04-18Migrate marks to keydown only.Stephen Blott