Bug 795579 - waitFor method doesn't send a pass frame which can cause an application disconnect when handled in a loop. r=hskupin