W3C home > Mailing lists > Public > public-html@w3.org > September 2009

WindowProxy

From: James Graham <jgraham@opera.com>
Date: Wed, 23 Sep 2009 18:15:34 +0200
Message-ID: <4ABA49A6.1080300@opera.com>
To: HTML WG <public-html@w3.org>
The section on WindowProxy seems slightly unclear.

* It is not quite clear whether there should be an object called 
WindowProxy in the global scope. Presumably there shouldn't because 
there is no WindowProxy interface (and so no IDL) but since this is a 
bit odd it could be called out explicitly.

* It is not clear what it means to "proxy all operations to the Window 
object". I guess it means something like "every time a function is 
called on the WindowProxy object (including an ECMAScript internal 
function), instead call it on the Window object". For these proxied 
calls it is unclear if the "this" object should be the Window object or 
the WindowProxy object.

* window is a WindowProxy object. Should window instanceof Window return 
true (I think it should). Per WebIDL 
InterfaceObject.[[HasInstance]](object) returns true if "[object] is a 
host object the implements the interface for which 
[InterfaceObject.prototype] is the interface prototype object". It's 
unclear if window "implements the interface" defined by Window in the 
sense meant by WebIDL.

This is quite complex so I may have missed something that answers all of 
the points above...
Received on Wednesday, 23 September 2009 16:15:22 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:08 UTC