bug 904104 fix window.close usage from chat and social panels, r=felipc