]> git.gir.st - VimFx.git/commit
Make the `H` and `L` commands more reliable
authorSimon Lydell <simon.lydell@gmail.com>
Wed, 3 Feb 2016 17:11:33 +0000 (18:11 +0100)
committerSimon Lydell <simon.lydell@gmail.com>
Wed, 3 Feb 2016 17:11:33 +0000 (18:11 +0100)
commite0787aa7f86e75cec30908e4f57a644a82bf64b3
treee622fab11e26f7894c5e1e9df83ce8a6c1e891a3
parent92b483c4a4f6da0b2c998267e0f01d3d999f93b6
Make the `H` and `L` commands more reliable

It seems like using `window.BrowserBack()` and `window.BrowserForward()` are the
most reliable ways of navigating the history, rather than having to wait for
`SessionStore.getSessionHistory()` to finish and then going to a certain history
index. This commit optimizes the case where the count is 1 to use the mentioned
functions instead. Some extensions also override those, so calling them results
in better interoperability.

(Hopefully/Likely) fixes #687.

To keep the code changes simple, the support for Firefox < 43 was dropped.
That's fine, since Firefox 44 has already been released.
extension/lib/commands.coffee
package.json
Imprint / Impressum