add:  if (frame.contentWindow.wrappedJSObject) return frame.contentWindow.wrappedJSObject; 
context: function getContentWindow(frame){    try    {        if (!frame || !("contentWindow" in frame))            return false;        return frame.contentWindow;    }    catch (ex)    {        // throws exception is contentWindow is gone        return null;    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/5ace3a0e0d89346bdec784efcf7043f1218fbfd2/utils.js/buggy/extensions/irc/js/lib/utils.js