But this executes the content script in the popup window. How can I execute the content script in the window that has just been focused when the popup was minimized?
This is definitely something I overlooked. My only problem now would be getting the correct tab ID. I would like to get the ID of the tab that comes into focus when the popup is docked. When I try to do this, it grabs the ID for the popup window. Do you have any ideas about how I would be able to do this? Thanks!
I wonder whether it would work more smoothly to drop a panel from the extension’s toolbar button for user interaction, so focus never leaves the target tab. I guess there is a reason you want a separate window.