aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2015-04-19Activate vomnibar in window.top; strip Vimium Labs.Stephen Blott
Since the vomnibar now always is initialised and opened the top window (see d67347461da5a0468547e4c807a54bb40746faf4), there's no longer a need for this to be a Vimium Labs feature.
2015-04-19Activate vomnibar in window.top; handle Vomnibar even if disabled.Stephen Blott
Vomnibar commands are handled in a frame even is isEnabledForUrl is false.
2015-04-18Activate vomnibar in window.top; add "labs" option.Stephen Blott
2015-03-17Activate vomnibar in window.top; fix dropped line.Stephen Blott
2015-03-17Activate vomnibar in window.top; yet more clean up.Stephen Blott
2015-03-17Activate vomnibar in window.top; more clean up.Stephen Blott
Clean up, and fixes following code review from @mrmr1993.
2015-03-17Activate vomnibar in window.top; fix race condition on close.Stephen Blott
2015-03-17Activate vomnibar in window.top; more clean up.Stephen Blott
2015-03-17Activate vomnibar in window.top; hide on focus, fixed.Stephen Blott
2015-03-17Activate vomnibar in window.top; hide on focus.Stephen Blott
2015-03-17Activate vomnibar in window.top; simplify messaging.Stephen Blott
2015-03-17Activate vomnibar in window.top; minor clean up.Stephen Blott
2015-03-17Activate vomnibar in window.top; refocus original frame.Stephen Blott
2015-03-16Activate vomnibar in window.top.Stephen Blott
This changes vomnibar commands to activate not in the current frame, but in window.top. Consequently, the vomnibar always appears in the same position, and we don't get odd looking vomnibars in small frames. Apart from the better UX, this seems to be the right thing to do. Vomnibar commands apply to tabs (not frames). Currently incomplete: - On exit, the focus is not returned to the frame which originally had the focus. (It's returned to window.top). - The vomnibar can lose the focus and not hide itself for various frame/click combinations.
2015-03-15Fall back to "chrome://newtab" in incognito mode.Stephen Blott
2015-03-15Note that createTab/pages/blank.html doesn't work in incognito mode.Stephen Blott
2015-03-15Fill in "pages/blank.html" is an absolute URL.Stephen Blott
"pages/blank.html" was being sent to the default search engine by chrome.tabs.create(). Not fully functional. New tabs created from incognito mode are created in a non-incognito mode window.
2015-03-15Fix frame-focus detection.Stephen Blott
In b05276ed8264e5a71f20a7068690ba2a414ee6d8, I inadvertently moved the focus handler from window to document. As a consequence, detectFocus (now registerFocus) wasn't being called when expected.
2015-03-11Merge pull request #1527 from smblott-github/fix-scrollingStephen Blott
Move Scroller.init() up the handler stack.
2015-03-11Move Scroller.init() up the handler stack.Stephen Blott
Move scroller initialisation so that its key handlers are above insert mode in the handler stack. This ensures that the scroller sees keyup events if we enter insert mode while continuous scrolling. Fixes #1526.
2015-03-09Inject content scripts on install/upgrade only.Stephen Blott
We should not inject content scripts on chrome upgrades.
2015-03-09Pass keyup events after entering link-hint mode.Stephen Blott
The page (or another extension) sees keydown events (such as shift) before entering link-hint mode. So we need to also pass the corresponding keyup events. Fixes #1522.
2015-03-08Merge branch 'mrmr1993-loadScriptsOnUpdate'Stephen Blott
2015-03-08Reload content scripts: document why changes are needed in tests.Stephen Blott
2015-03-08Reload content scripts: minor refactoring.Stephen Blott
2015-03-08Better documentation of closing sequence for vomnibar.Stephen Blott
2015-03-07Reload content scripts after install/update.Stephen Blott
This is @mrmr1993's work from #1041. Reload content scripts when vimium is installed or updates. (@mrmr1993: The automatic merge was really messy (or, at least, I couldn't figure out what was going on). Since the bulk of #1041 was actually quite compact, I took the liberty of just copying it in. Hope you don't mind.)
2015-03-07Merge branch 'fix-vomnibar-visibility'Stephen Blott
2015-03-07Add HTML5 date and tel as targets for focusInput.Stephen Blott
2015-03-06Remove need for short delay to prevent vomnibar flicker.Stephen Blott
This delivers a "hidden" massage to the vomnibar after the vomnibar has been hiddent in the host page. The vomnibar only performs whatever action is required when it receives this "hidden" message.
2015-03-06Correctly remove event listeners.Stephen Blott
Fix oversight from #1517.
2015-03-06Add short delay before launching from vomnibar.Stephen Blott
This is not entirely satisfactory. It would be great if a delay of 0 worked (a la `nextTick`). But it seems we need a little longer because we need to allow the UI component messaging to complete. An alternative would be to thread the action required through the UI component logic. But that's pretty ugly too. Yet another alternative would be to have the UI Component post an "ok, we're done, do it" message once the UI component has been removed. Fixes #1485.
2015-03-06Merge branch 'hide-vomnibar-on-focus'Stephen Blott
2015-03-06Merge branch 'fix-focus-html5-inputs'Stephen Blott
2015-03-06Cosmetic changes (following #1490).Stephen Blott
Mainly fix the indentation on comments. Also tweak wording a bid.
2015-03-05Fix various vomnibar clicks...Stephen Blott
Click: - in the vomnibar focuses the input - anywhere else (such as in the space below the vomnibar) hides the vomnibar. This makes clicks in the space below the vomnibar behave the same as clicks in the page itself... Which makes sense, because the difference is not apparent to the user.
2015-03-05Hide vomnibar if host frame regains focus.Stephen Blott
Fixes #1506. This takes the opposite approach to #1511. Instead of hiding the vomnibar when it blurs, we hide it when it's host frame is focused.
2015-03-05Quick fix for issue creating new tabs.Stephen Blott
This is a quick fix only (to keep master in a functional state). openUrlInNewTab is broken, and needs to be refactored.
2015-03-05Note that visual mode is a beta feature.Stephen Blott
2015-03-05Merge branch 'link-hint-text'Stephen Blott
2015-03-05Merge branch 'fix_1507_createTab_incognito'Stephen Blott
2015-03-05Tidy up #1507.Stephen Blott
2015-03-03Note relevant PR number for link-hint-text change.Stephen Blott
2015-03-03Do not include duplicated texts in link hints.Stephen Blott
This only effects link hints with "Use the link's name and numbers for link-hint filtering" enabled. We have been matching the *entire text content* of each link-hint element. With two (or more) hints, and with one of the elements a descendent of the other, we have been using the entire text content of the outer node (which includes the text content of the inner node). This leads to odd situations where the inner element cannot be selected just by typing its text, because its text is a substring of the outer element's text. For example, on Google calendar, the "Today" button shows up as two hints, one inside the other. Typing "today" never disambiguates the hint. You always have to hit enter. There's another nasty example on feedly, where an outer container is clickable, but its text contains all of the (many) texts of the (many) contained links. So the hint always has to be selected manually. Here, when generating the text for an element, we exclude the texts from any descendent node which has already been considered.
2015-03-01Stick in callback so `Nt` worksSudarshan Wadkar
- This fix enables `2t` to open two new tabs, even in incognito. Include callback in the call chain so that numbered commands can work.
2015-02-28Fix exception on options page.Stephen Blott
This adds another handler which is delivered to the options page, but for which there is no handler. This was causing an exception on the background page (console).
2015-02-28Make badges tab specific (fixed).Stephen Blott
Following on from c8d984520f5de4b3e702cee992c7ecc4f4f49435, I forgot to fix up the other call to setBadge.
2015-02-28Make badges tab specific.Stephen Blott
Fixes #1491.
2015-02-26Remove noise, explain in commitSudarshan Wadkar
- Change openUrlInNewTab to pass tab.windowId Why? Work around for upstream bug #308171 - Change createTab to use openUrlInNewTab Why? Fix issue #1507 to open new tab in current window (Note: This commit removes noise from the code and explains the changes)
2015-02-26Fix #1507 Open new tab in incognito modeSudarshan Wadkar
- Change openUrlInNewTab to pass selected tab.windowId - Change createTab to use openUrlInNewTab