Bug 980585 - Don't delazify lazy scripts whose outer functions couldn't be compiled. (r=bhackett)
Bug 937407 Only add the popuphidden event listener if we are actully opening the popup r=gavin