On Mon, Dec 31, 2012 at 6:22 AM, Neil <n...@parkwaycc.co.uk> wrote:

> Bobby Holley wrote:
>
>  In the long term, I'd like for Xray wrappers to behave more logically
>> with respect to the prototype chain than they have in the past. I believe
>> that Peter has already taken the first step by giving us meaningful Xrays
>> to DOM prototypes and interface objects
>>
>>  What does meaningful mean here? I don't think I've ever looked at the
> prototype of an Xrayed content node from chrome; I can just about see the
> use case of looking at the prototype of a waived node from chrome.


Meaningful in this case means that they're not entirely opaque, as was the
case for the traditional [xpconnect wrapped native prototype] XPCWN protos
and constructors. You can do things like "new
contentWindow.XMLHttpRequest", and I believe you can access constants,
properties, and methods.

The goal of Xrays is that waiving should be unnecessary unless you actually
want to see content expandos, so we want them to behave as naturally as
possible.

Anyway, this is getting off-topic for this thread. I'm happy to talk about
it more in another thread or on IRC though. ;-)

Cheers,
bholley
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to