So I wanted to write some unit tests that would use simulated mouse events.
But I can’t seem to trigger anything when targeting the browser chrome.
I did this simple test to see if I could trigger a tab activation, but nothing happens.
gBrowser.tabs[2].dispatchEvent( new MouseEvent("click") );
Not even a console message…
Anybody know what’s going on?