Confirmed users, Bureaucrats and Sysops emeriti
419
edits
No edit summary |
No edit summary |
||
Line 45: | Line 45: | ||
--[[User:Jst|Jst]] 17:21, 24 Jun 2005 (PDT) | --[[User:Jst|Jst]] 17:21, 24 Jun 2005 (PDT) | ||
jst: I was thinking we would make the inner object reuse all of the current window implementation, at first. After getting things working, we could turn security checks into assertions of same origin, etc. The outer window object would be of a new extended class (the inner would want to use the JSExtendedClass support now in XPConnect on the trunk, so we would want more scriptable helpers or something, so it could participate in == and != ops, e.g.). | |||
To handle |this|, we would want to hook JSObjectOps.thisObject up somehow. | |||
XPConnect implements JSObjectOps for wrapped natives, so the simplest thing to do is add another scriptabl helper that forwards thisObject calls from the JS engine to the nsWindowSH impl. | |||
The other properties can be handled using existing or new getter hooks that "outer-ize" any inner window object reference. | |||
/be |