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: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/a3e839fe5b35a608da653750f2126d4c87be6b9f/utils.js/buggy/extensions/irc/js/lib/utils.js