Additional:
The GM_openInTab instruction results in this error apearing in the error
console:
Error: aTab is undefined
This is Firefox 4.0b10 and Grrasemonkey 0.9.1
Have I found a genuine bug, in either Firefox or Greasemonkey?
On 27/01/2011 18:50, Vectorspace wrote:
One of my scripts works in Firefox 3.6.x and (I am told) in Firefox
4.0b8 and earlier, but not in b9 or b10.
Fomr some reason, script execution ends after the GM_openInTab. Anyone
seen this before?
I've built a simple testcase, you can find the source below
Expected result:
Visit google.com
Alert popup containing the text "start" appears
After clicking ok, yahoo.com opens in a new tab
Alert popup containing the text "end" appears
Actual results:
Visit google.com
Alert popup containing the text "start" appears
After clicking ok, yahoo.com opens in a new tab
The alert instruction after GM_openInTab does not execute, and the
second alert does not appear
Test script:
// ==UserScript==
// @name GM_openInTab Test
// @namespace
http://homepage.ntlworld.com/vectorspace/greasemonkey/
// @author Vectorspace
// @include http://www.google.*
// @description GM_openInTab Test
// ==/UserScript==
(function()
{
alert("start")
GM_openInTab("http://www.yahoo.com")
alert("end")
})();
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/greasemonkey-users?hl=en.