In the process of developing my Firefox extension, I am attempting to dynamically create a global function:
window.performAction= function() { ... };
After further investigation, I have discovered that the window is encapsulated by an XrayWrapper.
window -> [object XrayWrapper [object Window]]
As a result, it appears that assigning the function has no effect. Is there a secure way to modify the window object in this manner?