Shouldn't your note section example be
unsafeWindow.open(url) instead of
Marti 14:54, 30 December 2008 (EST)
GM_openInTab calls the root function of tabBrowser.addTab... so if it is truly not handling the referer, this is a Mozilla "by design" feature... not a Greasemonkey shortcoming. I've already confirmed the tab focus issue. Perhaps you should submit a feature enhancement ticket to have a return value of the tab, to be able to call the
Marti 15:03, 30 December 2008 (EST)
I've tested, and
window.open(url) works perfectly fine (with the referrer as I mentioned in the article).
About GM_openInTab: I like the background feature, but the referrer has been an issue on some sites, so I'll add a ticket.--Aavindraa 15:12, 30 December 2008 (EST)