Bug 937713 - Replace gWindowToRedraw with a simpler mechanism, r=roc