Bug 952724 - Make InputContext#replaceSurroundingText match spec. r=djf