philc / vimium

The hacker's browser.
https://chrome.google.com/webstore/detail/vimium/dbepggeogbaibhgnhhndojpepiihcmeb
MIT License
23.54k stars 2.49k forks source link

createTab window does nothing #3090

Open quazar0 opened 6 years ago

quazar0 commented 6 years ago

I have:

map w createTab window

But when I press it, it does nothing. Am I missing something?

vimium 1.63.3 firefox 61.0.1 mac os x 10.12.6

smblott-github commented 6 years ago

Looks like perhaps Firefox won't let extensions open windows with empty new tabs.

It seems to work like this...

map w createTab window https://this-page-intentionally-left-blank.org/

(Put URL of your choice in there; but not an internal Firefox URL.)

hackel commented 4 years ago

If you don't want to load a remote site, you can use

map gw createTab window moz-extension://b352bf6e-404f-4aec-a1ee-b7145af65102/pages/blank.html

You need to lookup your own extension UUID on about:debugging#/runtime/this-firefox. Unfortunately relative URLs don't work other than, for some reason, "localhost".

quazar0 commented 4 years ago

I ended up using this: map w createTab window http://./ It works OK. And, BTW, http://localhost/ also works fine.

gdh1995 commented 4 years ago

Added: this bug can be fixed by removing the url field for chrome.windows.create when no URL specified.

Firefox doesn't allow web extensions to open moz-*://* tabs (except an extension's inner pages), neither for about: or file:// URLs.