When opening new tab in Chrome/Firefox (ctrl+t), kind of "workbench" page is opened by default:
I have a very trivial bookarklet with following URL:
javascript:location.href="http://google.com"
While it works perfectly when opened from any "normal" page, there is absolutely no reaction when I click on the bookmark in the "workbench" mode (both in Chrome and FF). The URL in the browser doesn't change at all. (UPDATE: and even simplerjavascript:alert("test")
bookmarklet gives no results in this mode neither)
As workbench is my usual place from which I open bookmarks I would really like to be able open my bookmarklet from there.
Probably the problem is related with that part of bookmarklet definition:
the script is executed within the context of the current page.
And workbench isn't probably anything close to normal HTML page. Anyway I'd be glad to find some workaround.
PS. Of course my goal is to make more sophisticated bookmarklet than this but I wanted to start with anything that works and stucked on this problem :-).