Bug 1023344: Use MozReftestInvalidate to make 876074-1.html's behavior more reliable. r=mats