Bug 1019021 - Fix packaged builds throwing NS_ERROR_FACTORY_NOT_REGISTERED when trying to run for .. in .. loops on the content window object r=Ratty