Bug 927524 Closing a window with a sidebar open does not fire a detach or hide event