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: 1622	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1622/36289d26dc81ac8fd56e91582998915b27139195/utils.js/buggy/js/lib/utils.js