Confirmed users, Bureaucrats and Sysops emeriti
419
edits
No edit summary |
mNo edit summary |
||
Line 49: | Line 49: | ||
To handle |this|, we would want to hook JSObjectOps.thisObject up somehow. | 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 | XPConnect implements JSObjectOps for wrapped natives, so the simplest thing to do is add another scriptable 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. | The other properties can be handled using existing or new getter hooks that "outer-ize" any inner window object reference. | ||
/be | /be |