[Bug 18242] Not clear what "script that invoked the method" means exactly. Should this be changed to "entry script" instead? If not, please specify what it means.


Ian 'Hixie' Hickson <ian@hixie.ch> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #12 from Ian 'Hixie' Hickson <ian@hixie.ch> ---
Ok, I've tried to fix this. See patch in upcoming comment.

(In reply to comment #9)
> So to take a specific silly example, if I have an array that was created in
> window A, then script in window B defines a getter on one of the array
> indices, and then script in window C calls sort() on the array, then do we
> want "script that invoked the method" to be talking about window A, window
> B, or window C?

Assuming that the getter is the one calling, say, postMessage(), then I think
the answer is B.

(In reply to comment #10)
> Oh, and the situation in comment 9 is especially interesting in cases when
> A, B, and C might have different origins (yes, I know, I know, but it's a
> case that arises anyway for me, so I have to think about it).

It can arise on the Web platform too, with document.domain (at least, as it is
implemented in WebKit/Blink-derived browsers and in IE).

You are receiving this mail because:
You are on the CC list for the bug.

Received on Tuesday, 11 June 2013 21:42:56 UTC