Talk:GM.openInTab: Difference between revisions
m Additional comment and suggestion. |
No edit summary |
||
Line 8: | Line 8: | ||
[[User:Marti|Marti]] 15:03, 30 December 2008 (EST) | [[User:Marti|Marti]] 15:03, 30 December 2008 (EST) | ||
@Marti: | |||
I've tested, and <code>window.open(url)</code> 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.--[[User:Aavindraa|Aavindraa]] 15:12, 30 December 2008 (EST) |
Revision as of 20:12, 30 December 2008
@Aavindraa
Shouldn't your note section example be unsafeWindow.open(url)
instead of window.open(url)
?
Marti 14:54, 30 December 2008 (EST)
Also 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 .focus()
method.
Marti 15:03, 30 December 2008 (EST)
@Marti:
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)