[Greasemonkey] FF1.5b, Gm0.6.x, new Option(String) fails?

Matthias Bauer ml-greasemonkey-42imk83y at moeffju.net
Thu Oct 20 00:17:18 EDT 2005


On 19.10.2005 21:46 Jeremy Dunck wrote:

>> DevGuru[1] and sun.com[2], among some other web sources[3], give the
>> constructor as:
> 
> Right, I wasn't asking you to justify it, I was just verifying.  :)

Just giving sources ;)

>> It also works from the JavaScript Shell, the location bar, and 'normal'
>> sites (both HTML and XHTML). I'm guessing it has something to do with
>> the sandboxing?
> 
> Well, I would have thought so, but that's why I did the test for new
> unsafeWindow.Option().  That failed too, and doesn't use the sandbox. 
> I'm not sure what to make of it.

I was under the impression that script injection used a Sandbox object,
or EvalInSandbox, and that that might be the reason for this problem.
unsafeWindow doesn't use XPCNativeWrappers, but it's still evaled in the
sandbox, isn't it?

-Matthias


More information about the Greasemonkey mailing list