Hi,
After the update to Greasemonkey 0.9.0 with Firefox 3.6.13, my script
experienced some issues.
I dig into, and found that was due to eval().
Some people reported some kind of issues like that, and I've got some
answers.
"Security Manager vetoed action" is the error.message given by a try
catch, on these lines :
try {
var e = 'test={a:1,b:"test",c:[1, 2, 3],d:{e: "f"}};';
eval(e);
alert(test.a)
}
catch (ex) {
alert(ex.message);
}
On Firefox 3.6.13, Greasemonkey 0.8, no problem.
On Firefox 3.6.13, Greasemonkey 0.9, error "Security Manager vetoed
action"
On Firefox 4b, Greasemonkey 0.9, works fine !
So the issue is only for FF3.6.13 (or earlier I don't know), and is
fixed if we change this:
var e = 'var test={a:1,b:"test",c:[1, 2, 3],d:{e: "f"}};';
we have to declare the variable locally instead of globally.
Hope that helps
--
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.