Talk:GM.openInTab: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
(Question to Aavindraa)
 
m (Additional comment and suggestion.)
Line 4: Line 4:


[[User:Marti|Marti]] 14:54, 30 December 2008 (EST)
[[User:Marti|Marti]] 14:54, 30 December 2008 (EST)
Also <code>GM_openInTab</code> 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 [http://greasemonkey.devjavu.com/newticket ticket] to have a return value of the tab, to be able to call the <code>.focus()</code> method.
[[User:Marti|Marti]] 15:03, 30 December 2008 (EST)

Revision as of 20:03, 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)