This is my extension:
It takes your current/active tab URL and does something...
The problem is, that when there are several open Chrome windows, the "active" tab is a wrong one.
Example:
I have 3 tabs in one Chrome window. Each tab shows a different URL, i.e. URL1, URL2, URL3.
URL 2 is the active tab.
Now I drag tab 3 (with URL3) out of Chrome to create a new Chrome window which contains only one tab (URL3)
On this new window, I click the extension button, and instead of takign URL3 as the active one, it takes URL2 !
Weird...how it can be solved?