aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authorilya2012-07-07 09:56:04 -0700
committerilya2012-07-07 09:56:04 -0700
commit1d1a9c55dc0987b0b2ebd4eb73ac7e7be8651fde (patch)
tree3262081b72583e0900ce4baac1ad55b0e0a2c113 /content_scripts
parent8bbcbdfa9db643ff99f90cbd9077b8d598fa7bd6 (diff)
downloadvimium-1d1a9c55dc0987b0b2ebd4eb73ac7e7be8651fde.tar.bz2
URL decode bookmarklets
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/vomnibar.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/content_scripts/vomnibar.coffee b/content_scripts/vomnibar.coffee
index e60d6e52..433d0d01 100644
--- a/content_scripts/vomnibar.coffee
+++ b/content_scripts/vomnibar.coffee
@@ -203,7 +203,7 @@ extend BackgroundCompleter,
navigateToUrl: (url, openInNewTab) ->
# If the URL is a bookmarklet prefixed with javascript:, we shouldn't open that in a new tab.
if url.startsWith "javascript:"
- eval url["javascript:".length..]
+ eval decodeURIComponent(url["javascript:".length..])
else
chrome.extension.sendRequest(
handler: if openInNewTab then "openUrlInNewTab" else "openUrlInCurrentTab"