I make use of Gecko unload event now, but I also have to send it manually in CloseView. The difference is important too: CloseView does *not* send any beforeunload events, but it does send pagehide.
Sure, it was the generic case that was more concerning (and broken from frames, I think) anyway.