aboutsummaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2014-12-14Merge branch 'add-html5-input-types' of https://github.com/mrmr1993/vimium ↵Stephen Blott
into mrmr1993-add-html5-input-types
2014-12-14List HTML5 date types that should use simulateSelectmrmr1993
2014-12-14Update a comment about the changed nature of isSelectablemrmr1993
2014-11-24Frames; eliminate Array::rotate.Stephen Blott
Array::rotate extends the array object, polluting its name space; so, instead, we just rotate the array manually.
2014-11-23Frames; tidy up.Stephen Blott
2014-11-23Change DomUtils.makeXPath to loop as an array rather than an objectmrmr1993
This fixes the tests, which were broken by makeXPath trying to recurse over Arrays with an augmented prototype.
2014-11-23Monitor a tab's frames as a list with the current frame at its headmrmr1993
2014-11-06Add (initial, basic) isUrl tests (more needed).Stephen Blott
2014-11-06Include scheme for domain suggestions; tighter test for valid domain.Stephen Blott
2014-11-06Don't suggest domains which aren't.Stephen Blott
2014-11-05Add support for selecting HTML5 inputs, change criterion to a blacklistmrmr1993
This is designed to address several issues: * `<input type="range" />` elements don't respond well to the simulated click; they always reset their value to the minimum. * The lack of `mouseup` event from the simulated click makes `<input type="range />` elements slide when the mouse is moved. * HTML5 adds a large number of text-based `<input>`s that should be focused like the `type="text"` case, for consistency. (Using a blacklist halves the number of types we have to list.) * An `<input>` with a `type` the browser doesn't support is rendered as a `type="text"`, so a blacklist ensures that the focusing action is consistent on all elements behaving as `type="text"`.
2014-11-02Centralize handling of event propagation.Stephen Blott
2014-11-02Merge pull request #1219 from mrmr1993/fix-google-groupsStephen Blott
Force our key event handlers to have the highest possible priority
2014-11-02Refactor Utils.hasChromePrefix and add tests.Stephen Blott
2014-11-02Force our key event handlers to have the highest possible prioritymrmr1993
* The `window` object receives key events before the `document` object, and so any event listeners on `window` get priority. This commit switches from binding `keydown`, `keypress`, `keyup` on `document` to on `window`. * We were using `event.stopPropagation()` to prevent other event listeners from firing if we had handled an event. This stopped the event from propagating to other elements/objects and triggering their event listeners, but didn't block event listeners registered on the same object as ours. Switching to `event.stopImmediatePropagation()` ensures that our event listener is the last to run for the event. Fixing these issues allows Vimium to regain control over key events in Google Groups (eg. the [vimium-dev group](https://groups.google.com/forum/vimium-dev)).
2014-11-02Fix browser prefix detectionmrmr1993
2014-04-23Remove additional unnecessary checksmrmr1993
2014-04-23Recognise <ctrl> key in LinkHintsmrmr1993
2014-04-23Add openlinks in foreground mode and fix #1035mrmr1993
2014-04-22Merge pull request #1027 from mrmr1993/dataURIsPhil Crosby
Handle data: URIs as a chrome prefix
2014-04-19Handle data: URIs as a chrome prefixmrmr1993
2013-10-28Fixed detection of links which are only partially inside the viewportStanley Shyiko
2013-05-09Fix utils.getCurrentVersion()sainaen
The code of this function before patch doesn't work for two reasons: 1) it makes async call, so it actually returns `undefined` 2) you need appropriate permission to call chrome.management.get() in manifest
2013-03-07Replaces workaround and should let travis work againTimo Sand
2013-01-02Make smartcase locale-aware.Jez Ng
2012-11-13Include "chrome-extension" in chrome prefixes.Stephen Blott
You can bookmark chrome-extension://... pages. But you can't use them: vimium sends you to the default search engine. This commit fixes the issue.
2012-11-05Factor pushMatchingRanges, improve comments/testsStephen Blott
1. Factor out `pushMatchingRanges`: This then allows us to ... 2. Add unit tests for `pushMatchingRanges` In effect, these tests verify where matches are highlighted in suggestions. 3. Added Utils.zip. This helps simplify `pushMatchingRanges` unit tests. 4. Improve comments.
2012-10-29Split out compareVersions into the Utils file.Jez Ng
2012-10-29Factor out scrolling code into a new file.Jez Ng
Also fix a bunch of div-scrolling behavior. Closes #486.
2012-10-29More tests, because I like having coverage.Jez Ng
2012-10-24Use insertCSS() API instead of manually created style element.Jez Ng
For some reason addCssToPage seemed to break on Chrome 24. Closes #676.
2012-10-23Revert previous change whereby "+" characters inserted between searchStephen Blott
terms are not URLencoded.
2012-10-23Code cleanup, as requested by in3/Jez Ng here:Stephen Blott
- https://github.com/philc/vimium/pull/682.
2012-10-21Configurable vomnibox default/fallback search engine.Stephen Blott
2012-10-20Refactor handlerStack. Closes #657.Jez Ng
Previously, handlerStack was designed only for removal of the handler right at the top of the stack. However, some handlers sought to remove themselves when they were not at the top of the stack, creating confusion. The new handlerStack ensures that such removal can always be done safely.
2012-09-09More lint fixes.Jez Ng
2012-09-06Touching up.Jez Ng
2012-09-06Merge remote-tracking branch 'liesen/idiomatic-coffee-utils' into next-releaseJez Ng
2012-09-06Remove unused ClassJohan Liesén
2012-09-06Move instant tests to the top of the function: return early if possibleJohan Liesén
2012-09-06Lay out long TLDs on one lineJohan Liesén
2012-09-06Align regex comments on the same line as the expressionJohan Liesén
2012-09-05Tidy up if-statementJohan Liesén
2012-09-05Wrap lines at 110 charsJohan Liesén
2012-09-04More idiomatic CoffeeScriptJohan Liesén
2012-09-04More idiomatic CoffeeScript for Utils.isUrlJohan Liesén
2012-09-04Style fixes.Jez Ng
Errors were detected using coffeelint.
2012-08-26Fix rectangle flashing on pages with a relative-positioned <body>.Jez Ng
2012-08-20More refactoring-cleanup.Jez Ng
* vimium_frontend now has a pretty decent set of exports * Generic linkHints code has been moved to DomUtils, so future features can reuse the code.
2012-08-19Use more idiomatic CS.Jez Ng