aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/main.coffee
AgeCommit message (Collapse)Author
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; refocus original frame.Stephen Blott
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-09Inject content scripts on install/upgrade only.Stephen Blott
We should not inject content scripts on chrome upgrades.
2015-03-08Reload content scripts: minor refactoring.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-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-05Merge branch 'fix_1507_createTab_incognito'Stephen Blott
2015-03-05Tidy up #1507.Stephen Blott
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-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
2015-02-23Ensure inconito mode flag and find-mode-history are initialised.Stephen Blott
See #1495.
2015-02-17Fix (?) issue with browser icon.Stephen Blott
And, following on from 7a746ba51a5124a39acb09270bf4ab470bfd6b5f: - 7a746ba51a5124a39acb09270bf4ab470bfd6b5f seems to work. However, there's a slight unnecessary flicker when changing tab. So, this tries *not* setting an initial icon, and waiting instead to hear back from the tab.
2015-02-16Fix (?) issue with browser icon showing disabled.Stephen Blott
Following on from 6d776a9f56f05e4298577f25f0a54b924cb1f6e6, I'm still seeing issues with the browser icon showing disabled which Vimium is in fact enabled. I'm going to try this for a bit, and see if it fixes the problem.
2015-02-14Merge pull request #1476 from mrmr1993/dont-clear-frame-data-on-url-changeStephen Blott
Retain frame data for a tab unless the top frame tells us its closing
2015-02-14Fix(?) issue with browser icon.Stephen Blott
I'm seeing an intermitent issue whereby the browser icon is showing as disabled, when vimium is in fact enabled. It's intermitent, so difficult to track down. I went back to look at the old code for setting the browser icon, and reset this code to look more like the old code. I suspect the problem may be that we disabling the icon because we're getting no response from one frame (or something like that).
2015-02-13Remove saveHelpDialogSettings, it's unused.Stephen Blott
It seems this was probably used at some point before the introduction of settings.set() in the front end. It isn't used at all, now.
2015-02-12Retain frame data for a tab unless the top frame tells us its closingmrmr1993
2015-02-09Simplify removing find-mode history for incognito mode.Stephen Blott
2015-02-09Actually fix the conflicts in the previous merge.Stephen Blott
Fix conflicts from 9f20c33adf75e2e78b35e2cd16f2a0925a72c577.
2015-02-09Merge branch 'find-mode-history-for-incognito-mode'Stephen Blott
Conflicts: background_scripts/main.coffee
2015-02-09Merge branch 'visual-and-edit-modes'Stephen Blott
Conflicts: background_scripts/main.coffee content_scripts/vimium_frontend.coffee lib/keyboard_utils.coffee
2015-02-09Initial find-mode history via chrome.storage.Stephen Blott
2015-02-08Proper find-mode history for incognito mode.Stephen Blott
Approach: - We never save the find mode history from an incognito tab in the settings, instead they are saved in the tabMapInfo for each currently-active incognito tab. - When a new incognito tab (or page, after navigation) starts, we scan the tabMapInfo looking for the find-mode history of any active tab. In this way, the history is shared between incognito tabs, but discarded once the last incognito tab closes.
2015-02-08Push fond-mode queries from incognito-mode tabs to other incognito tabs.Stephen Blott
2015-02-08Find-mode history now incorporates ingognito mode.Stephen Blott
2015-02-08Fix background-page error on "yy".Stephen Blott
The return value from copyToClipboard is passed to sendResponse by the chrome.runtime.onMessage.addListener listener. This was using the (somewhat arbitrary) value returned by Clipboard.copy, which turns out to be circular, causing an error. This fixes that.
2015-02-08Fix background-page error on "yy".Stephen Blott
The return value from copyToClipboard is passed to sendResponse by the chrome.runtime.onMessage.addListener listener. This was using the (somewhat arbitrary) value returned by Clipboard.copy, which turns out to be circular, causing an error. This fixes that.
2015-02-08Incognito mode for find history.Stephen Blott
- This commit is incomplete because, to progress, we need bc7db7473456713c8c84f324e71da93145ffa2a0.
2015-01-24Visual/edit modes: more edit-mode commands.Stephen Blott
- "dw", "3dw", "d3w" - "dc", "3dc", "d3c" - "D" - "C" Also refactor enterInsertMode. Also major refactor of interface between edit and visual modes.
2015-01-18Modes; pre-merge clean up.Stephen Blott
2015-01-16Modes; clean up.Stephen Blott
2015-01-08Modes; incorporate small changes from #1413.Stephen Blott
Slightly more significant: Move several utilities to dome_utils.
2015-01-04Modes; various improvements.Stephen Blott
- Add StateMode. - PasskeysMode is a StateMode. - BadgeUpdateMode is a StateMode. - Improve badge handling. - Add push method to Mode. - Document how modes work. - Cache badge on background page to reduce the number of updates. - Remove badge restriction on document.body?.tagName.toLowerCase() == "frameset". - Add ExitOnEscape mode, use it for ConstrainedMode and FindMode. - Move PostFindMode to its own file.
2015-01-02Modes; incorporate find mode.Stephen Blott
2015-01-02Modes; simplify badge handling.Stephen Blott
2015-01-02Modes; fix badges.Stephen Blott
2015-01-02Modes; rework badge handling and fix passkeys mode.Stephen Blott
2015-01-01Modes; incorporate three test modes.Stephen Blott
As a proof of concept, this incorporates normal mode, passkeys mode and insert mode.
2014-12-30Merge branch 'master' into post-1.46Stephen Blott
2014-12-30Minor changes to vomnibar-in-iframe.Stephen Blott
From top to bottom on the diff: - The echo handler on the background page is no longer required. - Simplify/refactor vomnibarUI message handler. - Initialise vomnibar query to "" (rather than null) and simplify. - No need to focus parent window when vomnibar closes; that's handled by the iframe framework. Also no need to blur.
2014-12-29Merge branch 'smblott-uicomponent-iframe' into post-1.46-with-uicomponent-iframeStephen Blott
Conflicts: content_scripts/vimium_frontend.coffee manifest.json
2014-12-29Refactor UIComponent, etc., and demo.Stephen Blott
- Simplify component API. - Iframe flashes on re-focus. - Probably some other stuff which I've forgotten.