Bug 942240 - Improve the skippability of nsGlobalWindow, r=mccr8

--HG--
extra : rebase_source : ed7e687229a92075657d9b665fbc7af42d9eb5cc